TextView.SetTextSize(ComplexUnitType, Single) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将默认文本大小设置为给定的单位和值。
[Android.Runtime.Register("setTextSize", "(IF)V", "GetSetTextSize_IFHandler")]
public virtual void SetTextSize(Android.Util.ComplexUnitType unit, float size);
[<Android.Runtime.Register("setTextSize", "(IF)V", "GetSetTextSize_IFHandler")>]
abstract member SetTextSize : Android.Util.ComplexUnitType * single -> unit
override this.SetTextSize : Android.Util.ComplexUnitType * single -> unit
参数
- unit
- ComplexUnitType
所需的维度单位。
- size
- Single
给定单位中所需的大小。
- 属性
注解
将默认文本大小设置为给定的单位和值。 请参阅 TypedValue 可能的维度单位。
注意:如果此 TextView 已启用自动大小功能,则此函数 no-op。
Java文档android.widget.TextView.setTextSize(int, float)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。