Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Enum

OfficeStrokeDashStyle

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Shared stroke dash style that OfficeIMO packages can map into their own drawing formats.

Inheritance

  • Enum
  • OfficeStrokeDashStyle

Usage

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

Accepted by parameters

Values

public const OfficeStrokeDashStyle Solid #

Continuous stroke.

Value: 0
public const OfficeStrokeDashStyle Dash #

Dashed stroke.

Value: 1
public const OfficeStrokeDashStyle Dot #

Dotted stroke.

Value: 2
public const OfficeStrokeDashStyle DashDot #

Alternating dash and dot stroke.

Value: 3
public const OfficeStrokeDashStyle DashDotDot #

Alternating dash and two dot stroke.

Value: 4

Extension Methods

public static Double[] GetDashPattern(OfficeStrokeDashStyle style, Double strokeWidth) #
Returns: Double[]

Returns a dash/gap pattern in rendered units for the supplied stroke width.

Parameters

style OfficeIMO.Drawing.OfficeStrokeDashStyle requiredposition: 0
Stroke dash style.
strokeWidth System.Double requiredposition: 1
Rendered stroke width.

Returns

Alternating dash and gap lengths. An empty array means a solid stroke.

public static String GetSvgDashArray(OfficeStrokeDashStyle style, Double strokeWidth) #
Returns: String

Returns an SVG stroke-dasharray value for the supplied stroke width.

Parameters

style OfficeIMO.Drawing.OfficeStrokeDashStyle requiredposition: 0
Stroke dash style.
strokeWidth System.Double requiredposition: 1
Rendered stroke width.

Returns

SVG dash-array value, or null for solid strokes.