Skip to main content

CheckBoxBrick.CustomGlyphs Property

Stores a custom glyph image for each checkbox state (Checked/Unchecked/Indeterminate).

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Collection, true, false, false, 0, XtraSerializationFlags.DeserializeCollectionItemBeforeCallSetIndex)]
public CheckBoxGlyphCollection CustomGlyphs { get; }

Property Value

Type Description
CheckBoxGlyphCollection

Custom glyph images for each checkbox state

Remarks

When there is no custom glyph image for a checkbox state, the control displays a glyph image specified by the GlyphStyle property.

Example

The code sample below illustrates how to create a CheckBoxBrick object and set custom glyphs for its states.

using DevExpress.XtraPrinting;
using DevExpress.XtraPrinting.Drawing;
// ...
public CheckBoxBrick SetCustomGlyphs(CheckBoxBrick cBrick) {
    cBrick.CustomGlyphs[CheckState.Checked] = ImageSource.FromFile("checkbox_checked.svg");
    cBrick.CustomGlyphs[CheckState.Unchecked] = ImageSource.FromFile("checkbox_unchecked.svg");
    cBrick.CustomGlyphs[CheckState.Indeterminate] = ImageSource.FromFile("checkbox_indeterminate.svg");
    return cBrick;
}
See Also