Class
ShapeInline

Represents an inline-level document element, which contains a DrawingML shape.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ShapeInline : DrawingInline

Inheritance: objectDocumentElementInlineDrawingInlineShapeInline

Inherited Members Inline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)Inline.CopyContentFrom(DocumentElement)Inline.FieldStartInline.IsCopyableDocumentElement.GetStyleProperty(IStylePropertyDefinition)DocumentElement.GetStyleProperty(string)DocumentElement.EnumerateChildrenOfType<T>()DocumentElement.GetParentOfType<T>()DocumentElement.CreateLayoutBox()DocumentElement.CopyPropertiesFrom(DocumentElement)DocumentElement.CopyPropertiesFromStyle(StyleDefinition)DocumentElement.ExtractStyleFromProperties()DocumentElement.ExtractStyleFromLocalProperties()DocumentElement.InvalidateAssociatedBoxesArrange()DocumentElement.InvalidateAssociatedBoxesMeasure()DocumentElement.InvalidateAssociatedBoxesLayout()DocumentElement.GetAssociatedLayoutBoxes()DocumentElement.GetRootDocument()DocumentElement.CreateDeepCopy()DocumentElement.CreateShallowCopy()DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)DocumentElement.ClearValue(IStylePropertyDefinition)DocumentElement.OnRemoved()DocumentElement.OnStyleChanging()DocumentElement.OnStyleChanged()DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.OnParentChanging()DocumentElement.OnParentChanged()DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChanged

Constructors

ShapeInline()

Declaration

cs-api-definition
public ShapeInline()

ShapeInline(ShapeInline)

Declaration

cs-api-definition
public ShapeInline(ShapeInline shape)

Parameters

shape

ShapeInline

Properties

Body

Returns the underling document that holds the shape text.

Declaration

cs-api-definition
public RadDocument Body { get; }

Property Value

RadDocument

Height

Gets or sets the height.

Declaration

cs-api-definition
[XamlSerializable]
public override double Height { get; set; }

Property Value

double

The height.

Overrides DrawingInline.Height

RotateAngle

Gets or sets the angle at which the image should be rotated.

Declaration

cs-api-definition
[XamlSerializable(0)]
public override double RotateAngle { get; set; }

Property Value

double

The rotate angle.

Overrides DrawingInline.RotateAngle

Size

Gets or sets the size.

Declaration

cs-api-definition
public override Size Size { get; set; }

Property Value

Size

The size.

Overrides DrawingInline.Size

Width

Gets or sets the width.

Declaration

cs-api-definition
[XamlSerializable]
public override double Width { get; set; }

Property Value

double

The width.

Overrides DrawingInline.Width

Methods

CopyContentFromOverride(DocumentElement)

Copies the content from another Inline.

Declaration

cs-api-definition
protected override void CopyContentFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The Inline to copy the content from.

Exceptions

NullReferenceException

fromElement must not be null.

InvalidOperationException

Cannot copy content to element itself.

Overrides Inline.CopyContentFromOverride(DocumentElement)

CopyPropertiesFromOverride(DocumentElement)

Copies the properties from another document element to the current instance.

Declaration

cs-api-definition
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The DocumentElement to copy the properties from.

Overrides Inline.CopyPropertiesFromOverride(DocumentElement)

CreateLayoutBox(DocumentStructureCollection)

Creates a layout box for the specified document structure collection.

Declaration

cs-api-definition
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)

Parameters

documentCollection

DocumentStructureCollection

The collection of document structures to create the layout box for.

Returns

LayoutBox

A layout box that represents the specified document structure collection.

Overrides DocumentElement.CreateLayoutBox(DocumentStructureCollection)

CreateNewElementInstance()

Creates a new instance of this element.

Declaration

cs-api-definition
protected override DocumentElement CreateNewElementInstance()

Returns

DocumentElement

The new instance.

Overrides DocumentElement.CreateNewElementInstance()

GetOutlineDash()

Retrieves the outline dash style of the shape inline element.

Declaration

cs-api-definition
public LineDashType? GetOutlineDash()

Returns

LineDashType?

A LineDashType value representing the current outline dash style.

GetOutlineFill()

Gets the outline fill of the shape inline element.

Declaration

cs-api-definition
public IShapeOutlineFill GetOutlineFill()

Returns

IShapeOutlineFill

The outline fill applied to the shape inline element.

GetOutlineWidth()

Retrieves the outline width of the shape inline element.

Declaration

cs-api-definition
public float? GetOutlineWidth()

Returns

float?

A double representing the width of the outline.

GetShapeFill()

Retrieves the fill properties of the shape.

Declaration

cs-api-definition
public IShapeFill GetShapeFill()

Returns

IShapeFill

An object representing the fill settings of the shape.

GetTextOutlineDash()

Retrieves the dash pattern used for the outline of the shape.

Declaration

cs-api-definition
public LineDashType? GetTextOutlineDash()

Returns

LineDashType?

A collection of floating-point values representing the dash pattern. An empty collection indicates that there is no dash pattern applied.

GetTextOutlineFill()

Retrieves the fill color used for the text outline of the shape.

Declaration

cs-api-definition
public IShapeOutlineFill GetTextOutlineFill()

Returns

IShapeOutlineFill

A IShapeOutlineFill representing the fill color of the text outline.

GetTextOutlineWidth()

Retrieves the outline width of the text within the shape inline.

Declaration

cs-api-definition
public double GetTextOutlineWidth()

Returns

double

A floating-point value representing the width of the text outline.