適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
flashx.textLayout.operations 

InsertInlineGraphicOperation  - AS3

套件flashx.textLayout.operations
類別public class InsertInlineGraphicOperation
繼承InsertInlineGraphicOperation Inheritance FlowTextOperation Inheritance FlowOperation Inheritance Object

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10, AIR 1.5

InsertInlineGraphicOperation 類別將插入內嵌圖形封裝到文字流排。

相關 API 元素



公用屬性
 屬性定義自
 InheritedabsoluteEnd : int
套用此作業的文字範圍的絕對結束點。
FlowTextOperation
 InheritedabsoluteStart : int
套用此作業的文字範圍的絕對開始點。
FlowTextOperation
 InheritedbeginGeneration : uint
[唯讀] 在作業之前產生的文字流排。
FlowOperation
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
 InheritedendGeneration : uint
[唯讀] 在作業之後產生的文字流排。
FlowOperation
  height : Object
影像的高度。
InsertInlineGraphicOperation
  newInlineGraphicElement : InlineGraphicElement
[唯讀] doOperation 所建立的 InlineGraphicElement。
InsertInlineGraphicOperation
  options : Object
控制圖形相對於文字的位置。
InsertInlineGraphicOperation
 InheritedoriginalSelectionState : SelectionState
作業開始的選取狀態。
FlowTextOperation
  source : Object
設定圖形的來源。
InsertInlineGraphicOperation
 InheritedtextFlow : flashx.textLayout.elements:TextFlow
套用此作業的 TextFlow 物件。
FlowOperation
 InheriteduserData : *
與元素相關聯的任意資料。
FlowOperation
  width : Object
圖形的寬度。
InsertInlineGraphicOperation
公用方法
 方法定義自
  
InsertInlineGraphicOperation(operationState:SelectionState, source:Object, width:Object, height:Object, options:Object = null)
建立 InsertInlineGraphicsOperation 物件。
InsertInlineGraphicOperation
 Inherited
測試此作業是否可置於還原堆疊上。
FlowOperation
 Inherited
執行作業。
FlowOperation
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
  
[覆寫] 還原作業後,重新執行該作業。
InsertInlineGraphicOperation
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
反轉作業。
FlowOperation
 Inherited
會傳回指定之物件的基本值。
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 元素

flashx.textLayout.InlineGraphicElement.height

newInlineGraphicElement

屬性 
newInlineGraphicElement:InlineGraphicElement  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10, AIR 1.5

doOperation 所建立的 InlineGraphicElement。



實作
    public function get newInlineGraphicElement():InlineGraphicElement

options

屬性 
options:Object

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10, AIR 1.5

控制圖形相對於文字的位置。 其可以是行的一部分,也可位於四周包圍著文字的行旁邊。

有效值是 flashx.textLayout.formats.Float.NONEflashx.textLayout.formats.Float.LEFTflashx.textLayout.formats.Float.RIGHTflashx.textLayout.formats.Float.STARTflashx.textLayout.formats.Float.END

若未定義預設值,則表示未設定。

若未定義,將會當成 Float.NONE 來處理。



實作
    public function get options():Object
    public function set options(value:Object):void

source

屬性 
source:Object

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10, AIR 1.5

設定圖形的來源。此值可以是解譯為 URI 的 String、解譯為內嵌 DisplayObject 類別的 Class、DisplayObject 實體或 URLRequest。建立 DisplayObject,而且如果將 InlineGraphicElement 物件新增至 TextFlow 物件的 ParagraphElement 中,則會讓它內嵌在文字中。



實作
    public function get source():Object
    public function set source(value:Object):void

width

屬性 
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):void
建構函式詳細資料

InsertInlineGraphicOperation

()建構函式
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 表示內嵌在文字、浮動圖的左邊/右邊/開頭/結尾)
方法詳細資訊

redo

()方法
override public function redo():SelectionState

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10, AIR 1.5

還原作業後,重新執行該作業。

必要時,編輯管理員會呼叫此函數。

傳回值
SelectionState




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。