Defines the properties of an angular unit.
[Visual Basic .NET] Public Sub Define ( _ [ByRef Name As Object], _ [ByRef Alias As Object], _ [ByRef Abbreviation As Object], _ [ByRef Remarks As Object], _ [ByRef RadiansPerUnit As Object] _ )
[C#] public void Define ( ref object Name, ref object Alias, ref object Abbreviation, ref object Remarks, ref object RadiansPerUnit );
Optional Values
[C++]
HRESULT Define(
  VARIANT* Name,
  VARIANT* Alias,
  VARIANT* Abbreviation,
  VARIANT* Remarks,
  VARIANT* RadiansPerUnit
);
[C++]Parameters
Name [optional] Name is a parameter of type VARIANTTo indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
Alias [optional] Alias is a parameter of type VARIANTTo indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
Abbreviation [optional] Abbreviation is a parameter of type VARIANTTo indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
Remarks [optional] Remarks is a parameter of type VARIANTTo indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
RadiansPerUnit [optional] RadiansPerUnit is a parameter of type VARIANTTo indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.
Product Availability
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