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.v21.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
Declaration
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);
}
See Also