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

ImageAdornerUI

Definition

Namespace:Telerik.Windows.Documents.UI.Adorner

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ImageAdornerUI : UserControl, IInlineSelectionHandler, IComponentConnector

Inheritance: objectImageAdornerUI

Implements: IComponentConnectorIInlineSelectionHandler

Constructors

C#
public ImageAdornerUI()

Properties

Determines whether the image adorner can be dragged by the user.

C#
public bool CanDrag { get; }

Gets a value indicating whether the adorner can be resized.

C#
public bool CanResize { get; set; }

Determines whether the image adorner can be rotated.

C#
public bool CanRotate { get; set; }

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

C#
public ImageSelectionAdornerSettings ImageSelectionAdornerSettings { get; set; }

LastMouseDownArgs

MouseButtonEventArgs

Represents the arguments associated with the last mouse down event in the Image 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 image adorner.

C#
public UIElement GetUIElement()
Returns:

UIElement

The UI element as a generic type T that represents the image adorner.

Implements: IInlineSelectionHandler.GetUIElement()

Hides the selection of the image adorner UI.

C#
public void HideSelection()

Implements: IInlineSelectionHandler.HideSelection()

InitializeComponent

C#
public void InitializeComponent()

Determines whether dragging should start for the specified inline element.

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

The inline element to check for drag initiation.

Returns:

bool

True if dragging should start; otherwise, false.

Displays an inline selection for the specified inline element.

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

The inline element to show the selection for.

readOnlybool

A boolean value indicating whether the inline element is selected.

Implements: IInlineSelectionHandler.ShowInlineSelection(Inline, bool)

Events

C#
public event EventHandler<BlockMovedEventArgs> BlockMoved
C#
public event EventHandler<ImageResizedEventArgs> ImageResized
C#
public event EventHandler<ImageRotatedEventArgs> ImageRotated