Skip to content

MultiLineTextBox.SizeToDocument property

Gets or sets whether the desired size is the document’s extent clamped to the offered space, instead of the offered space itself; the default is false.

public bool SizeToDocument { get; set; }

Reporting the offered space is what an editor filling a pane wants, and it costs no extent lookup.

Fluent: .SizeToDocument(Boolean)