Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OdfStrokeDashPattern

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Modifiers sealed

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

Inheritance

  • Object
  • OdfStrokeDashPattern

Usage

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

Returned or exposed by

Accepted by parameters

Constructors

public OdfStrokeDashPattern(Int32 dashCount, OdfLength dashLength, OdfLength distance, Int32 secondDashCount = 0, Nullable<OdfLength> secondDashLength = null, Boolean roundCaps = false) #

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

Parameters

dashCount System.Int32 requiredposition: 0
First sequence count, from zero to 1024.
dashLength OfficeIMO.OpenDocument.OdfLength requiredposition: 1
First sequence dash length; zero is allowed.
distance OfficeIMO.OpenDocument.OdfLength requiredposition: 2
Positive gap between dashes, excluding caps.
secondDashCount System.Int32 = 0 optionalposition: 3
Second sequence count; the total count must be between one and 1024.
secondDashLength System.Nullable{OfficeIMO.OpenDocument.OdfLength} = null optionalposition: 4
Second sequence dash length, required when its count is positive.
roundCaps System.Boolean = false optionalposition: 5
Use round caps when the shape has no explicit cap override.

Properties

public Int32 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 Int32 SecondDashCount { get; } #

Number of dashes in the second sequence.

public Nullable<OdfLength> SecondDashLength { get; } #

Second dash length, excluding caps.

public Boolean RoundCaps { get; } #

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