Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeShapePresets

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

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: Boolean

Attempts to create a shared OfficeIMO shape for a DrawingML-style preset name.

Parameters

presetName System.String requiredposition: 0
Preset name such as rect, triangle, or rightArrow.
width System.Double requiredposition: 1
Requested shape width in the caller's layout unit.
height System.Double requiredposition: 2
Requested shape height in the caller's layout unit.
horizontalFlip System.Boolean requiredposition: 3
Whether the shape geometry should be mirrored horizontally.
verticalFlip System.Boolean requiredposition: 4
Whether the shape geometry should be mirrored vertically.
shape OfficeIMO.Drawing.OfficeShape@ requiredposition: 5
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: Boolean

Attempts to create a shared OfficeIMO shape for a DrawingML-style preset name.

Parameters

presetName System.String requiredposition: 0
width System.Double requiredposition: 1
height System.Double requiredposition: 2
shape OfficeIMO.Drawing.OfficeShape@ requiredposition: 3