Class
CommentLayoutElement

Represents the layout of a comment in the Telerik UI Annotations system.

Definition

Namespace:Telerik.Windows.Documents.UI.Annotations

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class CommentLayoutElement

Inheritance: objectCommentLayoutElement

Constructors

CommentLayoutElement(Comment, Thickness)

Declaration

cs-api-definition
public CommentLayoutElement(Comment comment, Thickness margin)

Parameters

comment

Comment

margin

Thickness

Properties

DesiredSize

Gets the desired size of the comment layout element.

Declaration

cs-api-definition
public SizeF DesiredSize { get; }

Property Value

SizeF

DesiredY

Gets or sets the desired vertical position of the comment layout element.

Declaration

cs-api-definition
public float DesiredY { get; set; }

Property Value

float

A double representing the desired Y-coordinate for the comment layout element.

Methods

Measure(SizeF)

Measures the dimensions of the CommentLayoutElement based on the specified size.

Declaration

cs-api-definition
public SizeF Measure(SizeF size)

Parameters

size

SizeF

The size to measure the CommentLayoutElement against.

Returns

SizeF

A SizeF structure representing the measured dimensions of the CommentLayoutElement.

SetHeight(float)

Sets the height of the comment layout element.

Declaration

cs-api-definition
public void SetHeight(float newHeight)

Parameters

newHeight

float

The height to set, measured in pixels.