Class
OfficeShapePresets
OfficeIMO.Drawing
Creates reusable OfficeShape descriptors for common DrawingML preset geometries.
Inheritance
- object
- OfficeShapePresets
Methods
TryCreate 2 overloads
public static bool TryCreate(string? presetName, double width, double height, bool horizontalFlip, bool verticalFlip, out OfficeShape? shape) #Attempts to create a shared OfficeIMO shape for a DrawingML-style preset name.
Parameters
- presetName string?
- Preset name such as rect, triangle, or rightArrow.
- width double
- Requested shape width in the caller's layout unit.
- height double
- Requested shape height in the caller's layout unit.
- horizontalFlip bool
- Whether the shape geometry should be mirrored horizontally.
- verticalFlip bool
- Whether the shape geometry should be mirrored vertically.
- shape OfficeIMO.Drawing.OfficeShape?
- Created shape when the preset is supported.
Returns
bool true when the preset could be mapped; otherwise false.public static bool TryCreate(string? presetName, double width, double height, out OfficeShape? shape) #Attempts to create a shared OfficeIMO shape for a DrawingML-style preset name.
Parameters
- presetName string?
- width double
- height double
- shape OfficeIMO.Drawing.OfficeShape?
Returns
bool