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

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:

C#
public class CommentLayoutElement

Inheritance: objectCommentLayoutElement

Constructors

C#
public CommentLayoutElement(Comment comment, Thickness margin)
Parameters:commentCommentmarginThickness

Properties

Gets the desired size of the comment layout element.

C#
public SizeF DesiredSize { get; }

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

C#
public float DesiredY { get; set; }
Property Value:

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

Methods

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

C#
public SizeF Measure(SizeF size)
Parameters:sizeSizeF

The size to measure the CommentLayoutElement against.

Returns:

SizeF

A SizeF structure representing the measured dimensions of the CommentLayoutElement.

Sets the height of the comment layout element.

C#
public void SetHeight(float newHeight)
Parameters:newHeightfloat

The height to set, measured in pixels.