MaxLevelCount

TextStyle.MaxLevelCount field

可以定义的样式级别的最大数量。 与 GetLevel(int index)

public static readonly byte MaxLevelCount;

例子

for (int i = 0; i < TextStyle.MaxLevelCount; i++)
{
    IParagraphFormat paragraphFormat = GetLevel(i);
    ...
}

也可以看看