Class GridPicture

GridPicture class

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

public class GridPicture

Properties

NameDescription
AlternativeText { get; set; }
BorderLineColor { get; set; }Represents the Color of the border line of a picture.
BorderWeight { get; set; }Gets or sets the weight of the border line of a picture in units of pt.
Bottom { get; set; }
Data { get; set; }Gets the data of the picture.
HasLine { get; set; }Gets and sets the line border of the shape is visible.
Height { get; set; }Represents the height of shape, in unit of pixel.
HeightCM { get; set; }Represents the height of the shape, in unit of inches.
HeightInch { get; set; }Represents the height of the shape, in unit of inches.
HeightPt { get; set; }Represents the height of the shape, in unit of points.
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 { get; set; }Gets and sets the html string which contains data and some formattings in this textbox.
Hyperlink { get; }Gets the hyperlink of the shape.
ID { get; set; }Gets /Sets the ID of the picture.
Image { get; set; }Gets or sets the Image object.
ImageFormat { get; }Gets the image format of the picture.
IsFlippedVertically { get; set; }Gets and sets whether shape is vertically flipped .
IsHidden { get; set; }Indicates whether the object is visible.
IsLockAspectRatio { get; set; }True means that don’t allow changes in aspect ratio.
IsLocked { get; set; }True if the object is locked, False if the object can be modified when the sheet is protected.
IsTextWrapped { get; set; }Gets and sets the text wrapped type of the shape which contains text.
Left { get; set; }Represents the horizontal offset of shape from its left column, in unit of pixels.
LeftCM { get; set; }Represents the horizontal offset of shape from its left column, in unit of centimeters.
LeftInch { get; set; }Represents the horizontal offset of shape from its left column, in unit of inches.
LeftToCorner { get; set; }Represents the horizontal offset of shape from worksheet left board, in unit of pixels.
LinkedCell { get; set; }Gets or sets the worksheet range linked to the control’s value.
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 { 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 { get; set; }Represents lower right corner column index.
LowerRightRow { get; set; }Represents lower right corner row index.
Name { get; set; }Gets and sets the name of the shape.
OriginalHeight { get; }Gets the original height of the picture.
OriginalHeightCM { get; }Gets the original height of picture, in unit of centimeters.
OriginalHeightInch { get; }Gets the original height of picture, in unit of inches.
OriginalWidth { get; }Gets the original width of the picture.
OriginalWidthCM { get; }Gets the original width of picture, in unit of centimeters.
OriginalWidthInch { get; }Gets the original width of picture, in unit of inches.
RelativeToOriginalPictureSize { get; set; }Indicates whether shape is relative to original picture size.
Right { get; set; }Represents the width of the shape’s horizontal offset from its lower right corner column, in unit of pixels.
RotationAngle { get; set; }Gets and sets the rotation of the shape.
SourceFullName { get; set; }Gets or sets the path and name of the source file for the linked image.
Text { get; set; }Represents the string in this TextBox object.
Title { get; set; }
Top { get; set; }Represents the vertical offset of shape from its top row, in unit of pixels.
TopCM { get; set; }Represents the vertical offset of shape from its top row, in unit of centimeters.
TopInch { get; set; }Represents the vertical offset of shape from its top row, in unit of inches.
TopToCorner { get; set; }Represents the vertical offset of shape from worksheet top board, in unit of pixels.
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 { 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 { get; set; }Represents upper left corner column index.
UpperLeftRow { get; set; }Represents upper left corner row index.
Width { get; set; }Represents the width of shape, in unit of pixels.
WidthCM { get; set; }Represents the width of the shape, in unit of centimeters.
WidthInch { get; set; }Represents the width of the shape, in unit of inch.
WidthPt { get; set; }Represents the width of the shape, in unit of point.
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 { get; set; }Gets and sets the horizonal offset of shape from worksheet left border,in unit of pixels.
Y { get; set; }Gets and sets the vertical offset of shape from worksheet top border,in unit of pixels.
ZOrderPosition { get; set; }Returns the position of a shape in the z-order.

Methods

NameDescription
AddHyperlink(string)Adds a hyperlink to the shape.
AlignTopRightCorner(int, int)Moves the picture to the top-right corner.
IsGroup()Indicates whether the shape is a group.
Move(int, int)Moves the picture to a specified location.
MoveToRange(int, int, int, int)Moves the shape to a specified range.
RemoveHyperlink()Remove the hyperlink of the shape.
SaveToImage(Stream)Creates the image and saves it to a stream .

See Also