Provides access to members that control the properties of the linear unit.
Members
Name | Description | |
---|---|---|
Define | Defines the properties of the linear unit. | |
DefineEx | Defines the properties of the linear unit. |
ILinearUnitEdit.Define Method
Defines the properties of the linear unit.
Public Sub Define ( _
[ByRef Name As Object], _
[ByRef Alias As Object], _
[ByRef Abbreviation As Object], _
[ByRef Remarks As Object], _
[ByRef MetersPerUnit As Object] _
)
public void Define (
ref object Name,
ref object Alias,
ref object Abbreviation,
ref object Remarks,
ref object MetersPerUnit
);
Description
The Define function allows you to define the properties of a linear unit of measure. Use the metersPerUnit parameter to define how many meters comprise one unit.
private ILinearUnit DefineLinearUnit()
{
//Query interface for LinearUnitEdit
ILinearUnitEdit linearUnitEdit = new LinearUnitClass();
//Define the properties for the linear unit
object name = "Meter";
object alias = "Meter";
object abbreviation = "M";
object remarks = "Meter is the linear unit";
object metersPerUnit = 1;
linearUnitEdit.Define(ref name, ref alias, ref abbreviation, ref remarks, ref metersPerUnit);
return linearUnitEdit as ILinearUnit;
}
ILinearUnitEdit.DefineEx Method
Defines the properties of the linear unit.
Public Sub DefineEx ( _
ByVal Name As String, _
ByVal Alias As String, _
ByVal Abbreviation As String, _
ByVal Remarks As String, _
ByRef MetersPerUnit As Double _
)
public void DefineEx (
string Name,
string Alias,
string Abbreviation,
string Remarks,
ref double MetersPerUnit
);
Classes that implement ILinearUnitEdit
Classes | Description |
---|---|
LinearUnit | Creates a linear unit of measure. |