Version

GetFont(Int32) Method

Gets the font which controls the formatting properties in the string from the specified start index to the end of the string.
Syntax
public FormattedStringFont GetFont( 
   int startIndex
)

Parameters

startIndex
The index of the first character the returned font controls.

Return Value

A FormattedStringFont instance which controls the formatting of the end portion of the string.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionstartIndex is less than zero.
Remarks

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 FormattedStringFont is set.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also