Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextFormatter.FormatMinMaxParagraphWidth Method (TextSource, Int32, TextParagraphProperties, TextRunCache)

 

Returns a value that represents the smallest and largest possible paragraph width that can fully contain the specified text content.

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

public abstract MinMaxParagraphWidth FormatMinMaxParagraphWidth(
	TextSource textSource,
	int firstCharIndex,
	TextParagraphProperties paragraphProperties,
	TextRunCache textRunCache
)

Parameters

textSource
Type: System.Windows.Media.TextFormatting.TextSource

A TextSource object that represents the text source for the line.

firstCharIndex
Type: System.Int32

An Int32 value that specifies the character index of the starting character in the line.

paragraphProperties
Type: System.Windows.Media.TextFormatting.TextParagraphProperties

A TextParagraphProperties object that represents paragraph properties, such as flow direction, alignment, or indentation.

textRunCache
Type: System.Windows.Media.TextFormatting.TextRunCache

A TextRunCache object that represents the caching mechanism for the layout of text.

Return Value

Type: System.Windows.Media.TextFormatting.MinMaxParagraphWidth

A MinMaxParagraphWidth value that represents the smallest and largest possible paragraph width that can fully contain the specified text content.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft