Class XlsShape
- Namespace
- Spire.Xls.Core.Spreadsheet.Shapes
- Assembly
- Spire.XLS.dll
public class XlsShape : XlsObject, IShape, IExcelApplication, IDisposable, ICloneParent, INamedObject
- Inheritance
-
XlsShape
- Implements
- Derived
- Inherited Members
Properties
AlternativeText
Returns or sets the descriptive (alternative) text string for a Shape object when the object is saved to a Web page. Read/write String
public string AlternativeText { get; set; }
Property Value
AlternativeTextTitle
Returns or sets the descriptive (alternative) text title string for a Shape object when the object is saved to a Web page. Read/write String
public string AlternativeTextTitle { get; set; }
Property Value
AutoSize
public bool AutoSize { get; set; }
Property Value
BottomRow
Bottom row.
public int BottomRow { get; set; }
Property Value
BottomRowOffset
Bottom row offset.
public int BottomRowOffset { get; set; }
Property Value
Fill
Represents fill properties.
public IShapeFill Fill { get; }
Property Value
Glow
public IGlow Glow { get; }
Property Value
HasFill
public bool HasFill { get; set; }
Property Value
HasLineFormat
public bool HasLineFormat { get; set; }
Property Value
Height
Height of object.
public int Height { get; set; }
Property Value
HtmlString
Gets and sets the html string which contains data and some formattings in this shape.
public string HtmlString { get; set; }
Property Value
ID
public int ID { get; }
Property Value
Instance
public virtual int Instance { get; }
Property Value
IsFlipH
Returns or sets if the shape flips Horizontal.false is default;
public bool IsFlipH { get; set; }
Property Value
IsFlipV
Returns or sets if the shape flips Vertical.false is default;
public bool IsFlipV { get; set; }
Property Value
IsGroup
This shape is group shape.
public bool IsGroup { get; }
Property Value
IsInGroup
This shape is child shape of group shape.
public bool IsInGroup { get; }
Property Value
IsLockAspectRatio
public bool IsLockAspectRatio { get; set; }
Property Value
IsLocked
public bool IsLocked { get; set; }
Property Value
IsMoveWithCell
protected bool IsMoveWithCell { get; set; }
Property Value
IsPrintable
public bool IsPrintable { get; set; }
Property Value
IsRelative
public bool IsRelative { get; set; }
Property Value
IsRelativeResize
True means that is relative to original size of picture.
public bool IsRelativeResize { get; set; }
Property Value
IsShortVersion
public bool IsShortVersion { get; set; }
Property Value
IsSizeWithCell
protected bool IsSizeWithCell { get; set; }
Property Value
IsSmartArt
public bool IsSmartArt { get; }
Property Value
Left
public int Left { get; set; }
Property Value
LeftColumn
Left column.
public int LeftColumn { get; set; }
Property Value
LeftColumnOffset
Left column offset. 1024 means whole column offset
public int LeftColumnOffset { get; set; }
Property Value
Line
public IShapeLineFormat Line { get; }
Property Value
LinkedCell
Gets or sets the range linked to the shape's value.
public IXLSRange LinkedCell { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
OnAction
public string OnAction { get; set; }
Property Value
Reflection
public IReflectionEffect Reflection { get; }
Property Value
ResizeBehave
Specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(ComboBoxShape and CheckBoxShape and RadioButtonShape set MoveAndResize type value is invalid)
public ResizeBehaveType ResizeBehave { get; set; }
Property Value
RichText
public IRichTextString RichText { get; }
Property Value
RightColumn
Right column.
public int RightColumn { get; set; }
Property Value
RightColumnOffset
Right column offset.
public int RightColumnOffset { get; set; }
Property Value
Rotation
Returns or sets the rotation of the shape, in degrees.
public int Rotation { get; set; }
Property Value
Shadow
public IShadow Shadow { get; }
Property Value
ShapeCount
public int ShapeCount { get; }
Property Value
ShapeId
public int ShapeId { get; set; }
Property Value
ShapeType
Type of shape , Read Only.
public ExcelShapeType ShapeType { get; set; }
Property Value
TextFrame
public ITextFrame TextFrame { get; }
Property Value
TextVerticalAlignment
public ExcelVerticalAlignment TextVerticalAlignment { get; set; }
Property Value
ThreeD
public IFormat3D ThreeD { get; }
Property Value
Top
public int Top { get; set; }
Property Value
TopRow
Top row.
public int TopRow { get; set; }
Property Value
TopRowOffset
Top row offset.256 means whole row offset
public int TopRowOffset { get; set; }
Property Value
UpdatePositions
public bool UpdatePositions { get; set; }
Property Value
Visible
public bool Visible { get; set; }
Property Value
VmlShape
public bool VmlShape { get; set; }
Property Value
Width
Width of object.
public int Width { get; set; }
Property Value
Methods
ChangeLayer(ShapeLayerChangeType)
public void ChangeLayer(ShapeLayerChangeType changeType)
Parameters
changeType
ShapeLayerChangeType
Clone(object)
Creates a clone of the current shape.
public object Clone(object parent)
Parameters
parent
objectNew parent for the shape object.
Returns
- object
A copy of the current shape.
Clone(object, Dictionary<string, string>, Dictionary<int, int>, bool)
Creates a clone of the current shape.
public virtual IShape Clone(object parent, Dictionary<string, string> hashNewNames, Dictionary<int, int> dicFontIndexes, bool addToCollections)
Parameters
parent
objectNew parent for the shape object.
hashNewNames
Dictionary<string, string>Hashtable with new worksheet names.
dicFontIndexes
Dictionary<int, int>Dictionary with new font indexes.
addToCollections
bool
Returns
- IShape
A copy of the current shape.
Remove()
Removes object.
public void Remove()
SaveToImage(Stream)
Save shape to image.
public void SaveToImage(Stream fileStream)
Parameters
fileStream
StreamOutput stream. It is ignored if null.
SaveToImage(string)
Save shape to image.
public void SaveToImage(string fileName)
Parameters
fileName
stringOutput file name.
Scale(int, int)
Scales the shape.
public void Scale(int scaleWidth, int scaleHeight)
Parameters
SetName(string)
public void SetName(string name)
Parameters
name
string
SetParents()
protected virtual void SetParents()
SetTextEffect(PresetTextEffect, string)
public void SetTextEffect(PresetTextEffect effect, string text)
Parameters
effect
PresetTextEffecttext
string