Back to Devexpress

CharacterPropertiesBase.Hidden Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-1a5e4771.md

latest3.9 KB
Original Source

CharacterPropertiesBase.Hidden Property

Gets or sets a value indicating whether a character(s) is hidden.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
bool? Hidden { get; set; }
vb
Property Hidden As Boolean?

Property Value

TypeDescription
Nullable<Boolean>

true if characters are hidden; otherwise, false or null , for a mixture of true and false.

|

Remarks

Use the CharacterProperties interface to change character formatting.

The ToggleHiddenTextCommand command can also be used to mark the text as hidden.

To display hidden text, preserving its characteristic as hidden, specify the FormattingMarkVisibilityOptions.HiddenText option or execute the ToggleShowWhitespaceCommand command.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Hidden 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.

how-to-use-docvariable-fields/CS/DocumentVariablesExample/Form1.cs#L61

csharp
cp.ForeColor = Color.Red;
cp.Hidden = true;
e.RecordDocument.EndUpdateCharacters(cp);

wpf-richedit-use-docvariable-fields/CS/MainWindow.xaml.cs#L58

csharp
cp.ForeColor = Color.Red;
cp.Hidden = true;
e.RecordDocument.EndUpdateCharacters(cp);

how-to-use-docvariable-fields/VB/DocumentVariablesExample/Form1.vb#L60

vb
cp.ForeColor = Color.Red
cp.Hidden = True
e.RecordDocument.EndUpdateCharacters(cp)

wpf-richedit-use-docvariable-fields/VB/MainWindow.xaml.vb#L57

vb
cp.ForeColor = Color.Red
cp.Hidden = True
e.RecordDocument.EndUpdateCharacters(cp)

See Also

ToggleHiddenTextCommand

HiddenText

CharacterPropertiesBase Interface

CharacterPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace