'Declaration Public Overloads Function GetFont( _ ByVal startIndex As System.Integer, _ ByVal length As System.Integer _ ) As FormattedTextFont
public FormattedTextFont GetFont( System.int startIndex, System.int length )
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | startIndex is less than zero. |
System.ArgumentOutOfRangeException | length is less than one. A zero length string cannot be controlled by a formatting font. |
If the start index is greater than or equal to the length of the unformatted string, no exception will be thrown. It will be thrown later when one of the formatting properties of the returned FormattedTextFont is set.
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
View on GitHub