Back to Devexpress

FormattingMarkVisibilityOptions.HiddenText Property

officefileapi-devexpress-dot-xtrarichedit-dot-formattingmarkvisibilityoptions.md

latest3.7 KB
Original Source

FormattingMarkVisibilityOptions.HiddenText Property

Gets or sets the visibility of the hidden text.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(RichEditFormattingMarkVisibility.Auto)]
[XtraSerializableProperty]
public RichEditFormattingMarkVisibility HiddenText { get; set; }
vb
<DefaultValue(RichEditFormattingMarkVisibility.Auto)>
<XtraSerializableProperty>
Public Property HiddenText As RichEditFormattingMarkVisibility

Property Value

TypeDefaultDescription
RichEditFormattingMarkVisibilityAuto

A RichEditFormattingMarkVisibility enumeration member specifying the visibility of the hidden text.

|

Available values:

NameDescription
Auto

Formatting mark visibility is determined by the current view.

| | Visible |

Formatting marks are always visible.

| | Hidden |

Formatting marks are always hidden.

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

csharp
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

vb
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

FormattingMarkVisibilityOptions Members

DevExpress.XtraRichEdit Namespace