Class
ShapeAdornerUI

ShapeAdornerUI

Definition

Namespace:Telerik.Windows.Documents.UI.Adorner

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ShapeAdornerUI : UserControl, IInlineSelectionHandler, IComponentConnector

Inheritance: objectShapeAdornerUI

Implements: IComponentConnectorIInlineSelectionHandler

Constructors

ShapeAdornerUI()

Declaration

cs-api-definition
public ShapeAdornerUI()

Properties

CanDrag

Determines whether the shape adorner can be dragged.

Declaration

cs-api-definition
public bool CanDrag { get; }

Property Value

bool

CanResize

Gets a value indicating whether the shape can be resized.

Declaration

cs-api-definition
public bool CanResize { get; set; }

Property Value

bool

CanRotate

Gets a value indicating whether the shape adorner can be rotated.

Declaration

cs-api-definition
public bool CanRotate { get; set; }

Property Value

bool

ImageSelectionAdornerSettings

Represents the settings for the image selection adorner in the Shape Adorner UI.

Declaration

cs-api-definition
public ImageSelectionAdornerSettings ImageSelectionAdornerSettings { get; set; }

Property Value

ImageSelectionAdornerSettings

LastMouseDownArgs

Gets the arguments associated with the last mouse down event within the Shape Adorner UI.

Declaration

cs-api-definition
public MouseButtonEventArgs LastMouseDownArgs { get; set; }

Property Value

MouseButtonEventArgs

Methods

GetLayoutClip(Size)

Declaration

cs-api-definition
protected override Geometry GetLayoutClip(Size layoutSlotSize)

Parameters

layoutSlotSize

Size

Returns

Geometry

GetUIElement()

Retrieves the UI element associated with the ShapeAdorner.

Declaration

cs-api-definition
public UIElement GetUIElement()

Returns

UIElement

The UI element of type UIElement representing the shape adorner.

Implements IInlineSelectionHandler.GetUIElement()

HideSelection()

Hides the selection of the shape adorner.

Declaration

cs-api-definition
public void HideSelection()

Implements IInlineSelectionHandler.HideSelection()

InitializeComponent()

InitializeComponent

Declaration

cs-api-definition
public void InitializeComponent()

SetClip(Geometry)

Sets the clipping geometry for the Shape Adorner UI.

Declaration

cs-api-definition
public void SetClip(Geometry geometry)

Parameters

geometry

Geometry

A Geometry that defines the clipping area.

ShouldStartDragging(Inline)

Determines whether the dragging operation should start for the specified inline element.

Declaration

cs-api-definition
public bool ShouldStartDragging(Inline inline)

Parameters

inline

Inline

The inline element to check for dragging eligibility.

Returns

bool

True if the dragging operation should start; otherwise, false.

ShowInlineSelection(Inline, bool)

Displays the inline selection for the specified inline element.

Declaration

cs-api-definition
public void ShowInlineSelection(Inline inline, bool readOnly)

Parameters

inline

Inline

The inline element for which the selection will be shown.

readOnly

bool

A boolean value indicating whether the inline selection can be edited.

Implements IInlineSelectionHandler.ShowInlineSelection(Inline, bool)

Events

BlockMoved

Declaration

cs-api-definition
public event EventHandler<BlockMovedEventArgs> BlockMoved

Event Value

EventHandler<BlockMovedEventArgs>

ShapeResized

Declaration

cs-api-definition
public event EventHandler<ShapeResizedEventArgs> ShapeResized

Event Value

EventHandler<ShapeResizedEventArgs>

ShapeRotated

Declaration

cs-api-definition
public event EventHandler<ShapeRotatedEventArgs> ShapeRotated

Event Value

EventHandler<ShapeRotatedEventArgs>