Formatting.Visible Property
Gets or sets the visibility state.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v19.1.dll
NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.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 | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by the current object’s parent object setting (e.g., a control setting). |
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 using this property, refer to the Conditionally Changing a Control’s Appearance document. Also, see the following tutorials, which describe how to use the Visible property in real-life scenarios:
- Conditionally Filtering Report Data
- Conditionally Suppressing Controls
- Limiting the Number of Records per Page
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Visible 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.