Skip to main content

Formatting.Visible Property

Gets or sets the visibility state.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v22.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[DefaultValue(DefaultBoolean.Default)]
[SRCategory(ReportStringId.CatBehavior)]
public DefaultBoolean Visible { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean value which represents the visibility state.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

The Visible property determines the value which should be set to a control’s XRControl.Visible property, when applying the formatting rule that contains the current Formatting object. Note that if the Visible property is set to DefaultBoolean.Default, this is treated as an empty value, which doesn’t change the visibility of a control’s XRControl.Visible property, even if the rule is applied.

For more information on how to use this property, refer to the Conditionally Changing a Control’s Appearance document. The following tutorials describe how to use the Visible property in real-life scenarios:

See Also