Skip to main content
A newer version of this page is available. .

DiagramCustomShape Properties

A custom shape.
Name Description
AllowEditImage Specifies whether users can change the shape’s image.
AllowEditText Specifies whether the shape’s text can be edited.
AllowResize Specifies whether the shape can be resized.
BackgroundImageHeight Specifies the height of the shape background image.
BackgroundImageLeft Specifies the left offset of the shape background image.
BackgroundImageToolboxUrl Specifies a shape image displayed in a toolbox.
BackgroundImageTop Specifies the top offset of the shape background image.
BackgroundImageUrl Specifies the shape background image’s URL.
BackgroundImageWidth Specifies the width of the shape background image.
BaseType Specifies the base shape type for the custom shape.
CategoryName Specifies a category to which the custom shape belongs.
Collection Gets the collection to which an item belongs. Inherited from CollectionItem.
ConnectionPoints Provides access to a collection of the shape’s connection points.
DefaultHeight Specifies the initial height of the shape.
DefaultImageUrl Specifies the shape image’s URL.
DefaultText Specifies the initial text of the shape.
DefaultWidth Specifies the initial width of the shape.
ImageHeight Specifies the height of the image in the shape.
ImageLeft Specifies the left offset of the image in the shape.
ImageTop Specifies the top offset of the image in the shape.
ImageWidth Specifies the width of the image in the shape.
Index Gets or sets the item’s index within the collection. Inherited from CollectionItem.
KeepRatioOnAutoSize Specifies whether the shape maintains its width-to-height ratio on auto resize
MaxHeight Specifies the maximum height of the shape.
MaxWidth Specifies the maximum width of the shape.
MinHeight Specifies the minimum height of the shape.
MinWidth Specifies the minimum width of the shape.
TemplateHeight Specifies the shape template’s fractional height.
TemplateLeft Specifies the shape template’s left offset.
TemplateTop Specifies the shape template’s top offset.
TemplateWidth Specifies the shape template’s fractional width.
TextHeight Specifies the text container height.
TextLeft Specifies the left offset of a text container.
TextTop Specifies the top offset of a text container.
TextWidth Specifies the text container width.
Title Specifies the shape’s tooltip in the toolbox.
ToolboxWidthToHeightRatio Specifies the aspect ratio of the shape in the toolbox.
Type Identifies the shape’s type.
See Also