Skip to main content
A newer version of this page is available.

ISnapFieldOwner.CreateSnText(DocumentPosition, String) Method

Adds a text box to the specified position in a document.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v18.2.Core.dll

Declaration

SnapText CreateSnText(
    DocumentPosition position,
    string dataFieldName
)

Parameters

Name Type Description
position DocumentPosition

A DocumentPosition object.

dataFieldName String

A String value, specifying the name of a data field bound to the created SnapText.

Returns

Type Description
SnapText

An object implementing the SnapText interface.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateSnText(DocumentPosition, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also