Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfStrokeDashPattern

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
1f76172c94d1 with working tree changes
Modifiers
sealed

An ODF dash pattern with up to two repeated dash lengths and a uniform gap.

Inheritance

  • object
  • OdfStrokeDashPattern

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public OdfStrokeDashPattern(int dashCount, OdfLength dashLength, OdfLength distance, int secondDashCount = 0, OdfLength? secondDashLength = null, bool roundCaps = false) #

Creates a pattern. Lengths may use absolute ODF units or percentages of stroke width.

Parameters

dashCount int required
First sequence count, from zero to 1024.
dashLength OfficeIMO.OpenDocument.OdfLength required
First sequence dash length; zero is allowed.
distance OfficeIMO.OpenDocument.OdfLength required
Positive gap between dashes, excluding caps.
secondDashCount int = 0 optional
Second sequence count; the total count must be between one and 1024.
secondDashLength OfficeIMO.OpenDocument.OdfLength? = null optional
Second sequence dash length, required when its count is positive.
roundCaps bool = false optional
Use round caps when the shape has no explicit cap override.

Properties

public int DashCount { get; } #

Number of dashes in the first sequence.

public OdfLength DashLength { get; } #

First dash length, excluding caps.

public OdfLength Distance { get; } #

Gap between adjacent dashes, excluding caps.

public int SecondDashCount { get; } #

Number of dashes in the second sequence.

public OdfLength? SecondDashLength { get; } #

Second dash length, excluding caps.

public bool RoundCaps { get; } #

Whether the definition supplies round caps when the shape does not override them.