com.aspose.html.dom.css

Class CSSValueList

    • Constructor Detail

      • CSSValueList

        public CSSValueList()

        Initializes a new instance of the CSSValueList class.

      • CSSValueList

        public CSSValueList(com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<CSSValue> values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        values - The values.
      • CSSValueList

        public CSSValueList(CSSValue... values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        values - The values.
      • CSSValueList

        public CSSValueList(boolean isCommaSeparatedList)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        isCommaSeparatedList - Flag which controls separator used during serialization.
      • CSSValueList

        public CSSValueList(boolean isCommaSeparatedList,
                            com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<CSSValue> values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        isCommaSeparatedList - Flag which controls separator used during serialization.
        values - The values.
      • CSSValueList

        public CSSValueList(boolean isCommaSeparatedList,
                            CSSValue... values)

        Initializes a new instance of the CSSValueList class.

        Parameters:
        isCommaSeparatedList - Flag which controls separator used during serialization.
        values - The values.
    • Method Detail

      • add

        public void add(CSSValue value)
      • getCSSText

        public String getCSSText()

        A string representation of the current value.

        Value: The CSS text.
        Specified by:
        getCSSText in class CSSValue
      • setCSSText

        public void setCSSText(String value)

        A string representation of the current value.

        Value: The CSS text.
        Specified by:
        setCSSText in class CSSValue
      • getLength

        public int getLength()

        The number of CSSValues in the list.

        Specified by:
        getLength in interface ICSSValueList
      • isCommaSeparatedList

        public boolean isCommaSeparatedList()

        Flag which controls separator used during serialization.

      • iterator

        public com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<CSSValue> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<CSSValue>
        Specified by:
        iterator in interface com.aspose.html.internal.ms.System.Collections.IEnumerable<CSSValue>
        Specified by:
        iterator in interface Iterable<CSSValue>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.