Typeface.Builder.SetTtcIndex(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets an index of the font collection.
[Android.Runtime.Register("setTtcIndex", "(I)Landroid/graphics/Typeface$Builder;", "", ApiSince=26)]
public Android.Graphics.Typeface.Builder? SetTtcIndex(int ttcIndex);
[<Android.Runtime.Register("setTtcIndex", "(I)Landroid/graphics/Typeface$Builder;", "", ApiSince=26)>]
member this.SetTtcIndex : int -> Android.Graphics.Typeface.Builder
Parameters
- ttcIndex
- Int32
An index of the font collection. If the font source is not font collection, do not call this method or specify 0. Value is 0 or greater
Returns
- Attributes
Remarks
Sets an index of the font collection. See R.attr.ttcIndex. Can not be used for Typeface source. build() method will return null for invalid index.
Android reference for android.graphics.Typeface.Builder.setTtcIndex.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.