This document is archived and information here might be outdated. Recommended version. |
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
);
[C++]
HRESULT Define(
Variant* Name,
Variant* Alias,
Variant* Abbreviation,
Variant* Remarks,
Variant* RadiansPerUnit
);
[C++] Parameters Name [optional]
Name is a parameter of type VARIANT* Alias [optional]
Alias is a parameter of type VARIANT* Abbreviation [optional]
Abbreviation is a parameter of type VARIANT* Remarks [optional]
Remarks is a parameter of type VARIANT* RadiansPerUnit [optional]
RadiansPerUnit is a parameter of type VARIANT*
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