This document is archived and information here might be outdated.  Recommended version.


IAngularUnitEdit.Define Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IA > IAngularUnitEdit Interface > IAngularUnitEdit.Define Method
ArcGIS Developer Help

IAngularUnitEdit.Define Method

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*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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.

[C#]
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);
}
[Visual Basic .NET]

    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

See Also

IAngularUnitEdit Interface