public FormattedStringFont GetFont( int startIndex, 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 FormattedStringFont is set.
Target Platforms: Android 4.4+, iOS 8+
Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+