ITextStoreAnchor interface

The ITextStoreAnchor interface is implemented by a Microsoft Active Accessibility client and is used by the TSF manager to manipulate text streams. Ranges of text within a stream are delimited by anchor objects. these anchor objects are exposed and manipulated by the IAnchor interface.

An application can obtain an instance of this interface with Microsoft Active Accessibility. The interface ID is IID_ITextStoreAnchor.

To use the application character position (ACP) model for text manipulation, use ITextStoreACP instead.

Members

The ITextStoreAnchor interface inherits from the IUnknown interface. ITextStoreAnchor also has these types of members:

Methods

The ITextStoreAnchor interface has these methods.

MethodDescription
AdviseSink

Installs a new advise sink or modifies an existing advise sink.

FindNextAttrTransition

Finds the location in the text stream where a transition occurs in an attribute value.

GetActiveView

Returns a TsViewCookie data type that specifies the current active view.

GetAnchorFromPoint

Converts a point in screen coordinates to an anchor positioned at a corresponding location.

GetEmbedded

Obtains an embedded object from a text stream.

GetEnd

Returns an anchor positioned at the end of the text stream.

GetFormattedText

Returns formatted text information from a text stream.

GetScreenExt

Returns the bounding box screen coordinates of the display surface where the text stream is rendered.

GetSelection

Returns the offset of a text selection in a text stream.

GetStart

Returns an anchor positioned at the start of the text stream.

GetStatus

Obtains the document status.

GetText

Returns information about text at a specified anchor position.

GetTextExt

Returns the bounding box, in screen coordinates, of a range of text.

GetWnd

Returns the handle to a window that corresponds to the current text stream.

InsertEmbedded

Inserts an IDataObject data object into a text stream.

InsertEmbeddedAtSelection

Inserts an IDataObject object at the insertion point or selection.

InsertTextAtSelection

Inserts text at the insertion point or selection.

QueryInsert

Determines whether the specified start and end anchors are valid.

QueryInsertEmbedded

Determines whether the document can accept an embedded object through the InsertEmbedded or InsertEmbeddedAtSelection methods.

RequestAttrsAtPosition

Obtains the attributes at the specified anchor location.

RequestAttrsTransitioningAtPosition

Obtains a list of attributes that begin or end at the specified anchor location.

RequestLock

Used by the TSF manager to provide a document lock in order to modify the text stream.

RequestSupportedAttrs

Obtains the supported attributes of a text stream.

RetrieveRequestedAttrs

Returns the attributes obtained by the RequestAttrsAtPosition, RequestAttrsTransitioningAtPosition, or RequestSupportedAttrs methods.

SetSelection

Selects text within the document.

SetText

Sets the text selection between two supplied anchor locations.

UnadviseSink

Called by an application to indicate that it no longer requires notifications from the TSF manager.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

Microsoft Active Accessibility
ITextStoreAnchorSink
ITextStoreACP
IDataObject
TsViewCookie

 

 

Community Additions

ADD
Show:
© 2014 Microsoft