ArcGIS Explorer Component Help |
RangeDomain..::.MaxValue Property |
RangeDomain Class Example See Also |
Gets the maximum permitted value.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public Object MaxValue { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property MaxValue As Object |
Field Value
The maximum value.Examples
The code below returns the RangeDomain associated with a column in a geodatabase feature class and then prints out
the properties, including the MaxValue property.
CopyC#
{ Table fittings = Table.OpenFileGeodatabaseTable(@"C:\Data\Montgomery.gdb", "fittings"); //check that the "ANGLE" column of the "fittings" feature class has a Domain assigned. if (fittings.Columns["ANGLE"].HasDomain) { //return the Domain Domain domain = fittings.Columns["ANGLE"].GetDomain(); //check the Domain type if (domain.Type == DomainType.Range) { RangeDomain rangeDom = domain as RangeDomain; //Print the properties for this range domain System.Diagnostics.Debug.Print(rangeDom.Name); //Prints "RotAngle" System.Diagnostics.Debug.Print(rangeDom.Type.ToString()); //Prints "Range" System.Diagnostics.Debug.Print(rangeDom.Description); //Prints "Valid rotation angles" System.Diagnostics.Debug.Print(rangeDom.ColumnType.ToString()); //Prints "Integer" //Print the minimum and maximum values that the "Angle" Column can store System.Diagnostics.Debug.Print(rangeDom.MinValue.ToString()); //Prints "0" System.Diagnostics.Debug.Print(rangeDom.MaxValue.ToString()); //Prints "359" } } }
CopyVB.NET
Dim fittings As Table = Table.OpenFileGeodatabaseTable("C:\Data\Montgomery.gdb", "fittings") 'check that the "ANGLE" column of the "fittings" feature class has a Domain assigned. If (fittings.Columns.Item("ANGLE").HasDomain) Then 'return the Domain Dim dom As Domain = fittings.Columns.Item("ANGLE").GetDomain() 'check the Domain type If (dom.Type = DomainType.Range) Then Dim rangeDom As RangeDomain = DirectCast(dom, RangeDomain) 'Print the properties for this range domain System.Diagnostics.Debug.Print(rangeDom.Name) 'Prints "RotAngle" System.Diagnostics.Debug.Print(rangeDom.Type.ToString()) 'Prints "Range" System.Diagnostics.Debug.Print(rangeDom.Description) 'Prints "Valid rotation angles" System.Diagnostics.Debug.Print(rangeDom.ColumnType.ToString()) 'Prints "Integer" 'Print the minimum and maximum values that the "Angle" Column can store System.Diagnostics.Debug.Print(rangeDom.MinValue.ToString()) 'Prints "0" System.Diagnostics.Debug.Print(rangeDom.MaxValue.ToString()) 'Prints "359" End If End If