New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
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

C#
public ShapeInline()
C#
public ShapeInline(ShapeInline shape)
Parameters:shapeShapeInline

Properties

Returns the underling document that holds the shape text.

C#
public RadDocument Body { get; }

Gets or sets the height.

C#
[XamlSerializable]
public override double Height { get; set; }
Property Value:

The height.

Overrides: DrawingInline.Height

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

C#
[XamlSerializable(0)]
public override double RotateAngle { get; set; }
Property Value:

The rotate angle.

Overrides: DrawingInline.RotateAngle

Size

Size

Gets or sets the size.

C#
public override Size Size { get; set; }
Property Value:

The size.

Overrides: DrawingInline.Size

Gets or sets the width.

C#
[XamlSerializable]
public override double Width { get; set; }
Property Value:

The width.

Overrides: DrawingInline.Width

Methods

Copies the content from another Inline.

C#
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

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)

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

C#
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

The DocumentElement to copy the properties from.

Overrides: Inline.CopyPropertiesFromOverride(DocumentElement)

Creates a layout box for the specified document structure collection.

C#
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters:documentCollectionDocumentStructureCollection

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)

Creates a new instance of this element.

C#
protected override DocumentElement CreateNewElementInstance()
Returns:

DocumentElement

The new instance.

Overrides: DocumentElement.CreateNewElementInstance()

Retrieves the outline dash style of the shape inline element.

C#
public LineDashType? GetOutlineDash()
Returns:

LineDashType?

A LineDashType value representing the current outline dash style.

Gets the outline fill of the shape inline element.

C#
public IShapeOutlineFill GetOutlineFill()
Returns:

IShapeOutlineFill

The outline fill applied to the shape inline element.

Retrieves the outline width of the shape inline element.

C#
public float? GetOutlineWidth()
Returns:

float?

A double representing the width of the outline.

Retrieves the fill properties of the shape.

C#
public IShapeFill GetShapeFill()
Returns:

IShapeFill

An object representing the fill settings of the shape.

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

C#
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.

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

C#
public IShapeOutlineFill GetTextOutlineFill()
Returns:

IShapeOutlineFill

A IShapeOutlineFill representing the fill color of the text outline.

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

C#
public double GetTextOutlineWidth()
Returns:

double

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