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

IConfiguration  - AS3

套件flashx.textLayout.elements
介面public interface IConfiguration
實作者 Configuration

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

組態物件的唯讀介面。供 TextFlow 使用,藉此保證其具有建構後就無法變更的組態。



公用屬性
 屬性定義自
  defaultLinkActiveFormat : flashx.textLayout.formats:ITextLayoutFormat
[唯讀] 指定文字流排中所有連結 (LinkElement objects) 一開始所套用的作用中字元格式特質。
IConfiguration
  defaultLinkHoverFormat : flashx.textLayout.formats:ITextLayoutFormat
[唯讀] 指定當游標停留在連結上方時,套用至文字流排之連結 (LinkElement) 的初始字元格式特質。
IConfiguration
  defaultLinkNormalFormat : flashx.textLayout.formats:ITextLayoutFormat
[唯讀] 指定文字流排中所有 LinkElement 物件的初始連結特質。
IConfiguration
  defaultListMarkerFormat : IListMarkerFormat
[唯讀] 指定文字流排中所有 ListItems 一開始所套用的作用中字元格式特質。
IConfiguration
  enableAccessibility : Boolean
[唯讀] 指定開啟或關閉輔助功能支援。
IConfiguration
  flowComposerClass : Class
[唯讀] 指定預設附加至新 TextFlow 物件的文字流排撰寫器類型。
IConfiguration
  focusedSelectionFormat : SelectionFormat
[唯讀] 在視窗具有焦點時,文字流排 (TextFlow) 的初始選取範圍格式 (SelectionFormat)。
IConfiguration
  inactiveSelectionFormat : SelectionFormat
[唯讀] 視窗未作用時,文字流排 (TextFlow) 的初始選取範圍格式 (SelectionFormat)。
IConfiguration
  inlineGraphicResolverFunction : Function
[唯讀] 指定用於解析內嵌圖形元素的回呼。
IConfiguration
  manageEnterKey : Boolean
[唯讀] 指定 Enter/Return 鍵要由 Text Layout Framework 輸入為文字 (例如用來分割段落),還是由用戶端程式碼來處理。
IConfiguration
  manageTabKey : Boolean
[唯讀] 指定 TAB 鍵要由 Text Layout Framework 輸入為文字,還是由 Flash Player 或 AIR 來處理,並將它轉換為定位點面板事件。
IConfiguration
  overflowPolicy : String
[唯讀] 用來決定容器的最後一行是否可以放入容器中,或是否會溢位的原則。
IConfiguration
  releaseLineCreationData : Boolean
[唯讀] 處理撰寫文字的要求,會在撰寫每個段落之後釋出行建立資料。
IConfiguration
  scrollDragDelay : Number
[唯讀] 指定捲動與下一個捲動之間的延遲時間,防止捲動的速度過快。
IConfiguration
  scrollDragPixels : Number
[唯讀] 指定使用者拖曳選取範圍以啟動自動捲動時,預設的捲動像素數。
IConfiguration
  scrollMouseWheelMultiplier : Number
[唯讀] 指定 Mouse wheel 事件的預設捲動像素數。
IConfiguration
  scrollPagePercentage : Number
[唯讀] 針對頁面捲動,指定文字流排預設的捲動百分比。
IConfiguration
  textFlowInitialFormat : flashx.textLayout.formats:ITextLayoutFormat
[唯讀] 指定文字流排 (TextFlow 物件) 的初始格式 TextLayoutFormat 組態。
IConfiguration
  unfocusedSelectionFormat : SelectionFormat
[唯讀] 當視窗作用中,但 TextFlow 中的容器沒有焦點時,Text Layout Framework 用來繪製選取範圍的初始選取格式。
IConfiguration
公用方法
 方法定義自
  
建立 IConfiguration 物件的可寫入副本。
IConfiguration
屬性詳細資訊

defaultLinkActiveFormat

屬性
defaultLinkActiveFormat:flashx.textLayout.formats:ITextLayoutFormat  [唯讀]

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

