officefileapi-devexpress-dot-xtrarichedit-dot-formattingmarkvisibilityoptions.md
Gets or sets the visibility of the hidden text.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[DefaultValue(RichEditFormattingMarkVisibility.Auto)]
[XtraSerializableProperty]
public RichEditFormattingMarkVisibility HiddenText { get; set; }
<DefaultValue(RichEditFormattingMarkVisibility.Auto)>
<XtraSerializableProperty>
Public Property HiddenText As RichEditFormattingMarkVisibility
| Type | Default | Description |
|---|---|---|
| RichEditFormattingMarkVisibility | Auto |
A RichEditFormattingMarkVisibility enumeration member specifying the visibility of the hidden text.
|
Available values:
| Name | Description |
|---|---|
| Auto |
Formatting mark visibility is determined by the current view.
| | Visible |
Formatting marks are always visible.
| | Hidden |
Formatting marks are always hidden.
|
You can access this nested property as listed below:
| Object Type | Path to HiddenText |
|---|---|
| RichEditControlOptionsBase |
.FormattingMarkVisibility .HiddenText
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HiddenText 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#L134
private void btn_ShowHiddenText_CheckedChanged(object sender, EventArgs e) {
richEdit.Options.FormattingMarkVisibility.HiddenText = btn_ShowHiddenText.Checked ? RichEditFormattingMarkVisibility.Visible : RichEditFormattingMarkVisibility.Hidden;
}
how-to-use-docvariable-fields/VB/DocumentVariablesExample/Form1.vb#L131
Private Sub btn_ShowHiddenText_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
richEdit.Options.FormattingMarkVisibility.HiddenText = If(btn_ShowHiddenText.Checked, RichEditFormattingMarkVisibility.Visible, RichEditFormattingMarkVisibility.Hidden)
End Sub
See Also
FormattingMarkVisibilityOptions Class