Skip to main content
A newer version of this page is available. .

CheckBoxGlyphCollection() Constructor

Initializes a new instance of the CheckBoxGlyphCollection class with the default settings.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

public CheckBoxGlyphCollection()

Remarks

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