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

ShapeAdornerUI

Definition

Namespace:Telerik.Windows.Documents.UI.Adorner

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ShapeAdornerUI : UserControl, IInlineSelectionHandler, IComponentConnector

Inheritance: objectShapeAdornerUI

Implements: IComponentConnectorIInlineSelectionHandler

Constructors

C#
public ShapeAdornerUI()

Properties

Determines whether the shape adorner can be dragged.

C#
public bool CanDrag { get; }

Gets a value indicating whether the shape can be resized.

C#
public bool CanResize { get; set; }

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

C#
public bool CanRotate { get; set; }

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

C#
public ImageSelectionAdornerSettings ImageSelectionAdornerSettings { get; set; }

LastMouseDownArgs

MouseButtonEventArgs

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

C#
public MouseButtonEventArgs LastMouseDownArgs { get; set; }

Methods

C#
protected override Geometry GetLayoutClip(Size layoutSlotSize)
Parameters:layoutSlotSizeSizeReturns:

Geometry

Retrieves the UI element associated with the ShapeAdorner.

C#
public UIElement GetUIElement()
Returns:

UIElement

The UI element of type UIElement representing the shape adorner.

Implements: IInlineSelectionHandler.GetUIElement()

Hides the selection of the shape adorner.

C#
public void HideSelection()

Implements: IInlineSelectionHandler.HideSelection()

InitializeComponent

C#
public void InitializeComponent()

Sets the clipping geometry for the Shape Adorner UI.

C#
public void SetClip(Geometry geometry)
Parameters:geometryGeometry

A Geometry that defines the clipping area.

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

C#
public bool ShouldStartDragging(Inline inline)
Parameters:inlineInline

The inline element to check for dragging eligibility.

Returns:

bool

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

Displays the inline selection for the specified inline element.

C#
public void ShowInlineSelection(Inline inline, bool readOnly)
Parameters:inlineInline

The inline element for which the selection will be shown.

readOnlybool

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

Implements: IInlineSelectionHandler.ShowInlineSelection(Inline, bool)

Events

C#
public event EventHandler<BlockMovedEventArgs> BlockMoved
C#
public event EventHandler<ShapeResizedEventArgs> ShapeResized
C#
public event EventHandler<ShapeRotatedEventArgs> ShapeRotated