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

CompositeOperation  - AS3

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

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

CompositeOperation 類別封裝一組以個體方式管理的變形。

CompositeOperation 類別提供群組機制,將多個 FlowOperations 結合成單一不可分割的作業。群組作業讓這些作業可以像單一個體一樣進行還原及重做。例如,插入數個單一字元後再按數次 Backspace 的作業,可以當做單一作業一般一起還原。群組也提供表示複雜作業的機制。例如,修改超過一個文字範圍以上的取代作業,可當做單一複合作業來表示及管理。

注意:合併個別的不可分割作業會比將個別作業結合為一個群組更有效率。例如,可以將數個連續字元插入輕鬆地以單一插入作業表示,而且單一作業的還原或重做會比群組插入作業的還原或重做更有效率。

相關 API 元素



公用屬性
 屬性定義自
 InheritedbeginGeneration : uint
[唯讀] 在作業之前產生的文字流排。
FlowOperation
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
 InheritedendGeneration : uint
[唯讀] 在作業之後產生的文字流排。
FlowOperation
  operations : Array
包含由此複合作業所群組之作業的陣列。
CompositeOperation
 InheritedtextFlow : flashx.textLayout.elements:TextFlow
套用此作業的 TextFlow 物件。
FlowOperation
 InheriteduserData : *
與元素相關聯的任意資料。
FlowOperation
公用方法
 方法定義自
  
CompositeOperation(operations:Array = null)
建立 CompositeOperation 物件。
CompositeOperation
  
將額外的作業增加到清單結尾。
CompositeOperation
 Inherited
測試此作業是否可置於還原堆疊上。
FlowOperation
 Inherited
執行作業。
FlowOperation
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
重新執行作業。
FlowOperation
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
反轉作業。
FlowOperation
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

operations

屬性
operations:Array

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

包含由此複合作業所群組之作業的陣列。



實作
    public function get operations():Array
    public function set operations(value:Array):void
建構函式詳細資料

CompositeOperation

()建構函式
public function CompositeOperation(operations:Array = null)

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

建立 CompositeOperation 物件。

參數
operations:Array (default = null) — 要群組的作業。
方法詳細資訊

addOperation

()方法
public function addOperation(operation:FlowOperation):void

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

將額外的作業增加到清單結尾。

新的作業必須與清單中其他作業一樣,在相同的 TextFlow 物件中作業。

參數

operation:FlowOperation





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

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