API Reference
Class
OfficeShapePresets
Creates reusable OfficeShape descriptors for common DrawingML preset geometries.
Inheritance
- Object
- OfficeShapePresets
Methods
TryCreate 2 overloads
public static Boolean TryCreate(String presetName, Double width, Double height, Boolean horizontalFlip, Boolean verticalFlip, out OfficeShape shape) #Returns:
BooleanAttempts to create a shared OfficeIMO shape for a DrawingML-style preset name.
Parameters
- presetName System.String
- Preset name such as rect, triangle, or rightArrow.
- width System.Double
- Requested shape width in the caller's layout unit.
- height System.Double
- Requested shape height in the caller's layout unit.
- horizontalFlip System.Boolean
- Whether the shape geometry should be mirrored horizontally.
- verticalFlip System.Boolean
- Whether the shape geometry should be mirrored vertically.
- shape OfficeIMO.Drawing.OfficeShape@
- Created shape when the preset is supported.
Returns
true when the preset could be mapped; otherwise false.
public static Boolean TryCreate(String presetName, Double width, Double height, out OfficeShape shape) #Returns:
BooleanAttempts to create a shared OfficeIMO shape for a DrawingML-style preset name.
Parameters
- presetName System.String
- width System.Double
- height System.Double
- shape OfficeIMO.Drawing.OfficeShape@
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object