Provides access to members that define the properties of an angular unit.
Members
Name | Description | |
---|---|---|
Define | Defines the properties of an angular unit. | |
DefineEx | Defines the properties of an angular unit. |
IAngularUnitEdit.Define Method
Defines the properties of an angular unit.
Public Sub Define ( _
[ByRef Name As Object], _
[ByRef Alias As Object], _
[ByRef Abbreviation As Object], _
[ByRef Remarks As Object], _
[ByRef RadiansPerUnit As Object] _
)
public void Define (
ref object Name,
ref object Alias,
ref object Abbreviation,
ref object Remarks,
ref object RadiansPerUnit
);
Description
The Define function allows you to define the properties of a angular unit of measure. The radiansPerUnit parameter defines the relationship of a unit object to radians.
private void defineAngularUnit()
{
IAngularUnit angularUnit = new AngularUnitClass();
//Query interface for AngularUnitEdit
IAngularUnitEdit angularUnitEdit = angularUnit as IAngularUnitEdit;
//Define the properties for the angular unit
object name = "Degree";
object alias = "Degree";
object abbreviation = "Deg";
object remarks = "Angular unit is degree";
object radiantsPerUnit = 1;
angularUnitEdit.Define(ref name, ref alias, ref abbreviation, ref remarks, ref radiantsPerUnit);
}
Sub DefineAngularUnit()
Dim pAngUnit As IAngularUnit
Dim pAngUnitEdit As IAngularUnitEdit
pAngUnit = New AngularUnit
'Query interface for AngularUnitEdit
pAngUnitEdit = pAngUnit
'Define the properties for the angular unit
pAngUnitEdit.Define(Name:="Degree", Alias:="Degree", Abbreviation:="Deg", Remarks:="Angular unit is degree", RadiansPerUnit:=1)
End Sub
IAngularUnitEdit.DefineEx Method
Defines the properties of an angular unit.
Public Sub DefineEx ( _
ByVal Name As String, _
ByVal Alias As String, _
ByVal Abbreviation As String, _
ByVal Remarks As String, _
ByRef RadiansPerUnit As Double _
)
public void DefineEx (
string Name,
string Alias,
string Abbreviation,
string Remarks,
ref double RadiansPerUnit
);
Description
The DefineEx function allows you to define the properties of a angular unit of measure. The radiansPerUnit parameter defines the relationship of a unit object to radians.
Classes that implement IAngularUnitEdit
Classes | Description |
---|---|
AngularUnit | Creates a angular unit of measure. |