| 套件 | flashx.textLayout.edit |
| 類別 | public class ElementRange |
| 繼承 | ElementRange Object |
| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
在元素範圍的每組值中,起始元素 (如 firstLeaf) 一定會小於或等於結尾元素 (在此情況下是 lastLeaf)。
相關 API 元素
| 屬性 | 定義自 | ||
|---|---|---|---|
| absoluteEnd : int
內含範圍結尾之 FlowLeafElement 物件的絕對文字位置。 | ElementRange | ||
| absoluteStart : int
內含範圍開頭之 FlowLeafElement 物件的絕對文字位置。 | ElementRange | ||
| characterFormat : flashx.textLayout.formats:ITextLayoutFormat [唯讀]
範圍中字元的格式特質。 | ElementRange | ||
![]() | constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | |
| containerFormat : flashx.textLayout.formats:ITextLayoutFormat [唯讀]
顯示範圍之容器的格式特質。 | ElementRange | ||
| firstLeaf : FlowLeafElement
內含範圍開頭的 FlowLeafElement 物件。 | ElementRange | ||
| firstParagraph : ParagraphElement
內含範圍開頭的 ParagraphElement 物件。 | ElementRange | ||
| lastLeaf : FlowLeafElement
內含範圍結尾的 FlowLeafElement 物件。 | ElementRange | ||
| lastParagraph : ParagraphElement
內含範圍結尾的 ParagraphElement 物件。 | ElementRange | ||
| paragraphFormat : flashx.textLayout.formats:ITextLayoutFormat [唯讀]
內含範圍之段落的格式特質。 | ElementRange | ||
| textFlow : flashx.textLayout.elements:TextFlow
內含範圍的 TextFlow 物件。 | ElementRange | ||
| 方法 | 定義自 | ||
|---|---|---|---|
createElementRange(textFlow:flashx.textLayout.elements:TextFlow, absoluteStart:int, absoluteEnd:int):ElementRange [靜態]
建立 ElementRange 物件。 | ElementRange | ||
取得文字範圍或目前選取範圍中所有字元都適用的字元格式特質。 | ElementRange | ||
取得元素範圍中所有容器都適用的容器格式特質。 | ElementRange | ||
取得元素範圍中所有段落都適用的段落格式特質。 | ElementRange | ||
![]() |
指出物件是否有已定義的指定屬性。 | Object | |
![]() |
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | |
![]() |
指出指定的屬性是否存在,以及是否可列舉。 | Object | |
![]() |
為迴圈作業設定動態屬性的可用性。 | Object | |
![]() |
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | |
![]() |
會傳回指定之物件的字串形式。 | Object | |
![]() |
會傳回指定之物件的基本值。 | Object | |
absoluteEnd | 屬性 |
absoluteStart | 屬性 |
characterFormat | 屬性 |
characterFormat:flashx.textLayout.formats:ITextLayoutFormat [唯讀] | 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
範圍中字元的格式特質。
如果範圍跨越多個 FlowElement 物件 (表示範圍內可能具有多個字元格式),則會傳回第一個 FlowElement 物件的格式。
實作
public function get characterFormat():flashx.textLayout.formats:ITextLayoutFormatcontainerFormat | 屬性 |
containerFormat:flashx.textLayout.formats:ITextLayoutFormat [唯讀] | 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
顯示範圍之容器的格式特質。
如果範圍跨越多個容器,則會傳回第一個容器的格式。
實作
public function get containerFormat():flashx.textLayout.formats:ITextLayoutFormatfirstLeaf | 屬性 |
firstLeaf:FlowLeafElement| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
內含範圍開頭的 FlowLeafElement 物件。
實作
public function get firstLeaf():FlowLeafElement public function set firstLeaf(value:FlowLeafElement):voidfirstParagraph | 屬性 |
firstParagraph:ParagraphElement| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
內含範圍開頭的 ParagraphElement 物件。
實作
public function get firstParagraph():ParagraphElement public function set firstParagraph(value:ParagraphElement):voidlastLeaf | 屬性 |
lastLeaf:FlowLeafElement| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
內含範圍結尾的 FlowLeafElement 物件。
實作
public function get lastLeaf():FlowLeafElement public function set lastLeaf(value:FlowLeafElement):voidlastParagraph | 屬性 |
lastParagraph:ParagraphElement| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
內含範圍結尾的 ParagraphElement 物件。
實作
public function get lastParagraph():ParagraphElement public function set lastParagraph(value:ParagraphElement):voidparagraphFormat | 屬性 |
paragraphFormat:flashx.textLayout.formats:ITextLayoutFormat [唯讀] | 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
內含範圍之段落的格式特質。
如果範圍跨越多個段落,則會傳回第一個段落的格式。
實作
public function get paragraphFormat():flashx.textLayout.formats:ITextLayoutFormattextFlow | 屬性 |
textFlow:flashx.textLayout.elements:TextFlow| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
內含範圍的 TextFlow 物件。
實作
public function get textFlow():flashx.textLayout.elements:TextFlow public function set textFlow(value:flashx.textLayout.elements:TextFlow):voidcreateElementRange | () | 方法 |
public static function createElementRange(textFlow:flashx.textLayout.elements:TextFlow, absoluteStart:int, absoluteEnd:int):ElementRange| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
建立 ElementRange 物件。
參數
textFlow:flashx.textLayout.elements:TextFlow — 文字流排
| |
absoluteStart:int — 文字範圍中第一個字元的絕對文字位置
| |
absoluteEnd:int — 在文字範圍中,位於最後一個字元之絕對文字位置後的字元
|
ElementRange |
getCommonCharacterFormat | () | 方法 |
public function getCommonCharacterFormat():flashx.textLayout.formats:TextLayoutFormat| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
取得文字範圍或目前選取範圍中所有字元都適用的字元格式特質。
在傳回的 TextLayoutFormat 實體中,會將元素範圍中所有字元都沒有相同值的格式特質設為 null。
flashx.textLayout.formats:TextLayoutFormat — 一般字元樣式設定
|
getCommonContainerFormat | () | 方法 |
public function getCommonContainerFormat():flashx.textLayout.formats:TextLayoutFormat| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
取得元素範圍中所有容器都適用的容器格式特質。
在傳回的 TextLayoutFormat 實體中,會將元素範圍中所有容器都沒有相同值的格式特質設為 null。
flashx.textLayout.formats:TextLayoutFormat — 一般段落樣式設定
|
相關 API 元素
getCommonParagraphFormat | () | 方法 |
public function getCommonParagraphFormat():flashx.textLayout.formats:TextLayoutFormat| 語言版本: | ActionScript 3.0 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
取得元素範圍中所有段落都適用的段落格式特質。
在傳回的 TextLayoutFormat 實體中,會將元素範圍中所有段落都沒有相同值的格式特質設為 null。
flashx.textLayout.formats:TextLayoutFormat — 一般段落樣式設定
|
相關 API 元素
Tue Jun 12 2018, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性