Back to Devexpress

HtmlContentControl.GetContentSize() Method

windowsforms-devexpress-dot-xtraeditors-dot-htmlcontentcontrol-1898696a.md

latest1.9 KB
Original Source

HtmlContentControl.GetContentSize() Method

Returns the rectangle that the control’s contents occupy.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Size GetContentSize()
vb
Public Function GetContentSize As Size

Returns

TypeDescription
Size

The bounds of the control’s contents.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetContentSize() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-chat-for-net-framework/CS/DevExpress.AI.WinForms.HtmlChat/ChatControl.cs#L70

csharp
{
    var contentSize = typingBox.GetContentSize();
    typingBox.Height = contentSize.Height;

See Also

HtmlContentControl Class

HtmlContentControl Members

DevExpress.XtraEditors Namespace