Skip to main content

CharacterPropertiesBase.Position Property

Gets or sets the position of characters (in points) relative to the base line.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v23.2.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

float? Position { get; set; }

Property Value

Type Description
Nullable<Single>

A text position (from -3168 to 3168) relative to the base line or null (Nothing in Visual Basic) for a mixture of values. A positive number raises the text, and a negative number lowers it.

Remarks

The code sample below shows how to raise the text by 2 points:

using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
{
    wordProcessor.LoadDocument("Document.docx");
    Document document = wordProcessor.Document;
    CharacterProperties characterProperties = document.BeginUpdateCharacters(document.Paragraphs[1].Range);
    characterProperties.Position = 2;
    document.EndUpdateCharacters(characterProperties);
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Position property.

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