Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

The Shape class allows the appearance and behavior of drawing object to be manipulated. On its own, Shape represents a simple auto shape, such as a line, rectangle, or oval. A shape may also represent the display area of a Comment or the size, position, and formatting of a Picture.

Signature
C#
C#
 public class Shape
{signature}{signature:
}
Signature
vb.net
vb.net
Public Class Shape
{signature}
{remarks}Once a {{Shape}} is created with a particular [ShapeType|ShapeType], the type may not be changed. Instead, delete the shape and create a new one with the appropriate type.

To create a {{Shape}} object, call [Shapes.CreateShape|Shapes.CreateShape(ShapeType, Anchor)].

{remarks}
{properties}
||Name||Description||
|[FillColor|Shape.FillColor]|{excerpt-include:Shape.FillColor|nopanel=true}|
|[FillTransparency|Shape.FillTransparency]|{excerpt-include:Shape.FillTransparency|nopanel=true}|
|[FitToText|Shape.FitToText]|{excerpt-include:Shape.FitToText|nopanel=true}|
|[Height|Shape.Height]|{excerpt-include:Shape.Height|nopanel=true}|
|[HorizontalAlignment|Shape.HorizontalAlignment]|{excerpt-include:Shape.HorizontalAlignment|nopanel=true}|
|[LineColor|Shape.LineColor]|{excerpt-include:Shape.LineColor|nopanel=true}|
|[LockAspectRatio|Shape.LockAspectRatio]|{excerpt-include:Shape.LockAspectRatio|nopanel=true}|
|[Name|Shape.Name]|{excerpt-include:Shape.Name|nopanel=true}|
|[ObjectPositioning|Shape.ObjectPositioning]|{excerpt-include:Shape.ObjectPositioning|nopanel=true}|
|[Position|Shape.Position]|{excerpt-include:Shape.Position|nopanel=true}|
|[Rotation|Shape.Rotation]|{excerpt-include:Shape.Rotation|nopanel=true}|
|[Text|Shape.Text]|{excerpt-include:Shape.Text|nopanel=true}|
|[Type|Shape.Type]|{excerpt-include:Shape.Type|nopanel=true}|
|[VerticalAlignment|Shape.VerticalAlignment]|{excerpt-include:Shape.VerticalAlignment|nopanel=true}|
|[Width|Shape.Width]|{excerpt-include:Shape.Width|nopanel=true}|
{properties} {methods}
||Name||Description||
|[ClearRichTextFormatting()|Shape.ClearRichTextFormatting()]|{excerpt-include:Shape.ClearRichTextFormatting()|nopanel=true}|
|[GetCharacters(Int32)|Shape.GetCharacters(Int32)]|{excerpt-include:Shape.GetCharacters(Int32)|nopanel=true}|
|[GetCharacters(Int32, Int32)|Shape.GetCharacters(Int32, Int32)]|{excerpt-include:Shape.GetCharacters(Int32, Int32)|nopanel=true}|
|[SetCustomFillColor(Int32, Int32, Int32)|Shape.SetCustomFillColor(Int32, Int32, Int32)]|{excerpt-include:Shape.SetCustomFillColor(Int32, Int32, Int32)|nopanel=true}|
|[SetCustomLineColor(Int32, Int32, Int32)|Shape.SetCustomLineColor(Int32, Int32, Int32)]|{excerpt-include:Shape.SetCustomLineColor(Int32, Int32, Int32)|nopanel=true}|
Remarks

Once a Shape is created with a particular ShapeType, the type may not be changed. Instead, delete the shape and create a new one with the appropriate type.

To create a Shape object, call Shapes.CreateShape.

Properties

Name

Description

FillColor

Excerpt Include
Shape.FillColor
Shape.FillColor
nopaneltrue

FillTransparency

Excerpt Include
Shape.FillTransparency
Shape.FillTransparency
nopaneltrue

FitToText

Excerpt Include
Shape.FitToText
Shape.FitToText
nopaneltrue

Height

Excerpt Include
Shape.Height
Shape.Height
nopaneltrue

HorizontalAlignment

Excerpt Include
Shape.HorizontalAlignment
Shape.HorizontalAlignment
nopaneltrue

LineColor

Excerpt Include
Shape.LineColor
Shape.LineColor
nopaneltrue

LockAspectRatio

Excerpt Include
Shape.LockAspectRatio
Shape.LockAspectRatio
nopaneltrue

Name

Excerpt Include
Shape.Name
Shape.Name
nopaneltrue

ObjectPositioning

Excerpt Include
Shape.ObjectPositioning
Shape.ObjectPositioning
nopaneltrue

Position

Excerpt Include
Shape.Position
Shape.Position
nopaneltrue

Rotation

Excerpt Include
Shape.Rotation
Shape.Rotation
nopaneltrue

Text

Excerpt Include
Shape.Text
Shape.Text
nopaneltrue

Type

Excerpt Include
Shape.Type
Shape.Type
nopaneltrue

VerticalAlignment

Excerpt Include
Shape.VerticalAlignment
Shape.VerticalAlignment
nopaneltrue

Width

Excerpt Include
Shape.Width
Shape.Width
nopaneltrue
Properties
Methods

Name

Description

ClearRichTextFormatting()

Excerpt Include
Shape.ClearRichTextFormatting()
Shape.ClearRichTextFormatting()
nopaneltrue

GetCharacters(Int32)

Excerpt Include
Shape.GetCharacters(Int32)
Shape.GetCharacters(Int32)
nopaneltrue

GetCharacters(Int32, Int32)

Excerpt Include
Shape.GetCharacters(Int32, Int32)
Shape.GetCharacters(Int32, Int32)
nopaneltrue

SetCustomFillColor(Int32, Int32, Int32)

Excerpt Include
Shape.SetCustomFillColor(Int32, Int32, Int32)
Shape.SetCustomFillColor(Int32, Int32, Int32)
nopaneltrue

SetCustomLineColor(Int32, Int32, Int32)

Excerpt Include
Shape.SetCustomLineColor(Int32, Int32, Int32)
Shape.SetCustomLineColor(Int32, Int32, Int32)
nopaneltrue