Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Mode used for Control size and position metrics.
Namespace: Visual3D.UIAssembly: 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
| Member | Value | Description |
|---|---|---|
| Absolute | 0 |
Metrics are specified as whole pixels.
|
| Relative | 1 |
Metrics are specified as a decimal fraction of parent Control size.
|
| Inherited | 2 |
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.