指定文字流排中所有連結 (LinkElement objects) 一開始所套用的作用中字元格式特質。這些是未指定這些特質值之新 LinkElement 物件的預設值。

預設是 null



實作
    public function get defaultLinkActiveFormat():flashx.textLayout.formats:ITextLayoutFormat

相關 API 元素

defaultLinkHoverFormat

屬性 
defaultLinkHoverFormat:flashx.textLayout.formats:ITextLayoutFormat  [唯讀]

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

指定當游標停留在連結上方時,套用至文字流排之連結 (LinkElement) 的初始字元格式特質。這些是未指定這些特質值之新 LinkElement 物件的預設值。

預設是 null



實作
    public function get defaultLinkHoverFormat():flashx.textLayout.formats:ITextLayoutFormat

相關 API 元素

defaultLinkNormalFormat

屬性 
defaultLinkNormalFormat:flashx.textLayout.formats:ITextLayoutFormat  [唯讀]

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

指定文字流排中所有 LinkElement 物件的初始連結特質。這些是未指定這些特質值之新 LinkElement 物件的預設值。預設的標準格式會以藍色顯示連結並加上底線。



實作
    public function get defaultLinkNormalFormat():flashx.textLayout.formats:ITextLayoutFormat

相關 API 元素

defaultListMarkerFormat

屬性 
defaultListMarkerFormat:IListMarkerFormat  [唯讀]

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

指定文字流排中所有 ListItems 一開始所套用的作用中字元格式特質。這些是未指定這些特質值之新 ListItemElements 物件的預設值。

預設是 null



實作
    public function get defaultListMarkerFormat():IListMarkerFormat

相關 API 元素

enableAccessibility

屬性 
enableAccessibility:Boolean  [唯讀]

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

指定開啟或關閉輔助功能支援。若為 true,則螢幕閱讀程式可以閱讀 TextFlow 內容。

預設值為 false



實作
    public function get enableAccessibility():Boolean

相關 API 元素

flowComposerClass

屬性 
flowComposerClass:Class  [唯讀]

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

指定預設附加至新 TextFlow 物件的文字流排撰寫器類型。預設值為 StandardFlowComposer。



實作
    public function get flowComposerClass():Class

相關 API 元素

focusedSelectionFormat

屬性 
focusedSelectionFormat:SelectionFormat  [唯讀]

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

在視窗具有焦點時,文字流排 (TextFlow) 的初始選取範圍格式 (SelectionFormat)。當視窗作用中,且 TextFlow 中的其中一個容器具有焦點時,Text Layout Framework 會使用 focusedSelectionFormat 來繪製選取範圍。您可以視需要使用 SelectionManager.focusedSelectionFormat 來覆寫此格式。

SelectionFormat 類別會指定預設值,該值會反轉文字的顏色及其背景。



實作
    public function get focusedSelectionFormat():SelectionFormat

相關 API 元素

inactiveSelectionFormat

屬性 
inactiveSelectionFormat:SelectionFormat  [唯讀]

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

視窗未作用時,文字流排 (TextFlow) 的初始選取範圍格式 (SelectionFormat)。視窗未作用時,Text Layout Framework 會使用 inactiveSelectionFormat 來繪製選取範圍。您可以視需要使用 SelectionManager.inactiveSelectionFormat 來覆寫此格式。

如果未覆寫 unfocusedSelectionFormat,則使用的 SelectionFormat 值為:

  • color = 0xffffff (白色)
  • alpha = 0
  • blendMode = flash.display.BlendMode.DIFFERENCE

結果是不會顯示任何選取範圍。



實作
    public function get inactiveSelectionFormat():SelectionFormat

相關 API 元素

inlineGraphicResolverFunction

屬性 
inlineGraphicResolverFunction:Function  [唯讀]

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

指定用於解析內嵌圖形元素的回呼。回呼接收 flashx.textLayout.elements.InlineGraphicElement 物件並傳回值,以作為元素的 flashx.textLayout.elements.InlineGraphicElement#source。此回呼提供機制以延遲提供內嵌圖形元素來源,直到撰寫來源之前。

