FormattedText::MaxTextHeight Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the maximum height of a text column.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
property double MaxTextHeight {
	double get();
	void set(double value);
}

Property Value

Type: System::Double

The maximum height of a text column, provided in device-independent units (1/96th inch per unit).

The last line of text displayed is the last whole line that will fit within the MaxTextHeight limit or the line number that does not exceed the MaxLineCount property, whichever occurs first.

The following example creates a FormattedText object and then applies several formatting styles to the text, including MaxTextHeight.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: