Skip to main content

CharacterCombBrick.CellSizeMode Property

Specifies whether the cell size should depend on the current font size.

Namespace: DevExpress.XtraPrinting

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

NuGet Package: DevExpress.Printing.Core

Declaration

[DefaultValue(SizeMode.AutoSize)]
public SizeMode CellSizeMode { get; set; }

Property Value

Type Default Description
SizeMode AutoSize

A SizeMode enumeration value.

Available values:

Name Description
Custom

The cell size is determined by the XRCharacterComb.CellHeight and XRCharacterComb.CellWidth property values and does not depend on the assigned font size.

With this setting, the actual cell size is less than the specified CellHeight and CellWidth by the XRControl.BorderWidth value.

AutoWidth

Only the cell width depends on the current font size of a control (the XRCharacterComb.CellWidth property is ignored), and the XRCharacterComb.CellHeight value is specified manually.

With this setting, the actual cell width does not depend on the specified border width of a control, while the effective cell height is the difference between the specified XRCharacterComb.CellHeight and XRControl.BorderWidth values.

AutoHeight

Only the cell height depends on the current font size of a control (the XRCharacterComb.CellHeight property is ignored), and the XRCharacterComb.CellWidth value is specified manually.

With this setting, the actual cell height does not depend on the specified border width of a control, while the effective cell width is the difference between the specified XRCharacterComb.CellWidth and XRControl.BorderWidth values.

AutoSize

The cell size depends on the current font size of a control (the XRCharacterComb.CellHeight and XRCharacterComb.CellWidth properties are ignored).

With this setting, the actual cell size does not depend on the specified border width of a control.

Remarks

The CharacterCombBrick cell size depends on the CellSizeMode property value as described in the table below.

SizeMode Description
AutoSize The cell size depends on the current font size .
AutoWidth Only the cell width depends on the current font size (the CharacterCombBrick.CellWidth property is ignored), and the CharacterCombBrick.CellHeight value is specified manually.
AutoHeight Only the cell height depends on the current font size (the CharacterCombBrick.CellHeight property is ignored), and the CharacterCombBrick.CellWidth value is specified manually.
Custom The cell size is determined by the CharacterCombBrick.CellHeight and CharacterCombBrick.CellWidth property values and does not depend on the assigned font size.
See Also