GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    ConditionalLength Class

    Namespace:
    GemBox.Spreadsheet.ConditionalFormatting
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a conditional length used in DataBarCondition of a conditional formatting rule to specify data bar length.

    • C#
    • VB.NET
    public sealed class ConditionalLength : ConditionalObject
    Public NotInheritable Class ConditionalLength
        Inherits ConditionalObject
    Inheritance:
    System.Object
    ConditionalObject
    ConditionalLength

    Properties

    Length

    Gets or sets the data bar length as a percentage of the cell width.

    • C#
    • VB.NET
    public int Length { get; set; }
    Public Property Length As Integer
    Property Value
    System.Int32

    The data bar length as a percentage of the cell width.

    Exceptions
    System.ArgumentOutOfRangeException

    Value is less than 0 or greater than 100.

    Methods

    ToString()

    Returns a System.String that represents this ConditionalLength instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this ConditionalLength instance.

    Overrides
    ConditionalObject.ToString()
    Remarks

    This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).

    Inherited Properties

    Value

    Gets or sets the value.

    (Inherited from ConditionalObject)

    Examples

    Excel Conditional Formatting example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.