GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / MaximumSelectionCount Property
In This Topic
    MaximumSelectionCount Property
    In This Topic
    Gets or sets the maximum number of objects allowed in the selection.
    Syntax
    [Category("Selection")]
    [DefaultValue(999999)]
    [Description("The maximum number of selected objects")]
    public virtual int MaximumSelectionCount {get; set;}

    Property Value

    The initial value is 999999. The value must be non-negative.
    Remarks

    This property is checked by the Selection's GoSelection.Add method. If the selection's GoCollection.Count is greater than or equal to this value, GoSelection.Add will not add any objects to this collection.

    If the new value is larger than the current number of selected objects, objects are removed from the Selection until the count is less than this new value. Such removals are done between SelectionStarting and SelectionFinished events.

    See Also