C

StretchStripeLabelModel

A label model for stripe labels which supports the possible header positions of IRows and IColumns.
ImplementsInheritance Hierarchy

Remarks

This label model supports four positions inside the stripe bounds. The left and right positions are rotated automatically. ILabelModelParameters created by this model support only IStripe instances as label owner.

The label's preferredSize is ignored by this model. Instead, the label is stretched to fit the row's height for positions RIGHT and LEFT and the column's width for positions TOP and BOTTOM.

See Also

Developer's Guide

Members

No filters for this type

Constructors

Creates a new instance of this model.

Parameters

Properties

Gets or sets the padding to use within the stripe's layout.
The default is (2,2,2,2)
conversion
Gets or sets a value indicating whether to use the global padding or the normal padding of a stripe for centering the label inside the stripe header area.
If true the header padding is used. Default is false

Methods

Creates the parameter for the given position.

Parameters

position: StretchStripeLabelModelPosition
The position.

Return Value

StretchStripeLabelModelParameter
The parameter for the given position.
Provides a lookup context for the given label.

Parameters

label: ILabel
The label to use in the context.

Return Value

ILookup
An implementation of the ILookup interface that can be used to query additional aspects of the label.
Calculates the geometry in the form of an IOrientedRectangle for a given label using the given model parameter.
The geometry is calculated in table coordinates, i.e. relative to the upper left corner of the table.
final

Parameters

label: ILabel
The label to calculate the geometry for
layoutParameter: ILabelModelParameter
A parameter that has been created by this model. This is typically the parameter that yielded this instance through its model property.

Return Value

IOrientedRectangle
An instance that describes the geometry. This is typically an instance designed as a flyweight, so clients should not cache the instance but store the values if they need a snapshot for later use

Constants

A predefined parameter instance that places a label inside the bottom header of a column.
This parameter instance's model is immutable. Trying to change its padding or useTotalPadding properties will raise an InvalidOperationError.
static

Sample Graphs

A predefined parameter instance that places a label inside the left header of a row.
This parameter instance's model is immutable. Trying to change its padding or useTotalPadding properties will raise an InvalidOperationError.
static

Sample Graphs

See Also

Developer's Guide
A predefined parameter instance that places a label inside the right header of a row.
This parameter instance's model is immutable. Trying to change its padding or useTotalPadding properties will raise an InvalidOperationError.
static

Sample Graphs

See Also

Developer's Guide
A predefined parameter instance that places a label inside the top header of a column.
This parameter instance's model is immutable. Trying to change its padding or useTotalPadding properties will raise an InvalidOperationError.
static

Sample Graphs