In the Nevron Graphics lengths are specified as NLength structures. The NLength structure groups together a value and a measurement unit. The following example creates a length that represents ten pixels:
C# |
Copy Code
|
---|---|
NLength tenPixels = new NLength(10, NGraphicsUnit.Pixel);
|
Visual Basic |
Copy Code
|
---|---|
Dim tenPixels As New NLength(10, NGraphicsUnit.Pixel) |
If you do not specify a measurement unit then the length will by default use the NGraphics.Point measurement unit.
C# |
Copy Code
|
---|---|
NLength tenPoints = new NLength(10);
|
Visual Basic |
Copy Code
|
---|---|
Dim tenPoints As NLength = New NLength(10) |