Back to Devexpress

Brick.Value Property

corelibraries-devexpress-dot-xtraprinting-dot-brick-f73b124c.md

latest4.0 KB
Original Source

Brick.Value Property

SECURITY-RELATED CONSIDERATIONS

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

Declaration

csharp
[Browsable(false)]
[DefaultValue("")]
public object Value { get; set; }
vb
<DefaultValue("")>
<Browsable(False)>
Public Property Value As Object

Property Value

TypeDefaultDescription
ObjectString.Empty

Additional information on the current brick.

|

Remarks

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

csharp
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

csharp
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

vb
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

vb
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

Brick Class

Brick Members

DevExpress.XtraPrinting Namespace