| 包 | flashx.textLayout.operations | 
| 类 | public class ApplyFormatToElementOperation | 
| 继承 | ApplyFormatToElementOperation    FlowElementOperation   FlowTextOperation   FlowOperation   Object | 
| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
该操作将一种或多种格式应用于流元素。
相关 API 元素
flashx.textLayout.edit.EditManager
flashx.textLayout.formats.TextLayoutFormat
flashx.textLayout.events.FlowOperationEvent
flashx.textLayout.formats.TextLayoutFormat
flashx.textLayout.events.FlowOperationEvent
公共属性
| 属性 | 由以下参数定义 | ||
|---|---|---|---|
![]()  | absoluteEnd : int  
		 要应用该操作的文本范围的结束点绝对值。  | FlowTextOperation | |
![]()  | absoluteStart : int  
		 要应用该操作的文本范围的起始点绝对值。  | FlowTextOperation | |
![]()  | beginGeneration : uint [只读] 
		 操作之前生成文本流。  | FlowOperation | |
![]()  | constructor : Object 
	 对类对象或给定对象实例的构造函数的引用。  | Object | |
![]()  | endGeneration : uint [只读]  
		 操作之后生成文本流。  | FlowOperation | |
| format : flashx.textLayout.formats:ITextLayoutFormat  
		 该操作中应用的字符格式。  | ApplyFormatToElementOperation | ||
![]()  | originalSelectionState : SelectionState  
		 操作开始时的选择状态。  | FlowTextOperation | |
![]()  | relativeEnd : int  
		 距 targetElement 开头的偏移量。  | FlowElementOperation | |
![]()  | relativeStart : int  
		 距 targetElement 开头的偏移量。  | FlowElementOperation | |
![]()  | targetElement : FlowElement  
		 指定该操作修改的元素。  | FlowElementOperation | |
![]()  | textFlow : flashx.textLayout.elements:TextFlow  
		 要应用该操作的 TextFlow 对象。  | FlowOperation | |
![]()  | userData : *  
		 与元素关联的任意数据。  | FlowOperation | |
公共方法 
| 方法 | 由以下参数定义 | ||
|---|---|---|---|
ApplyFormatToElementOperation(operationState:SelectionState, targetElement:FlowElement, format:flashx.textLayout.formats:ITextLayoutFormat, relativeStart:int = 0, relativeEnd:int = -1)  
		创建 ApplyFormatToElementOperation 对象。  | ApplyFormatToElementOperation | ||
![]()  | 	
		 测试此操作是否被放置在撤消堆栈上。  | FlowOperation | |
![]()  |  
		 执行操作。  | FlowOperation | |
![]()  | 
	 表示对象是否已经定义了指定的属性。  | Object | |
![]()  | 
	 表示 Object 类的实例是否在指定为参数的对象的原型链中。  | Object | |
![]()  | 
	 表示指定的属性是否存在、是否可枚举。  | Object | |
![]()  | [覆盖] 	
		 	
		 重新执行操作。  | FlowTextOperation | |
![]()  | 
     设置循环操作动态属性的可用性。  | Object | |
![]()  | 
	 返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。  | Object | |
![]()  | 
	 返回指定对象的字符串表示形式。  | Object | |
![]()  | 	
		 取消操作。  | FlowOperation | |
![]()  | 
	 返回指定对象的原始值。  | Object | |
属性详细信息
format | 属性 | 
format:flashx.textLayout.formats:ITextLayoutFormat| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
该操作中应用的字符格式。
如果为 null,则不更改任何字符格式。
实现
    public function get format():flashx.textLayout.formats:ITextLayoutFormat    public function set format(value:flashx.textLayout.formats:ITextLayoutFormat):void构造函数详细信息
ApplyFormatToElementOperation | () | 构造函数 | 
public function ApplyFormatToElementOperation(operationState:SelectionState, targetElement:FlowElement, format:flashx.textLayout.formats:ITextLayoutFormat, relativeStart:int = 0, relativeEnd:int = -1)| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
创建 ApplyFormatToElementOperation 对象。
参数operationState:SelectionState — 指定包含要应用该操作的元素的文本流。
		 | |
targetElement:FlowElement — 指定要应用该操作的元素。
		 | |
format:flashx.textLayout.formats:ITextLayoutFormat — 该操作中要应用的格式。
		 
		 | |
relativeStart:int (default = 0) | |
relativeEnd:int (default = -1) | 
Tue Jun 12 2018, 11:04 AM Z
 
 隐藏继承的公共属性
 显示继承的公共属性