Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeStrokeDashStyleMapper

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Maps Office document dash and line-pattern vocabularies to the shared renderer stroke dash style.

Inheritance

  • Object
  • OfficeStrokeDashStyleMapper

Methods

public static OfficeStrokeDashStyle FromVisioLinePattern(Int32 linePattern) #
Returns: OfficeStrokeDashStyle

Maps a Visio LinePattern cell value to the shared stroke dash style.

Parameters

linePattern System.Int32 requiredposition: 0
Visio line-pattern integer value.

Returns

The closest shared dash style supported by OfficeIMO.Drawing renderers.

public static Int32 ToVisioLinePattern(OfficeStrokeDashStyle dashStyle) #
Returns: Int32

Maps a shared stroke dash style to the closest native Visio LinePattern value.

Parameters

dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle requiredposition: 0
Shared stroke dash style.

Returns

The native Visio line-pattern integer value.

public static Boolean TryMapOfficePresetDash(String presetDash, out OfficeStrokeDashStyle dashStyle) #
Returns: Boolean

Maps an Office preset dash value name to the shared stroke dash style.

Parameters

presetDash System.String requiredposition: 0
Preset dash value as an enum name or serialized token.
dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle@ requiredposition: 1
Resolved shared stroke dash style.

Returns

true when the preset represents a non-solid supported dash style.