Shape Class

Represents the msodrawing object.
Inheritance Hierarchy
SystemObject
  Aspose.Cells.DrawingShape
    More...

Namespace:  Aspose.Cells.Drawing
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.10.0.0 (20.10)
Syntax
public class Shape

The Shape type exposes the following members.

Properties
  NameDescription
Public propertyActiveXControl
Gets the ActiveX control.
Public propertyActualLowerRightRow
Get the actual bottom row.
Public propertyAlternativeText
Returns or sets the descriptive (alternative) text string of the Shape object.
Public propertyAutoShapeType
Gets the auto shape type.
Public propertyBottom
Represents the width of the shape's vertical offset from its lower bottom corner row, in unit of pixels.
Public propertyConnectionPoints
Get the connection points
Public propertyControlData
Gets the data of control.
Public propertyFill
Returns a FillFormat object that contains fill formatting properties for the specified shape.
Public propertyFillFormat Obsolete.
Returns a MsoFillFormat object that contains fill formatting properties for the specified shape.
Public propertyFont
Represents the font of shape.
Public propertyFormat Obsolete.
Represents the setting of the shape's formatting.
Public propertyFormatPicture
Gets and sets the options of the picture format.
Public propertyGeometry
Gets the geometry
Public propertyGlow
Represents a object that specifies glow effect for the chart element or shape.
Public propertyGroup
Gets the group shape which contains this shape.
Public propertyHasLine
Gets and sets the line border of the shape is visible.
Public propertyHeight
Represents the height of shape, in unit of pixel.
Public propertyHeightCM
Represents the height of the shape, in unit of inches.
Public propertyHeightInch
Represents the height of the shape, in unit of inches.
Public propertyHeightInShape
Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape..
Public propertyHeightPt
Represents the height of the shape, in unit of points.
Public propertyHeightScale
Gets and sets the height scale,in unit of percent of the original picture height. If the shape is not picture ,the HeightScale property only returns 100;
Public propertyHtmlText
Gets and sets the html string which contains data and some formats in this textbox.
Public propertyHyperlink
Gets the hyperlink of the shape.
Public propertyId
Gets the identifier of this shape.
Public propertyInputRange
Gets or sets the worksheet range used to fill the specified combo box.
Public propertyIsEquation
Indicates whether the shape only contains an equation.
Public propertyIsFilled
Indicates whether the fill format is visible.
Public propertyIsFlippedHorizontally
Gets and sets whether shape is horizontally flipped .
Public propertyIsFlippedVertically
Gets and sets whether shape is vertically flipped .
Public propertyIsGroup
Indicates whether the shape is a group.
Public propertyIsHidden
Indicates whether the object is visible.
Public propertyIsLockAspectRatio
True means that don't allow changes in aspect ratio.
Public propertyIsLocked
True if the object is locked, False if the object can be modified when the sheet is protected.
Public propertyIsPrintable
True if the object is printable
Public propertyIsRichText
Whether or not the text is rich text.
Public propertyIsSmartArt
Indicates whether the shape is smart art.
Public propertyIsTextWrapped
Gets and sets the text wrapped type of the shape which contains text.
Public propertyIsWordArt
Indicates whether this shape is a word art.
Public propertyLeft
Represents the horizontal offset of shape from its left column, in unit of pixels.
Public propertyLeftCM
Represents the horizontal offset of shape from its left column, in unit of centimeters.
Public propertyLeftInch
Represents the horizontal offset of shape from its left column, in unit of inches.
Public propertyLeftInShape
Represents the horizontal offset of shape from the left border of the parent shape, in unit of 1/4000 of width of the parent shape.
Public propertyLeftToCorner
Gets and sets the horizonal offset of shape from worksheet left border.
Public propertyLine
Gets line style
Public propertyLineFormat Obsolete.
Returns a MsoLineFormat object that contains line formatting properties for the specified shape.
Public propertyLinkedCell
Gets or sets the worksheet range linked to the control's value.
Public propertyLowerDeltaX
Gets or sets the shape's horizontal offset from its lower right corner column.
Remarks
The range of value is 0 to 1024.
Public propertyLowerDeltaY
Gets or sets the shape's vertical offset from its lower right corner row.
Remarks
The range of value is 0 to 256.
Public propertyLowerRightColumn
Represents lower right corner column index.
Public propertyLowerRightRow
Represents lower right corner row index.
Public propertyMacroName
Gets and sets the name of macro.
Public propertyMsoDrawingType
Gets and sets mso drawing type.
Public propertyName
Gets and sets the name of the shape.
Public propertyPaths
Gets the paths of a custom geometric shape.
Public propertyPlacement
Represents the way the drawing object is attached to the cells below it. The property controls the placement of an object on a worksheet.
Public propertyReflection
Represents a object that specifies reflection effect for the chart element or shape.
Public propertyRelativeToOriginalPictureSize
Indicates whether shape is relative to original picture size.
Public propertyRight
Represents the width of the shape's horizontal offset from its lower right corner column, in unit of pixels.
Public propertyRotationAngle
Gets and sets the rotation of the shape.
Public propertyShadowEffect
Represents a object that specifies shadow effect for the chart element or shape.
Public propertySoftEdges
Gets and sets the radius of blur to apply to the edges, in unit of points.
Public propertySpid
Specifies an optional string that an application can use to Identify the particular shape.
Public propertySpt
Specifies an optional number that an application can use to associate the particular shape with a defined shape type.
Public propertyText
Represents the string in this TextBox object.
Public propertyTextBody
Gets and sets the setting of the shape's text.
Public propertyTextDirection
Gets/Sets the direction of the text flow for this object.
Public propertyTextEffect
Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape. Applies to Shape objects that represent WordArt.
Public propertyTextFrame Obsolete.
Returns a TextFrame object that contains the alignment and anchoring properties for the specified shape.
Public propertyTextHorizontalAlignment
Gets and sets the text horizontal alignment type of the shape.
Public propertyTextHorizontalOverflow
Gets and sets the text horizontal overflow type of the shape which contains text.
Public propertyTextOptions
Represents the text options of the shape.
Public propertyTextOrientationType
Gets and sets the text orientation type of the shape.
Public propertyTextShapeType
Gets and sets the preset text shape type.
Public propertyTextVerticalAlignment
Gets and sets the text vertical alignment type of the shape.
Public propertyTextVerticalOverflow
Gets and sets the text vertical overflow type of the shape which contains text.
Public propertyThreeDFormat
Gets and sets 3d format of the shape.
Public propertyTitle
Specifies the title (caption) of the current shape object.
Public propertyTop
Represents the vertical offset of shape from its top row, in unit of pixels.
Public propertyTopCM
Represents the vertical offset of shape from its top row, in unit of centimeters.
Public propertyTopInch
Represents the vertical offset of shape from its top row, in unit of inches.
Public propertyTopInShape
Represents the vertical offset of shape from the top border of the parent shape, in unit of 1/4000 of height of the parent shape.
Public propertyTopToCorner
Gets and sets the vertical offset of shape from worksheet top border, in unit of pixels.
Public propertyType
Gets the auto shape type.
Public propertyUpperDeltaX
Gets or sets the shape's horizontal offset from its upper left corner column.
Remarks
The range of value is 0 to 1024.
Public propertyUpperDeltaY
Gets or sets the shape's vertical offset from its upper left corner row.
Remarks
The range of value is 0 to 256.
Public propertyUpperLeftColumn
Represents upper left corner column index.
Public propertyUpperLeftRow
Represents upper left corner row index.
Public propertyWidth
Represents the width of shape, in unit of pixels.
Public propertyWidthCM
Represents the width of the shape, in unit of centimeters.
Public propertyWidthInch
Represents the width of the shape, in unit of inch.
Public propertyWidthInShape
Represents the width of the shape, in unit of 1/4000 of the parent shape.
Public propertyWidthPt
Represents the width of the shape, in unit of point.
Public propertyWidthScale
Gets and sets the width scale, in unit of percent of the original picture width. If the shape is not picture ,the WidthScale property only returns 100;
Public propertyX
Gets and sets the horizontal offset of shape from worksheet left border,in unit of pixels.
Public propertyY
Gets and sets the vertical offset of shape from worksheet top border,in unit of pixels.
Public propertyZOrderPosition
Returns the position of a shape in the z-order.
Methods
  NameDescription
