Message-ID: <21420603.9443.1711691268903.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9442_1982785307.1711691268903" ------=_Part_9442_1982785307.1711691268903 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Shape

Shape

Description

The=20 Shape class allows the appearance and behavior of drawing obje= ct to be manipulated. On its own, Shape represents a simple auto shape, suc= h as a line, rectangle, or oval. A shape may also represent the display are= a of a=20 Comment or the size, position, and for= matting of a=20 Picture.=20
C#
=20
 public class Shape
=20
=20
vb.net
=20
Public Class Shape
=20
=20

Remarks

=20

Once a Shape is created with a particular ShapeType, the type may not be chang= ed. Instead, delete the shape and create a new one with the appropriate typ= e.

To create a Shape object, call Shapes.CreateShape.

Properties

Name

Description

Fill= Color

Sets or returns the shape's fill color. The colo= r may be either a custom color or a palette color.

FillTransparency

Sets or returns the fill transparency the shape = as a real number value between 0 (opaque) and 1 (transparent).

FitT= oText

Sets or returns whether the shape will be automa= tically sized to fit the text.

Height<= /a>

Sets or returns the height of the Shape.

HorizontalAlignment

Sets or returns the horizontal alignment of text= within the shape.

Line= Color

Sets or returns the Shape 's line color.

LockAspectRatio

Sets or returns whether the aspect ratio of the = shape will be locked in Excel. This setting has no effect within ExcelWrite= r.

Name<= /p>

Returns the name associated with this shape.

ObjectPositioning

Sets or returns the ObjectPositioning value that determines the shape's resi= ze and reposition behavior when the cells in the worksheet are changed.

Posit= ion

Sets or returns the Shape's position in the worksheet. This property determines the loca= tion of the shape's upper left corner.

Rotat= ion

Sets or returns the rotation angle of the shape.=

Text<= /p>

Sets or returns the text displayed within the sh= ape.

Type<= /p>

Returns the Shape= object's type. This property may not be changed.

VerticalAlignment

Sets or returns the vertical alignment of text w= ithin the shape.

Width

Sets or returns the width of the Shape.

Methods

Name

Description

ClearRichTextFormatting()

Clears all rich text formatting within the shape= . The font of the shape will be set to the normal font of the workbook= .

GetCharacters(Int32)

Returns a = CharacterRun object representing a range of characters within the comme= nt text. Use this to set the font on specified characters within the text.<= /td>

GetCharacters(Int32, Int32)

Returns a = CharacterRun object representing a range of characters within the comme= nt text. Use this to set the font on specified characters within the text.<= /td>

SetCustomFillColor(Int32, Int32, Int32)

Sets the fill color for the shape to be the spec= ified custom RGB value, and returns the generated Color. This method allows a shape to have a colo= r not defined in the worksheet's Palette.

SetCustomLineColor(Int32, Int32, Int32)

Sets the line color for the shape to be the spec= ified custom RGB value, and returns the generated Color. This method allows a shape to have a line= color not defined in the worksheet's Pale= tte.
------=_Part_9442_1982785307.1711691268903--