corelibraries-devexpress-dot-xtraprinting-dot-brick-f73b124c.md
Deserializing layout settings from untrusted resources may create security issues. Serializable System.Object properties that contain custom type values are not (de)serialized automatically. Review the following help topic for information on how to (de)serialize custom type values: Safe Deserialization.
Gets or sets an object , containing additional information on the current brick.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[Browsable(false)]
[DefaultValue("")]
public object Value { get; set; }
<DefaultValue("")>
<Browsable(False)>
Public Property Value As Object
| Type | Default | Description |
|---|---|---|
| Object | String.Empty |
Additional information on the current brick.
|
This property is used to store data within a brick. This data has varied uses. For example, it can identify the current brick if its Brick.ID property value is not unique.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Value 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.
reporting-winforms-custom-table-of-contents/CS/CustomTableOfContents/Form1.cs#L44
VisualBrick brick = iterator.CurrentBrick as VisualBrick;
if (brick != null && brick.Value != null) {
string valueString = brick.Value.ToString();
reporting-winforms-drill-through/CS/MasterReport.cs#L18
private void xrLabel1_PreviewClick(object sender, PreviewMouseEventArgs e) {
IRow row = (IRow)e.Brick.Value;
DetailReport detailReport = new DetailReport();
reporting-winforms-custom-table-of-contents/VB/CustomTableOfContents/Form1.vb#L46
Dim brick As VisualBrick = TryCast([iterator].CurrentBrick, VisualBrick)
If brick IsNot Nothing AndAlso brick.Value IsNot Nothing Then
Dim valueString As String = brick.Value.ToString()
reporting-winforms-drill-through/VB/MasterReport.vb#L20
Private Sub xrLabel1_PreviewClick(ByVal sender As Object, ByVal e As PreviewMouseEventArgs)
Dim row As IRow = CType(e.Brick.Value, IRow)
Dim detailReport As DetailReport = New DetailReport()
See Also