| 包 | flashx.textLayout.operations | 
| 类 | public class InsertInlineGraphicOperation | 
| 继承 | InsertInlineGraphicOperation    FlowTextOperation   FlowOperation   Object | 
| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
相关 API 元素
flashx.textLayout.edit.EditManager
flashx.textLayout.events.FlowOperationEvent
| 属性 | 由以下参数定义 | ||
|---|---|---|---|
![]()  | absoluteEnd : int  
		 要应用该操作的文本范围的结束点绝对值。  | FlowTextOperation | |
![]()  | absoluteStart : int  
		 要应用该操作的文本范围的起始点绝对值。  | FlowTextOperation | |
![]()  | beginGeneration : uint [只读] 
		 操作之前生成文本流。  | FlowOperation | |
![]()  | constructor : Object 
	 对类对象或给定对象实例的构造函数的引用。  | Object | |
![]()  | endGeneration : uint [只读]  
		 操作之后生成文本流。  | FlowOperation | |
| height : Object  图像高度。  | InsertInlineGraphicOperation | ||
| newInlineGraphicElement : InlineGraphicElement [只读]  
		 由 doOperation 创建的 InlineGraphicElement。  | InsertInlineGraphicOperation | ||
| options : Object  
         控制相对于文本的图形的位置。  | InsertInlineGraphicOperation | ||
![]()  | originalSelectionState : SelectionState  
		 操作开始时的选择状态。  | FlowTextOperation | |
| source : Object  设置图形的源。  | InsertInlineGraphicOperation | ||
![]()  | textFlow : flashx.textLayout.elements:TextFlow  
		 要应用该操作的 TextFlow 对象。  | FlowOperation | |
![]()  | userData : *  
		 与元素关联的任意数据。  | FlowOperation | |
| width : Object  图形的宽度。  | InsertInlineGraphicOperation | ||
| 方法 | 由以下参数定义 | ||
|---|---|---|---|
InsertInlineGraphicOperation(operationState:SelectionState, source:Object, width:Object, height:Object, options:Object = null)  
		 创建 InsertInlineGraphicsOperation 对象。  | InsertInlineGraphicOperation | ||
![]()  | 	
		 测试此操作是否被放置在撤消堆栈上。  | FlowOperation | |
![]()  |  
		 执行操作。  | FlowOperation | |
![]()  | 
	 表示对象是否已经定义了指定的属性。  | Object | |
![]()  | 
	 表示 Object 类的实例是否在指定为参数的对象的原型链中。  | Object | |
![]()  | 
	 表示指定的属性是否存在、是否可枚举。  | Object | |
[覆盖] 
		 撤消操作后重新执行操作。  | InsertInlineGraphicOperation | ||
![]()  | 
     设置循环操作动态属性的可用性。  | Object | |
![]()  | 
	 返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。  | Object | |
![]()  | 
	 返回指定对象的字符串表示形式。  | Object | |
![]()  | 	
		 取消操作。  | FlowOperation | |
![]()  | 
	 返回指定对象的原始值。  | Object | |
height | 属性 | 
height:Object| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
图像高度。可以是“auto”、像素数或测量高度的百分比。
合法值为 flashx.textLayout.formats.FormatValue.AUTO 和 flashx.textLayout.formats.FormatValue.INHERIT。
合法值为 0 到 32000 范围内的数字。
合法值为 0 到 1000000 范围内的百分比数字。
默认值未定义,指示未设置。
如果未定义或“继承”,则 InlineGraphicElement 将使用默认值“auto”。
实现
    public function get height():Object    public function set height(value:Object):void相关 API 元素
newInlineGraphicElement | 属性 | 
newInlineGraphicElement:InlineGraphicElement  [只读] | 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
由 doOperation 创建的 InlineGraphicElement。
实现
    public function get newInlineGraphicElement():InlineGraphicElementoptions | 属性 | 
options:Object| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
控制相对于文本的图形的位置。可以是行的一部分,也可以在行(在其周围文本换行)旁边。
合法值为 flashx.textLayout.formats.Float.NONE、flashx.textLayout.formats.Float.LEFT、flashx.textLayout.formats.Float.RIGHT、flashx.textLayout.formats.Float.START 和 flashx.textLayout.formats.Float.END。
默认值未定义,指示未设置。
如果未定义,会视为 Float.NONE。
实现
    public function get options():Object    public function set options(value:Object):voidsource | 属性 | 
source:Object| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
设置图形的源。该值可以是解释为 URI 的字符串、解释为嵌入 DisplayObject 类的类、DisplayObject 实例或 URLRequest。创建一个 DisplayObject,如果 InlineGraphicElement 对象添加到 TextFlow 对象的 ParagraphElement 中,会导致图形内嵌显示在文本中。
实现
    public function get source():Object    public function set source(value:Object):voidwidth | 属性 | 
width:Object| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
图形的宽度。该值可以是“auto”、像素数或图像测量宽度的百分比。
合法值为 flashx.textLayout.formats.FormatValue.AUTO 和 flashx.textLayout.formats.FormatValue.INHERIT。
合法值为 0 到 32000 范围内的数字。
合法值为 0 到 1000000 范围内的百分比数字。
默认值未定义,指示未设置。
如果未定义或“继承”,则 InlineGraphicElement 将使用默认值“auto”。
实现
    public function get width():Object    public function set width(value:Object):voidInsertInlineGraphicOperation | () | 构造函数 | 
public function InsertInlineGraphicOperation(operationState:SelectionState, source:Object, width:Object, height:Object, options:Object = null)| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
创建 InsertInlineGraphicsOperation 对象。
参数operationState:SelectionState — 描述插入点。如果选择了范围,该操作将删除该范围的内容。
		  | |
source:Object — 图形源(uri 字符串、URLRequest、DisplayObject 或嵌入资源的类)。 
		  | |
width:Object — 要指定的宽度(像素数、百分比或字符串“auto”)。
		  | |
height:Object — 要指定的高度(像素数、百分比或字符串“auto”)。
		  | |
options:Object (default = null) — 要指定的浮点(字符串值。对于文本内嵌,为 none;对于浮点,为 left/right/start/end)
		 
		  | 
redo | () | 方法 | 
override public function redo():SelectionState| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
撤消操作后重新执行操作。
在必要时,该函数由编辑管理器调用。
返回SelectionState | 
Tue Jun 12 2018, 11:04 AM Z
 
 隐藏继承的公共属性
 显示继承的公共属性