Public methodAddHyperlink
Adds a hyperlink to the shape.
Public methodAlignTopRightCorner
Moves the picture to the top-right corner.
Public methodCalculateTextSize
Recalculate the text area
Public methodCharacters
Returns a Characters object that represents a range of characters within the text.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFormatCharacters(Int32, Int32, Font) Obsolete.
Formats some characters with the font setting.
Public methodFormatCharacters(Int32, Int32, Font, StyleFlag)
Formats some characters with the font setting.
Public methodGetCharacters
Returns all Characters objects that represents a range of characters within the text .
Public methodGetHashCode (Inherited from Object.)
Public methodGetInputRange
Gets the range used to fill the control.
Public methodGetLinkedCell
Gets the range linked to the control's value.
Public methodGetLockedProperty
Gets the value of locked property.
Public methodGetResultOfSmartArt
Converting smart art to grouped shapes.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMoveToRange
Moves the shape to a specified range.
Public methodRemoveActiveXControl
Remove activeX control.
Public methodRemoveHyperlink
Remove the hyperlink of the shape.
Public methodSetInputRange
Sets the range used to fill the control.
Public methodSetLinkedCell
Sets the range linked to the control's value.
Public methodSetLockedProperty
Set the locked property.
Public methodToFrontOrBack
Brings the shape to the front or sends the shape to back.
Public methodToImage(ImageOrPrintOptions)
Returns the bitmap object of the shape .
Public methodToImage(Stream, ImageOrPrintOptions)
Saves the shape to a stream.
Public methodToImage(Stream, ImageFormat)
Creates the shape image and saves it to a stream in the specified format.
Public methodToImage(String, ImageOrPrintOptions)
Saves the shape to a file.
Public methodToString (Inherited from Object.)
Public methodUpdateSelectedValue
Update the selected value by the value of the linked cell.
See Also
Inheritance Hierarchy
SystemObject
  Aspose.Cells.DrawingShape
    Aspose.Cells.DrawingArcShape
    Aspose.Cells.DrawingButton
    Aspose.Cells.DrawingCellsDrawing
    Aspose.Cells.DrawingChartShape
    Aspose.Cells.DrawingCheckBox
    Aspose.Cells.DrawingComboBox
    Aspose.Cells.DrawingCommentShape
    Aspose.Cells.DrawingCustomXmlShape
    Aspose.Cells.DrawingDialogBox
    Aspose.Cells.DrawingGroupBox
    Aspose.Cells.DrawingGroupShape
    Aspose.Cells.DrawingLabel
    Aspose.Cells.DrawingLineShape
    Aspose.Cells.DrawingListBox
    Aspose.Cells.DrawingOleObject
    Aspose.Cells.DrawingOval
    Aspose.Cells.DrawingPicture
    Aspose.Cells.DrawingRadioButton
    Aspose.Cells.DrawingRectangleShape
    Aspose.Cells.DrawingScrollBar
    Aspose.Cells.DrawingSmartArtShape
    Aspose.Cells.DrawingSpinner
    Aspose.Cells.DrawingTextBox
    Aspose.Cells.DrawingWebExtensionShape