Shape Class
Contains elements that define a shape in a Master, Page, or group shape element.
Inheritance Hierarchy
SystemObject
  Aspose.DiagramShape

Namespace: Aspose.Diagram
Assembly: Aspose.Diagram (in Aspose.Diagram.dll) Version: 20.2.0.0 (20.2)
Syntax
public class Shape

The Shape type exposes the following members.

Constructors
  NameDescription
Public methodShape
Constructor.
Properties
  NameDescription
Public propertyActiveXControl
Gets the ActiveX control.
Public propertyActs
Contains a collection of Act elements.
Public propertyAlign
Indicates the alignment of a shape with respect to the guide or guide point to which the shape is glued. The Align element appears only for shapes that are glued to guides or guide points.
Public propertyChars
Contains a collection of Char elements.
Public propertyConnectionABCDs
Contains a collection of ConnectionABCD elements.
Public propertyConnections
Contains a collection of Connection elements.
Public propertyControlData
Gets the data of control.
Public propertyControls
Contains a collection of Control elements.
Public propertyData1
Contains an arbitrary string value that is used to supply additional information about a shape.
Public propertyData2
Contains an arbitrary string value that is used to supply additional information about a shape.
Public propertyData3
Contains an arbitrary string value that is used to supply additional information about a shape.
Public propertyDel
A flag indicating whether the element is deleted locally. A value of 1 indicates that the element is deleted locally.
Public propertyDiagram
Root element of Visio objects hierarchy.
Public propertyEvent
Contains elements that specify formulas that control shape events.
Public propertyFields
Contains a collection of Field elements.
Public propertyFill
Contains the current fill formatting values for the shape and the shape's drop shadow, including pattern, foreground color, and background color.
Public propertyFillStyle
StyleSheet from which this shape inherits fill formatting.
Public propertyForeign
Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object's image is offset within its borders.
Public propertyForeignData
Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
Public propertyGeoms
Contains a collection of Geom elements.
Public propertyGroup
Contains elements that control how you add shapes to a group, move members of a group, and select groups.
Public propertyHelp
Contains elements specifying the Shape element's Help file topic and copyright information.
Public propertyHyperlinks
Contains a collection of Hyperlink elements.
Public propertyID
The unique ID of the element within its parent element.
Public propertyImage
Contains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.
Public propertyInheritChars
Contains the char values for the shape inherit by the master shape.
Public propertyInheritFill
Contains the fill formatting values for the shape inherit by the parent style and the master shape.
Public propertyInheritLine
Contains the line formatting values for the shape inherit by the parent style and the master shape.
Public propertyInheritProps
Contains the props for the shape inherit by the master shape.
Public propertyIsTextEmpty
Indicate the shape has text and the text is empty or not.
Public propertyLayerMem
Contains the LayerMember element, which specifies each layer to which the shape is assigned.
Public propertyLayout
Contains elements that control shape placement and connector routing settings.
Public propertyLine
Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine whether the line ends are formatted (for example, with an arrowhead), the size of line end formats, radius of the rounding circle applied to the line, and line cap style (round or square).
Public propertyLineStyle
StyleSheet from which this shape inherits line formatting
Public propertyMaster
The Master from which the shape inherits its data.
Public propertyMasterShape
This attribute may only be present in shapes that are members of a group shape, and the group is an instance of a master. The attribute contains an ID that references the corresponding sub-shape in the master.
Public propertyMisc
Contains elements specifying the Shape element's Help file topic and copyright information.
Public propertyName
The name of the element.
Public propertyNameU
The universal name of the element.
Public propertyOneD
Determines whether the shape behaves as a one-dimensional (1-D) object. Read-only.
Public propertyPage
Root element of Visio objects hierarchy.
Public propertyParas
Contains a collection of Para elements.
Public propertyParentShape
Shape's parent.
Public propertyProps
Contains a collection of Prop elements.
Public propertyProtection
Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in other circumstances. It also does not protect against changes made in the ShapeSheet window.
Public propertyScratchs
Contains a collection of Scratch elements.
Public propertyShapes
Contains a collection of Shape elements.
Public propertySmartTagDefs
Contains a collection of SmartTagDef elements.
Public propertyTabsCollection
Contains a collection of Tab elements.
Public propertyText
Contains the text of a shape.
Public propertyTextBlock
Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.
Public propertyTextStyle
StyleSheet from which this shape inherits text formatting.
Public propertyTextXForm
Contains elements that specify positioning information about a shape's text block.
Public propertyThreeDFormat
Gets the ThreeDFormat.
Public propertyTwoD
Determines whether the shape behaves as a two-dimensional (2-D) object.
Public propertyType
The type of a shape. It may be one of the following values: Group, Shape, Guide, or Foreign.
Public propertyUniqueID
A GUID (globally unique identifier) assigned to the shape.
Public propertyUsers
Contains a collection of User elements.
Public propertyXForm
Contains elements specifying general positioning information about a shape.
Public propertyXForm1D
Contains x- and y-coordinates of the begin point and end point of a 1-D shape. This element appears for 1-D shapes only.
Public propertyZOrderIndex
Returns the index of a shape in the z-order except the guide shape.
Methods
  NameDescription
Public methodBringForward
Brings the shape forward one position in the z-order.
Public methodBringToFront
Brings the shape to the front of the z-order.
Public methodConnectedShapes
Returns an array that contains the identifiers (IDs) of the shapes that are connected to the shape.
Public methodCopy
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetConnectorsType
Get Connectors type
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodGluedShapes
Returns an array that contains the identifiers of the shapes that are glued to a shape.
Public methodIsConnected
Indicates whether this two shapes are connected.
Public methodIsGlued
Indicates whether this two shapes are glued.
Public methodIsInGroup
Indicates whether this shape is in a group shape.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove
Moves shape on the dX and dY inches from current position.
Public methodMoveTo
Moves shape on new absolute position on the page.
Public methodRefreshData
Refreshes shape's position including xform ,connection and geom when changing shape's text or other's .
Public methodSendBackward
Moves the shape back one position in the z-order.
Public methodSendToBack
Moves the shape to the back of the z-order.
Public methodSetAngle
Sets new angle of shape. The angle's unit is radian.
Public methodSetConnectorsType
Set Connectors type
Public methodSetHeight
Sets new height of shape.
Public methodSetWidth
Sets new width of shape.
Public methodToHTML(Stream, HTMLSaveOptions)
Creates the shape html and saves it to a stream in the specified format.
Public methodToHTML(String, HTMLSaveOptions)
Creates the html and saves it to a file.
Public methodToImage(Stream, ImageSaveOptions)
Creates the shape image and saves it to a stream in the specified format.
Public methodToImage(String, ImageSaveOptions)
Creates the shape image and saves it to a file. The extension of the file name determines the format of the image.
Public methodToPdf(Stream)
Creates the shape pdf and saves it to a stream.
Public methodToPdf(String)
Saves the shape to a pdf file.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToSvg
Saves the shape to a svg file.
See Also