## GridPicture class

Encapsulates the object that represents a single picture in a spreadsheet.

```csharp
public class GridPicture : GridShapeDraw
```

## Properties

| Name | Description |
| --- | --- |
| [ActualHeight](../../aspose.cells.griddesktop.data/gridpicture/actualheight/) { get; } | Gets the actual height of shape . |
| [ActualWidth](../../aspose.cells.griddesktop.data/gridpicture/actualwidth/) { get; } | Gets the actual width of shape . |
| [AlternativeText](../../aspose.cells.griddesktop.data/gridshapedraw/alternativetext/) { get; set; } | Returns or sets the descriptive (alternative) text string of the [`GridShapeDraw`](../gridshapedraw/) object.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [BorderLineColor](../../aspose.cells.griddesktop.data/gridpicture/borderlinecolor/) { get; set; } | Represents the Color of the border line of a picture. |
| [BorderWeight](../../aspose.cells.griddesktop.data/gridpicture/borderweight/) { get; set; } | Gets or sets the weight of the border line of a picture in units of pt. |
| [Bottom](../../aspose.cells.griddesktop.data/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`](../gridshapedraw/).) |
| [Column](../../aspose.cells.griddesktop.data/gridpicture/column/) { get; } | Represents upper left corner column index. |
| [Data](../../aspose.cells.griddesktop.data/gridpicture/data/) { get; set; } | Gets the data of the picture. |
| [Height](../../aspose.cells.griddesktop.data/gridshapedraw/height/) { get; set; } | Represents the height of shape, in unit of pixel.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [HeightCM](../../aspose.cells.griddesktop.data/gridpicture/heightcm/) { get; set; } | Represents the height of the shape, in unit of inches. |
| [HeightInch](../../aspose.cells.griddesktop.data/gridpicture/heightinch/) { get; set; } | Represents the height of the shape, in unit of inches. |
| [HeightPt](../../aspose.cells.griddesktop.data/gridpicture/heightpt/) { get; set; } | Represents the height of the shape, in unit of points. |
| [HeightScale](../../aspose.cells.griddesktop.data/gridpicture/heightscale/) { get; set; } | 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; |
| [HtmlText](../../aspose.cells.griddesktop.data/gridpicture/htmltext/) { get; set; } | Gets and sets the html string which contains data and some formattings in this textbox. |
| [Hyperlink](../../aspose.cells.griddesktop.data/gridshapedraw/hyperlink/) { get; } | Gets the hyperlink of the shape.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [Image](../../aspose.cells.griddesktop.data/gridpicture/image/) { get; set; } | Gets or sets the Image object. |
| [ImageFormat](../../aspose.cells.griddesktop.data/gridpicture/imageformat/) { get; } | Gets the image format of the picture. |
| [IsFlippedVertically](../../aspose.cells.griddesktop.data/gridpicture/isflippedvertically/) { get; set; } | Gets and sets whether shape is vertically flipped . |
| [IsHidden](../../aspose.cells.griddesktop.data/gridshapedraw/ishidden/) { get; set; } | Indicates whether the object is visible.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [IsInGroup](../../aspose.cells.griddesktop.data/gridshapedraw/isingroup/) { get; } | Indicates whether the shape is grouped.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [IsLockAspectRatio](../../aspose.cells.griddesktop.data/gridshapedraw/islockaspectratio/) { get; set; } | True means that don't allow changes in aspect ratio.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [IsLocked](../../aspose.cells.griddesktop.data/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`](../gridshapedraw/).) |
| [IsOutlineVisible](../../aspose.cells.griddesktop.data/gridpicture/isoutlinevisible/) { get; set; } | Gets and sets the line border of the shape is visible. |
| [IsTextWrapped](../../aspose.cells.griddesktop.data/gridpicture/istextwrapped/) { get; set; } | Gets and sets the text wrapped type of the shape which contains text. |
| [Left](../../aspose.cells.griddesktop.data/gridshapedraw/left/) { get; set; } | Represents the horizontal offset of shape from its left column, in unit of pixels.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [LeftCM](../../aspose.cells.griddesktop.data/gridpicture/leftcm/) { get; set; } | Represents the horizontal offset of shape from its left column, in unit of centimeters. |
| [LeftInch](../../aspose.cells.griddesktop.data/gridpicture/leftinch/) { get; set; } | Represents the horizontal offset of shape from its left column, in unit of inches. |
| [LeftOffset](../../aspose.cells.griddesktop.data/gridpicture/leftoffset/) { get; set; } | Represents the horizontal offset of shape from its left column, in unit of pixels. |
| [LeftToCorner](../../aspose.cells.griddesktop.data/gridpicture/lefttocorner/) { get; set; } | Gets and sets the horizonal offset of shape from worksheet left border. |
| [LinkedCell](../../aspose.cells.griddesktop.data/gridpicture/linkedcell/) { get; set; } | Gets or sets the worksheet range linked to the control's value. |
| [LowerDeltaX](../../aspose.cells.griddesktop.data/gridpicture/lowerdeltax/) { get; set; } | Gets or sets the shape's horizontal offset from its lower right corner column. The range of value is 0 to 1024. |
| [LowerDeltaY](../../aspose.cells.griddesktop.data/gridpicture/lowerdeltay/) { get; set; } | Gets or sets the shape's vertical offset from its lower right corner row. The range of value is 0 to 256. |
| [LowerRightColumn](../../aspose.cells.griddesktop.data/gridshapedraw/lowerrightcolumn/) { get; set; } | Represents lower right corner column index.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [LowerRightRow](../../aspose.cells.griddesktop.data/gridshapedraw/lowerrightrow/) { get; set; } | Represents lower right corner row index.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [MsoDrawingType](../../aspose.cells.griddesktop.data/gridshapedraw/msodrawingtype/) { get; } | Gets and sets mso drawing type.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [Name](../../aspose.cells.griddesktop.data/gridshapedraw/name/) { get; set; } | Gets and sets the name of the shape.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [OriginalHeightCM](../../aspose.cells.griddesktop.data/gridpicture/originalheightcm/) { get; } | Gets the original height of picture, in unit of centimeters. |
| [OriginalHeightInch](../../aspose.cells.griddesktop.data/gridpicture/originalheightinch/) { get; } | Gets the original height of picture, in unit of inches. |
| [OriginalWidthCM](../../aspose.cells.griddesktop.data/gridpicture/originalwidthcm/) { get; } | Gets the original width of picture, in unit of centimeters. |
| [OriginalWidthInch](../../aspose.cells.griddesktop.data/gridpicture/originalwidthinch/) { get; } | Gets the original width of picture, in unit of inches. |
| [RelativeToOriginalPictureSize](../../aspose.cells.griddesktop.data/gridpicture/relativetooriginalpicturesize/) { get; set; } | Indicates whether shape is relative to original picture size. |
| [Right](../../aspose.cells.griddesktop.data/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`](../gridshapedraw/).) |
| [RotationAngle](../../aspose.cells.griddesktop.data/gridshapedraw/rotationangle/) { get; set; } | Gets and sets the rotation of the shape.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [Row](../../aspose.cells.griddesktop.data/gridpicture/row/) { get; } | Represents upper left corner row index. |
| [SourceFullName](../../aspose.cells.griddesktop.data/gridpicture/sourcefullname/) { get; set; } | Gets or sets the path and name of the source file for the linked image. |
| [Text](../../aspose.cells.griddesktop.data/gridpicture/text/) { get; set; } | Represents the string in this TextBox object. |
| [Title](../../aspose.cells.griddesktop.data/gridshapedraw/title/) { get; set; } | Specifies the title (caption) of the current shape object.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [Top](../../aspose.cells.griddesktop.data/gridshapedraw/top/) { get; set; } | Represents the vertical offset of shape from its top row, in unit of pixels.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [TopCM](../../aspose.cells.griddesktop.data/gridpicture/topcm/) { get; set; } | Represents the vertical offset of shape from its top row, in unit of centimeters. |
| [TopInch](../../aspose.cells.griddesktop.data/gridpicture/topinch/) { get; set; } | Represents the vertical offset of shape from its top row, in unit of inches. |
| [TopOffset](../../aspose.cells.griddesktop.data/gridpicture/topoffset/) { get; set; } | Represents the vertical offset of shape from its top row, in unit of pixels. |
| [TopToCorner](../../aspose.cells.griddesktop.data/gridpicture/toptocorner/) { get; set; } | Gets and sets the vertical offset of shape from worksheet top border, in unit of pixels. |
| [UpperDeltaX](../../aspose.cells.griddesktop.data/gridpicture/upperdeltax/) { get; set; } | Gets or sets the shape's horizontal offset from its upper left corner column. The range of value is 0 to 1024. |
| [UpperDeltaY](../../aspose.cells.griddesktop.data/gridpicture/upperdeltay/) { get; set; } | Gets or sets the shape's vertical offset from its upper left corner row. The range of value is 0 to 256. |
| [UpperLeftColumn](../../aspose.cells.griddesktop.data/gridshapedraw/upperleftcolumn/) { get; } | Represents upper left corner column index.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [UpperLeftRow](../../aspose.cells.griddesktop.data/gridshapedraw/upperleftrow/) { get; } | Represents upper left corner row index.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [Width](../../aspose.cells.griddesktop.data/gridshapedraw/width/) { get; set; } | Represents the width of shape, in unit of pixels.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [WidthCM](../../aspose.cells.griddesktop.data/gridpicture/widthcm/) { get; set; } | Represents the width of the shape, in unit of centimeters. |
| [WidthInch](../../aspose.cells.griddesktop.data/gridpicture/widthinch/) { get; set; } | Represents the width of the shape, in unit of inch. |
| [WidthPt](../../aspose.cells.griddesktop.data/gridpicture/widthpt/) { get; set; } | Represents the width of the shape, in unit of point. |
| [WidthScale](../../aspose.cells.griddesktop.data/gridpicture/widthscale/) { get; set; } | 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; |
| [X](../../aspose.cells.griddesktop.data/gridpicture/x/) { get; set; } | Gets and sets the horizonal offset of shape from worksheet left border,in unit of pixels. |
| [Y](../../aspose.cells.griddesktop.data/gridpicture/y/) { get; set; } | Gets and sets the vertical offset of shape from worksheet top border,in unit of pixels. |
| [ZOrderPosition](../../aspose.cells.griddesktop.data/gridshapedraw/zorderposition/) { get; set; } | Returns the position of a shape in the z-order.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |

## Methods

| Name | Description |
| --- | --- |
| [AddHyperlink](../../aspose.cells.griddesktop.data/gridshapedraw/addhyperlink/)(string) | Adds a hyperlink to the shape.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [AlignTopRightCorner](../../aspose.cells.griddesktop.data/gridshapedraw/aligntoprightcorner/)(int, int) | Moves the picture to the top-right corner.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| override [GetImage](../../aspose.cells.griddesktop.data/gridpicture/getimage/)() | return image of this shape |
| [IsGroup](../../aspose.cells.griddesktop.data/gridshapedraw/isgroup/)() | Indicates whether the shape is a group.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [Move](../../aspose.cells.griddesktop.data/gridpicture/move/)(int, int) | Moves the picture to a specified location. |
| [MoveToRange](../../aspose.cells.griddesktop.data/gridshapedraw/movetorange/)(int, int, int, int) | Moves the shape to a specified range.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| [RemoveHyperlink](../../aspose.cells.griddesktop.data/gridshapedraw/removehyperlink/)() | Remove the hyperlink of the shape.(Inherited from [`GridShapeDraw`](../gridshapedraw/).) |
| static [ToStream](../../aspose.cells.griddesktop.data/gridpicture/tostream/)(Image, ImageFormat) | Get the stream of the picture. |

## Fields

| Name | Description |
| --- | --- |
| [_withinCell](../../aspose.cells.griddesktop.data/gridpicture/_withincell/) |  |

### See Also

* class [GridShapeDraw](../gridshapedraw/)
* namespace [Aspose.Cells.GridDesktop.Data](../../aspose.cells.griddesktop.data/)
* assembly [Aspose.Cells.GridDesktop](../../)


