textstor.h (ITextStoreAnchor 介面)

ITextStoreAnchor 介面是由 Microsoft Active Accessibility 用戶端所實作,並由 TSF 管理員用來操作文字數據流。 數據流內的文字範圍是以錨點物件分隔。 這些錨點物件是由 IAnchor 介面公開及操作。

應用程式可以使用 Microsoft Active Accessibility 取得此介面的實例。 介面標識碼IID_ITextStoreAnchor。

若要將應用程式字元位置 (ACP) 模型用於文字操作,請改用 ITextStoreACP

繼承

ITextStoreAnchor 介面繼承自 IUnknown 介面。 ITextStoreAnchor 也有下列類型的成員:

方法

ITextStoreAnchor 介面具有這些方法。

 
ITextStoreAnchor::AdviseSink

ITextStoreAnchor::AdviseSink 方法會從 ITextStoreAnchorSink 介面安裝新的建議接收,或修改現有的建議接收。
ITextStoreAnchor::FindNextAttrTransition

ITextStoreAnchor::FindNextAttrTransition 方法會尋找文字數據流中發生轉換的位置屬性值。 要檢查的指定屬性與應用程式相關。
ITextStoreAnchor::GetActiveView

ITextStoreAnchor::GetActiveView 方法會傳回 TsViewCookie 數據類型,指定目前的使用中檢視。 TSF 僅支援單一使用中檢視,因此指定的文字存放區應該一律傳回相同的 TsViewCookie 數據類型。
ITextStoreAnchor::GetAnchorFromPoint

ITextStoreAnchor::GetAnchorFromPoint 方法會將螢幕座標中的點轉換成位於對應位置的錨點。
ITextStoreAnchor::GetEmbedded

ITextStoreAnchor::GetEmbedded 方法會從文字數據流取得內嵌物件。
ITextStoreAnchor::GetEnd

ITextStoreAnchor::GetEnd 方法會傳回位於文字數據流結尾的錨點。
ITextStoreAnchor::GetFormattedText

ITextStoreAnchor::GetFormattedText 方法會從文字數據流傳回格式化的文字資訊。
ITextStoreAnchor::GetScreenExt

ITextStoreAnchor::GetScreenExt 方法會傳迴轉譯文字數據流之顯示介面的周框方塊螢幕座標。
ITextStoreAnchor::GetSelection

ITextStoreAnchor::GetSelection 方法會傳回文字數據流中文字選取範圍的位移。 這個方法支援多個文字選取範圍。 呼叫端必須在檔上具有唯讀鎖定,才能呼叫這個方法。
ITextStoreAnchor::GetStart

ITextStoreAnchor::GetStart 方法會傳回位於文字數據流開頭的錨點。
ITextStoreAnchor::GetStatus

ITextStoreAnchor::GetStatus 方法會取得文件狀態。 文件狀態會透過TS_STATUS結構傳回。
ITextStoreAnchor::GetText

ITextStoreAnchor::GetText 方法會傳回指定錨點位置的文字相關信息。 這個方法會傳回可見和隱藏的文字,並指出內嵌數據是否附加至文字。
ITextStoreAnchor::GetTextExt

ITextStoreAnchor::GetTextExt 方法會以螢幕座標傳回文字範圍的周框方塊。 呼叫端必須在檔上具有唯讀鎖定,才能呼叫這個方法。
ITextStoreAnchor::GetWnd

ITextStoreAnchor::GetWnd 方法會將句柄傳回對應至目前文字數據流的視窗。
ITextStoreAnchor::InsertEmbedded

ITextStoreAnchor::InsertEmbedded 方法
ITextStoreAnchor::InsertEmbeddedAtSelection

ITextStoreAnchor::InsertEmbeddedAtSelection 方法會在插入點或選取範圍插入 IDataObject 物件。 呼叫這個方法的客戶端必須具有讀取/寫入鎖定,才能將 IDataObject 插入文字數據流。
ITextStoreAnchor::InsertTextAtSelection

ITextStoreAnchor::InsertTextAtSelection 方法
ITextStoreAnchor::QueryInsert

ITextStoreAnchor::QueryInsert 方法會判斷指定的開始和結束錨點是否有效。 執行編輯之前,請使用此方法來調整檔的編輯。 方法不得傳回檔範圍以外的值。
ITextStoreAnchor::QueryInsertEmbedded

ITextStoreAnchor::QueryInsertEmbedded 方法
ITextStoreAnchor::RequestAttrsAtPosition

ITextStoreAnchor::RequestAttrsAtPosition 方法
ITextStoreAnchor::RequestAttrsTransitioningAtPosition

ITextStoreAnchor::RequestAttrsTransitioningAtPosition 方法
ITextStoreAnchor::RequestLock

ITextStoreAnchor::RequestLock 方法
ITextStoreAnchor::RequestSupportedAttrs

ITextStoreAnchor::RequestSupportedAttrs 方法
ITextStoreAnchor::RetrieveRequestedAttrs

ITextStoreAnchor::RetrieveRequestedAttrs 方法
ITextStoreAnchor::SetSelection

ITextStoreAnchor::SetSelection 方法
ITextStoreAnchor::SetText

ITextStoreAnchor::SetText 方法會設定兩個提供的錨點位置之間的文字選取範圍。
ITextStoreAnchor::UnadviseSink

ITextStoreAnchor::UnadviseSink 方法

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows 2000 Server [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 textstor.h
可轉散發套件 Windows 2000 專業版上的 TSF 1.0

另請參閱

IDataObject

ITextStoreACP

ITextStoreAnchorSink

IUnknown

Microsoft Active Accessibility

TsViewCookie