IBrick.SetProperties(Object[,]) Method

Sets property values for the class which implements the IBrick interface based on the specified properties array.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.2.dll

Declaration

void SetProperties(
    object[,
    ] properties
)
Sub SetProperties(
    properties As Object(,)
)

Parameters

Name Type Description
properties Object[,]

A two-dimesional array that identifies property names and values to set.

Remarks

A properties object represents an array of properties to set to the class which implements the IBrick interface. The first dimension identifies the property name, the second identifies the property value.

Examples

The following code demonstrates how to use the IBrick.SetProperties method. It sets three properties (Image, Sides, BackColor) to the appropriate values.

brick.SetProperties(new object[,] { {"Image", imageList.Images[0]}, {"Sides", _
    BorderSide.None}, {"BackColor", Color.Transparent} });
See Also