Class GridPicture

GridPicture class

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

public class GridPicture : GridShapeDraw

Properties

NameDescription
ActualHeight { get; }Gets the actual height of shape .
ActualWidth { get; }Gets the actual width of shape .
AlternativeText { get; set; }Returns or sets the descriptive (alternative) text string of the GridShapeDraw object.(Inherited from GridShapeDraw.)
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; }Represents the width of the shape’s vertical offset from its lower bottom corner row, in unit of pixels.(Inherited from GridShapeDraw.)
Column { get; }Represents upper left corner column index.
Data { get; set; }Gets the data of the picture.
Height { get; set; }Represents the height of shape, in unit of pixel.(Inherited from GridShapeDraw.)
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.(Inherited from GridShapeDraw.)
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.(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.)
IsOutlineVisible { get; set; }Gets and sets the line border of the shape is visible.
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.(Inherited from GridShapeDraw.)
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.
LeftOffset { get; set; }Represents the horizontal offset of shape from its left column, in unit of pixels.
LeftToCorner { get; set; }Gets and sets the horizonal offset of shape from worksheet left border.
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.(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.)
OriginalHeightCM { get; }Gets the original height of picture, in unit of centimeters.
OriginalHeightInch { get; }Gets the original height of picture, in unit of inches.
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.(Inherited from GridShapeDraw.)
RotationAngle { get; set; }Gets and sets the rotation of the shape.(Inherited from GridShapeDraw.)
Row { get; }Represents upper left corner row index.
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; }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.)
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.
TopOffset { get; set; }Represents the vertical offset of shape from its top row, in unit of pixels.
TopToCorner { get; set; }Gets and sets the vertical offset of shape from worksheet top border, 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; }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.)
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.(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.)
Move(int, int)Moves the picture to a specified location.
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.)
static ToStream(Image, ImageFormat)Get the stream of the picture.

Fields

NameDescription
_withinCell

See Also