Class Shape

Shape class

Represents a shape object.

public class Shape : GridShapeDraw

Properties

NameDescription
ActualHeight { get; }Represents the actual height of shape, in unit of pixels.(Inherited from GridShapeDraw.)
ActualWidth { get; }Represents the actual width of shape, in unit of pixels.(Inherited from GridShapeDraw.)
AlternativeText { get; set; }Returns or sets the descriptive (alternative) text string of the GridShapeDraw object.(Inherited from GridShapeDraw.)
Bottom { get; set; }Represents the width of the shape’s vertical offset from its lower bottom corner row, in unit of pixels.(Inherited from GridShapeDraw.)
Height { get; set; }Represents the height of shape, in unit of pixel.(Inherited from GridShapeDraw.)
Hyperlink { get; }Gets the hyperlink of the shape.(Inherited from GridShapeDraw.)
Image { get; }return image of this shape
ImageFormat { get; }Gets the image format of the picture.
IsHidden { get; set; }Indicates whether the object is visible.(Inherited from GridShapeDraw.)
IsInGroup { get; }Indicates whether the shape is grouped.(Inherited from GridShapeDraw.)
IsLockAspectRatio { get; set; }True means that don’t allow changes in aspect ratio.(Inherited from GridShapeDraw.)
IsLocked { get; set; }True if the object is locked, False if the object can be modified when the sheet is protected.(Inherited from GridShapeDraw.)
Left { get; set; }Represents the horizontal offset of shape from its left column, in unit of pixels.(Inherited from GridShapeDraw.)
LeftToCorner { get; set; }Gets and sets the horizonal offset of shape from worksheet left border.(Inherited from GridShapeDraw.)
LowerRightColumn { get; set; }Represents lower right corner column index.(Inherited from GridShapeDraw.)
LowerRightRow { get; set; }Represents lower right corner row index.(Inherited from GridShapeDraw.)
MsoDrawingType { get; }Gets and sets mso drawing type.(Inherited from GridShapeDraw.)
Name { get; set; }Gets and sets the name of the shape.(Inherited from GridShapeDraw.)
Right { get; set; }Represents the width of the shape’s horizontal offset from its lower right corner column, in unit of pixels.(Inherited from GridShapeDraw.)
RotationAngle { get; set; }Gets and sets the rotation of the shape.(Inherited from GridShapeDraw.)
Text { get; set; }Represents the string in this TextBox object.(Inherited from GridShapeDraw.)
Title { get; set; }Specifies the title (caption) of the current shape object.(Inherited from GridShapeDraw.)
Top { get; set; }Represents the vertical offset of shape from its top row, in unit of pixels.(Inherited from GridShapeDraw.)
TopToCorner { get; set; }Gets and sets the vertical offset of shape from worksheet top border, in unit of pixels.(Inherited from GridShapeDraw.)
UpperLeftColumn { get; }Represents upper left corner column index.(Inherited from GridShapeDraw.)
UpperLeftRow { get; }Represents upper left corner row index.(Inherited from GridShapeDraw.)
Width { get; set; }Represents the width of shape, in unit of pixels.(Inherited from GridShapeDraw.)
ZOrderPosition { get; set; }Returns the position of a shape in the z-order.(Inherited from GridShapeDraw.)

Methods

NameDescription
AddHyperlink(string)Adds a hyperlink to the shape.(Inherited from GridShapeDraw.)
AlignTopRightCorner(int, int)Moves the picture to the top-right corner.(Inherited from GridShapeDraw.)
override GetImage()return image of this shape
IsGroup()Indicates whether the shape is a group.(Inherited from GridShapeDraw.)
MoveToRange(int, int, int, int)Moves the shape to a specified range.(Inherited from GridShapeDraw.)
RemoveHyperlink()Remove the hyperlink of the shape.(Inherited from GridShapeDraw.)

Fields

NameDescription
_withinCell

See Also