Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Mode used for Control size and position metrics.

Namespace: Visual3D.UI
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public enum MetricsMode
Public Enumeration MetricsMode

Members

MemberValueDescription
Absolute0
Metrics are specified as whole pixels.
Relative1
Metrics are specified as a decimal fraction of parent Control size.
Inherited2
Metrics are inherited from parent.

Remarks

Position information for a Control is always 'relative' to it's parent even in Absolute mode. In Relative mode, layout is maintained for different screen resolutions, and also offers the ability for child Controls to properly adjust their layout as their parent is sized.

See Also