TextRunShaper.ShapeTextRun 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ShapeTextRun(ICharSequence, Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint)
形状非样式文本。
[Android.Runtime.Register("shapeTextRun", "(Ljava/lang/CharSequence;IIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)]
public static Android.Graphics.Text.PositionedGlyphs ShapeTextRun (Java.Lang.ICharSequence text, int start, int count, int contextStart, int contextCount, float xOffset, float yOffset, bool isRtl, Android.Graphics.Paint paint);
[<Android.Runtime.Register("shapeTextRun", "(Ljava/lang/CharSequence;IIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)>]
static member ShapeTextRun : Java.Lang.ICharSequence * int * int * int * int * single * single * bool * Android.Graphics.Paint -> Android.Graphics.Text.PositionedGlyphs
参数
- text
- ICharSequence
要形状的文本缓冲区。 将忽略此文本中存储的任何样式跨度。
- start
- Int32
缓冲区中定形目标的起始索引。
- count
- Int32
缓冲区中调整目标的长度。
- contextStart
- Int32
用于在缓冲区中调整的上下文的起始索引。
- contextCount
- Int32
用于在缓冲区中调整的上下文长度。
- xOffset
- Single
结果标志符号的额外 x 偏移量。
- yOffset
- Single
结果字形的附加 y 偏移量。
- isRtl
- Boolean
如果此文本为 RTL 方向的形状,则为 true;否则为 false。
- paint
- Paint
用于调整文本的油漆。
返回
形状结果
- 属性
注解
形状非样式文本。
此函数在给定上下文范围的上下文下塑造给定区域的文本。 某些脚本(例如阿拉伯语或 Devanagari)会根据其位置或周围字符更改字母形状。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
ShapeTextRun(Char[], Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint)
形状非样式文本。
[Android.Runtime.Register("shapeTextRun", "([CIIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)]
public static Android.Graphics.Text.PositionedGlyphs ShapeTextRun (char[] text, int start, int count, int contextStart, int contextCount, float xOffset, float yOffset, bool isRtl, Android.Graphics.Paint paint);
[<Android.Runtime.Register("shapeTextRun", "([CIIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)>]
static member ShapeTextRun : char[] * int * int * int * int * single * single * bool * Android.Graphics.Paint -> Android.Graphics.Text.PositionedGlyphs
参数
- text
- Char[]
要形状的文本缓冲区
- start
- Int32
缓冲区中定形目标的起始索引。
- count
- Int32
缓冲区中调整目标的长度。
- contextStart
- Int32
用于在缓冲区中调整的上下文的起始索引。
- contextCount
- Int32
用于在缓冲区中调整的上下文长度。
- xOffset
- Single
结果标志符号的额外 x 偏移量。
- yOffset
- Single
结果字形的附加 y 偏移量。
- isRtl
- Boolean
如果此文本为 RTL 方向的形状,则为 true;否则为 false。
- paint
- Paint
用于调整文本的油漆。
返回
形状结果。
- 属性
注解
形状非样式文本。
此函数在给定上下文范围的上下文下塑造给定区域的文本。 某些脚本(例如阿拉伯语或 Devanagari)会根据其位置或周围字符更改字母形状。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
ShapeTextRun(String, Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint)
形状非样式文本。
public static Android.Graphics.Text.PositionedGlyphs ShapeTextRun (string text, int start, int count, int contextStart, int contextCount, float xOffset, float yOffset, bool isRtl, Android.Graphics.Paint paint);
static member ShapeTextRun : string * int * int * int * int * single * single * bool * Android.Graphics.Paint -> Android.Graphics.Text.PositionedGlyphs
参数
- text
- String
要形状的文本缓冲区。 将忽略此文本中存储的任何样式跨度。
- start
- Int32
缓冲区中定形目标的起始索引。
- count
- Int32
缓冲区中调整目标的长度。
- contextStart
- Int32
用于在缓冲区中调整的上下文的起始索引。
- contextCount
- Int32
用于在缓冲区中调整的上下文长度。
- xOffset
- Single
结果标志符号的额外 x 偏移量。
- yOffset
- Single
结果字形的附加 y 偏移量。
- isRtl
- Boolean
如果此文本为 RTL 方向的形状,则为 true;否则为 false。
- paint
- Paint
用于调整文本的油漆。
返回
形状结果
注解
形状非样式文本。
此函数在给定上下文范围的上下文下塑造给定区域的文本。 某些脚本(例如阿拉伯语或 Devanagari)会根据其位置或周围字符更改字母形状。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。