Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / ConditionalFormat Class / RuleCount Property
Example


In This Topic
    RuleCount Property
    In This Topic
    Gets the number of rule objects in the collection.
    Syntax
    'Declaration
     
    <DefaultValueAttribute(0)>
    Public ReadOnly Property RuleCount As Integer
    'Usage
     
    Dim instance As ConditionalFormat
    Dim value As Integer
     
    value = instance.RuleCount
    [DefaultValue(0)]
    public int RuleCount {get;}

    Property Value

    The number of rule objects in the collection. The default value is 0.
    Example
    This example uses the RuleCount property.
    listBox1.Items.Add(gcSpreadSheet1.Sheets[0].ConditionalFormats.RuleCount.ToString());
    ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).ConditionalFormats.RuleCount.ToString())
    See Also