ArcGIS API for WPF - Library Reference
MaximumValue Property
See Also  Example Send comments on this topic
ESRI.ArcGIS.Client Namespace > ClassBreakInfo Class : MaximumValue Property

Gets or sets the maximum value. The value is excluded.

Syntax

Visual Basic (Declaration) 
Public Property MaximumValue As Double
C# 
public double MaximumValue {get; set;}

Example

XAMLCopy Code
<!--
Create a ClassBreakInfo object as a container of information for each 
group. Define the minimum and maximum values for the numeric grouping of the 
Field defined as the ClassBreaksRenderer.Attribute. Add a description and label.
-->
<esri:ClassBreakInfo MinimumValue="1000000" MaximumValue="3000000"
                     Description="1M to 3M people" Label="A cyan solid fill">
  <esri:SimpleFillSymbol Fill="Cyan"/>
</esri:ClassBreakInfo>
            	
<!-- 
An alternative but rather long-winded approach to writing in XAML.
Note: to use the sys: qualifier specify the following namespace: 
xmlns:sys="clr-namespace:System;assembly=mscorlib" 
-->
<esri:ClassBreakInfo>
  <esri:ClassBreakInfo.MinimumValue>
    <sys:Double>3000000</sys:Double>
  </esri:ClassBreakInfo.MinimumValue>
  <esri:ClassBreakInfo.MaximumValue>
    <sys:Double>10000000</sys:Double>
  </esri:ClassBreakInfo.MaximumValue>
  <esri:ClassBreakInfo.Description>
    <sys:String>3M to 10M people</sys:String>
  </esri:ClassBreakInfo.Description>
  <esri:ClassBreakInfo.Label>
    <sys:String>An olive solid fill</sys:String>
  </esri:ClassBreakInfo.Label>
  <esri:SimpleFillSymbol>
    <esri:SimpleFillSymbol.Fill>Olive</esri:SimpleFillSymbol.Fill>
  </esri:SimpleFillSymbol>
</esri:ClassBreakInfo>
C#Copy Code
// Create a ClassBreakInfo object as a container of information for each group. 
ESRI.ArcGIS.Client.ClassBreakInfo myClassBreakInfo1 = new ESRI.ArcGIS.Client.ClassBreakInfo();
                
// Define the minimum and maximum values for the numeric grouping of the Field defined as the
// ClassBreaksRenderer.Attribute.
myClassBreakInfo1.MinimumValue = 1000000;
myClassBreakInfo1.MaximumValue = 3000000;
                
// Add an informational description and label for the group.
myClassBreakInfo1.Description = "1M to 3M people";
myClassBreakInfo1.Label = "A cyan solid fill";
                
// Each ClassBreakInfo grouping needs a symbol to display
ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol mySimpleFillSymbol1 = new ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol();
System.Windows.Media.SolidColorBrush myBrush1 = new System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 0, 255, 255)); //Cyan
mySimpleFillSymbol1.Fill = myBrush1;
myClassBreakInfo1.Symbol = mySimpleFillSymbol1;
VB.NETCopy Code
' Create a ClassBreakInfo object as a container of information for each group. 
Dim myClassBreakInfo1 As New ESRI.ArcGIS.Client.ClassBreakInfo
                
' Define the minimum and maximum values for the numeric grouping of the Field defined as the
' ClassBreaksRenderer.Attribute.
myClassBreakInfo1.MinimumValue = 1000000
myClassBreakInfo1.MaximumValue = 3000000
                
' Add an informational description and label for the group.
myClassBreakInfo1.Description = "1M to 3M people"
myClassBreakInfo1.Label = "A cyan solid fill"
                
' Each ClassBreakInfo grouping needs a symbol to display
Dim mySimpleFillSymbol1 As New ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol
Dim myBrush1 As New System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 0, 255, 255)) 'Cyan
mySimpleFillSymbol1.Fill = myBrush1
myClassBreakInfo1.Symbol = mySimpleFillSymbol1

Remarks

The name of the Field that is specified for the ClassBreaksRenderer.Attribute Property must be a numeric (Double, Integer, SmallInteger, or Single) Field.FieldType. The MaximumValue and MinimumValue Properties define the upper and lower values per grouping based upon what the ClassBreaksRenderer.Attribute is set to.

To see a full example of how to set and use ClassBreakInfo objects in a ClassBreaksRenderer review the ClassBreaksRenderer Class documentation.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.