API Reference
Class
OfficeStrokeDashStyleMapper
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:
OfficeStrokeDashStyleMaps a Visio LinePattern cell value to the shared stroke dash style.
Parameters
- linePattern System.Int32
- Visio line-pattern integer value.
Returns
The closest shared dash style supported by OfficeIMO.Drawing renderers.
public static Int32 ToVisioLinePattern(OfficeStrokeDashStyle dashStyle) #Returns:
Int32Maps a shared stroke dash style to the closest native Visio LinePattern value.
Parameters
- dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle
- Shared stroke dash style.
Returns
The native Visio line-pattern integer value.
public static Boolean TryMapOfficePresetDash(String presetDash, out OfficeStrokeDashStyle dashStyle) #Returns:
BooleanMaps an Office preset dash value name to the shared stroke dash style.
Parameters
- presetDash System.String
- Preset dash value as an enum name or serialized token.
- dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle@
- Resolved shared stroke dash style.
Returns
true when the preset represents a non-solid supported dash style.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object