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

CheckBoxGlyphCollection.Item[CheckState] Property

Gets or sets a glyph image for the specified check state.

Namespace: DevExpress.XtraPrinting

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

Declaration

public ImageSource this[CheckState key] { get; set; }

Parameters

Name Type Description
key CheckState

The checkbox checkstate

Property Value

Type Description
ImageSource

An image for the specified check state

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