大约有 42 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0041 秒)
...ign:String):FillBorderTextCmd 在画布上绘制“被填充且镶边的”文本。 Graphics fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String):FillTextCmd 在画布上绘制文本。 Graphics fillTexture(texture:Texture, x:Number, y:Number, width:Number = ...
来源: Laya2.0_api 发布时间: 20190513
...字符宽度。 BitmapFont getTextWidth(text:String):Number 获取指定文本内容的宽度。 BitmapFont loadFont(path:String, complete:Handler):void 通过指定位图字体文件路径,加载位图字体文件,加载完成后会自动解析。 BitmapFont parseFont(xml:XmlDom, textu...
来源: Laya2.0_api 发布时间: 20190513
...asspublic class FillBorderTextCmdInheritanceFillBorderTextCmd Object 绘制文本边框 Public Properties PropertyDefined By borderColor : String 定义镶边文本颜色。 FillBorderTextCmd fillColor : String 定义文本颜色,比如"#ff0000"。 FillBorderTextCmd font : String 定义...
来源: Laya2.0_api 发布时间: 20190513
...描边文字 Public Properties PropertyDefined By color : String 定义文本颜色,比如"#ff0000"。 StrokeTextCmd font : String 定义字体和字号,比如"20px Arial"。 StrokeTextCmd lineWidth : Number 线条宽度。 StrokeTextCmd text : String 在画布上输出的文本。 ...
来源: Laya2.0_api 发布时间: 20190513
...asspublic class TextStyleInheritanceTextStyle laya.display.css.SpriteStyle 文本的样式类 Public Properties PropertyDefined By align : String 表示使用此文本格式的文本段落的水平对齐方式。 TextStyle asPassword : Boolean 指定文本字段是否是密码文本字段。 ...
来源: Laya2.0_api 发布时间: 20190513
...Dispatcher ObjectSubclasses Input Text 类用于创建显示对象以显示文本。 注意:如果运行时系统找不到设定的字体,则用系统默认的字体渲染文字,从而导致显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)...
来源: Laya2.0_api 发布时间: 20190513
...transform。 Utils measureText(txt:String, font:String):*[static] 测量文本在指定样式下的宽度、高度信息。 Utils parseInt(str:String, radix:int = 0):int[static] 解析一个字符串,并返回一个整数。和JS原生的parseInt不同:如果str为空或者非数字,原...
来源: Laya2.0_api 发布时间: 20190513
...tcher ObjectSubclasses TextInput Label 类用于创建显示对象以显示文本。 See alsolaya.display.TextPublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-o...
来源: Laya2.0_api 发布时间: 20190513
...io Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 可以是单态,两态和三态,默认三态(up,over,down)。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active :...
来源: Laya2.0_api 发布时间: 20190513
...Subclasses TextArea TextInput 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中...
来源: Laya2.0_api 发布时间: 20190513