注意:只有當設定 String 類型的預留位置來源時,才會叫用此回呼。此外,它可以多次叫用。



實作
    public function get inlineGraphicResolverFunction():Function

相關 API 元素

manageEnterKey

屬性 
manageEnterKey:Boolean  [唯讀]

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

指定 Enter/Return 鍵要由 Text Layout Framework 輸入為文字 (例如用來分割段落),還是由用戶端程式碼來處理。舉例來說,用戶端程式碼的處理方式是認可內含該用途之預設按鈕的表單。

預設值為 true



實作
    public function get manageEnterKey():Boolean

manageTabKey

屬性 
manageTabKey:Boolean  [唯讀]

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

指定 TAB 鍵要由 Text Layout Framework 輸入為文字,還是由 Flash Player 或 AIR 來處理,並將它轉換為定位點面板事件。

預設值為 false



實作
    public function get manageTabKey():Boolean

overflowPolicy

屬性 
overflowPolicy:String  [唯讀]

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

用來決定容器的最後一行是否可以放入容器中,或是否會溢位的原則。請使用 OverflowPolicy 類別的常數來設定此屬性。

預設值是 OverflowPolicy.FIT_DESCENDERS,如果頂端到基線的撰寫區域足以放入該行,就可以將該行放入撰寫區域中。



實作
    public function get overflowPolicy():String

相關 API 元素

releaseLineCreationData

屬性 
releaseLineCreationData:Boolean  [唯讀]

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

處理撰寫文字的要求,會在撰寫每個段落之後釋出行建立資料。此要求可節省記憶體,但會降低撰寫程序的速度。

預設值為 false



實作
    public function get releaseLineCreationData():Boolean

相關 API 元素

scrollDragDelay

屬性 
scrollDragDelay:Number  [唯讀]

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

指定捲動與下一個捲動之間的延遲時間,防止捲動的速度過快。此值指定延遲 (毫秒)。預設值為 35。



實作
    public function get scrollDragDelay():Number

scrollDragPixels

屬性 
scrollDragPixels:Number  [唯讀]

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

指定使用者拖曳選取範圍以啟動自動捲動時,預設的捲動像素數。預設值為 20。



實作
    public function get scrollDragPixels():Number

scrollMouseWheelMultiplier

屬性 
scrollMouseWheelMultiplier:Number  [唯讀]

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

指定 Mouse wheel 事件的預設捲動像素數。預設值為 20。



實作
    public function get scrollMouseWheelMultiplier():Number

scrollPagePercentage

屬性 
scrollPagePercentage:Number  [唯讀]

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

針對頁面捲動,指定文字流排預設的捲動百分比。預設值是 7.0 / 8.0 或 .875。



實作
    public function get scrollPagePercentage():Number

textFlowInitialFormat

屬性 
textFlowInitialFormat:flashx.textLayout.formats:ITextLayoutFormat  [唯讀]

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

指定文字流排 (TextFlow 物件) 的初始格式 TextLayoutFormat 組態。

預設是 null



實作
    public function get textFlowInitialFormat():flashx.textLayout.formats:ITextLayoutFormat

相關 API 元素

unfocusedSelectionFormat

屬性 
unfocusedSelectionFormat:SelectionFormat  [唯讀]

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

當視窗作用中,但 TextFlow 中的容器沒有焦點時,Text Layout Framework 用來繪製選取範圍的初始選取格式。您可以視需要使用 SelectionManager.unfocusedSelectionFormat 來覆寫此格式。

如果未覆寫 unfocusedSelectionFormat,則使用的 SelectionFormat 值為:

  • color = 0xffffff (白色)
  • alpha = 0
  • blendMode = flash.display.BlendMode.DIFFERENCE

結果是不會顯示任何選取範圍。



實作
    public function get unfocusedSelectionFormat():SelectionFormat

相關 API 元素

方法詳細資訊

clone

()方法
public function clone():Configuration

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

建立 IConfiguration 物件的可寫入副本。

傳回值
Configuration




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

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