• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Shape

Represents a Shape.

Inheritance
object
AbstractShape
Shape
TextBoxShape
Implements
IDrawingObject
Inherited Members
AbstractShape.Id
AbstractShape.Name
AbstractShape.Size
AbstractShape.ParentGroup
AbstractShape.AnchorPosition
AbstractShape.RelativePosition
AbstractShape.Position
AbstractShape.ShapeType
AbstractShape.FlipH
AbstractShape.FlipV
AbstractShape.PrintObject
AbstractShape.Locked
AbstractShape.Locks
AbstractShape.EnableLocks()
AbstractShape.Hidden
AbstractShape.ZOrderPosition
AbstractShape.LockText
AbstractShape.AlternateText
AbstractShape.Tags
AbstractShape.Fill
AbstractShape.Line
AbstractShape.Effects
AbstractShape.GlowFormat
AbstractShape.Glow
AbstractShape.ReflectionFormat
AbstractShape.Reflection
AbstractShape.ShadowFormat
AbstractShape.SoftEdgeFormat
AbstractShape.SoftEdge
AbstractShape.HyperLink
AbstractShape.Action
AbstractShape.RotationAngle
AbstractShape.SetImageBytes(byte[], string)
AbstractShape.SetImage(string, string)
AbstractShape.WithAdjustments(params long[])
AbstractShape.Adjustments
AbstractShape.PolygonPoints
AbstractShape.OleObject
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class Shape : AbstractShape, IDrawingObject

Constructors

Shape(Document, ShapeType, double, double)

Creates an inline shape with the specified type and size in centimetres.

Declaration
public Shape(Document document, ShapeType shapeType, double widthCm, double heightCm)
Parameters
Type Name Description
Document document
ShapeType shapeType
double widthCm
double heightCm

Properties

FormattedText

Gets or sets formatted text.

Declaration
public FormattedText FormattedText { get; }
Property Value
Type Description
FormattedText

LockAspectRatio

Gets or sets whether the picture retains its original proportions when you resize it.

Declaration
public bool LockAspectRatio { get; set; }
Property Value
Type Description
bool

Outline

Gets the line (outline) properties for this shape. Use DrawingColor and WidthPoints to style the outline.

Declaration
public Line Outline { get; }
Property Value
Type Description
Line

Picture

Gets or sets picture.

Declaration
public Picture Picture { get; }
Property Value
Type Description
Picture

Methods

GetGeometryPaths()

Describes the shape configuration.

Declaration
public override IReadOnlyList<GeometryPath> GetGeometryPaths()
Returns
Type Description
IReadOnlyList<GeometryPath>

The resulting value.

Overrides
AbstractShape.GetGeometryPaths()

SetGeometryPath(GeometryPath)

Sets the geometry Path for this object.

Declaration
public Shape SetGeometryPath(GeometryPath geometryPath)
Parameters
Type Name Description
GeometryPath geometryPath

The geometry Path used by the operation.

Returns
Type Description
Shape

The resulting value.

SetGeometryPaths(IEnumerable<GeometryPath>)

Sets the geometry Paths for this object.

Declaration
public Shape SetGeometryPaths(IEnumerable<GeometryPath> geometryPaths)
Parameters
Type Name Description
IEnumerable<GeometryPath> geometryPaths

The geometry Paths used by the operation.

Returns
Type Description
Shape

The resulting value.

SetImage(string)

Describes the shape configuration.

Declaration
public override AbstractShape SetImage(string path)
Parameters
Type Name Description
string path

The path used by the operation.

Returns
Type Description
AbstractShape

The resulting value.

Overrides
AbstractShape.SetImage(string)

Implements

IDrawingObject
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX