MindFusion.Wpf Pack Programmer's Guide
Alignment Enumeration
See Also
 





Indicates an alignment of an object relative to the scale. In the descriptions below 'outbound' refers to an element's outer outline, 'inbound' refers to an element's inner outline and 'center' refers to en element's center, that is, the middle of the inbound and outbound.

Namespace: MindFusion.Gauges.Wpf
Assembly: MindFusion.Gauges.Wpf

 Syntax

C#  Copy Code

public enum Alignment

Visual Basic  Copy Code

Public Enum Alignment

 Members

  Member name Description

CenterInside

Specifies that the outbound of an object is aligned with the center of the scale.

CenterOutside

Specifies that the inbound of an object is aligned with the center of the scale.

InnerCenter

Specifies that the center of an object is aligned with the inbound of the scale.

InnerInside

Specifies that the outbound of an object is aligned with the inbound of the scale.

InnerOutside

Specifies that the inbound of an object is aligned with the inbound of the scale.

OuterCenter

Specifies that the center of an object is aligned with the outbound of the scale.

OuterInside

Specifies that the outbound of an object is aligned with the outbound of the scale.

OuterOutside

Specifies that the inbound of an object is aligned with the outbound of the scale.

TrueCenter

Specifies that the center of an object is aligned with the center of the scale.

 Remarks

The following scheme illustrates all possible alignment modes:

The pale blue lane at the background represents an oval scale, the orange line represents the center of the scale and the green objects are the elements being aligned to the scale using different alignment modes. The center of each element is illustrated in light green color. The alignment modes used for each of the elements in the scheme is specified below:

  1. InnerInside
  2. InnerCenter
  3. InnerOutside
  4. CenterInside
  5. TrueCenter
  6. CenterOutside
  7. OuterInside
  8. OuterCenter
  9. OuterOutside

The position of the aligned elements can be further adjusted through their offset. The offset of the different element types is specified through a different property. For example for Range objects, it is specified through the Offset property and for ticks and labels it is specified respectively by the TickOffset and LabelOffset properties of the corresponding TickSettings class.

 See Also

MindFusion.Gauges.Wpf Namespace