Пример #1
0
        /// <summary>
        /// Get the value of a specfic Css Property.
        /// </summary>
        public string GetPropertyValue(string propertyName)
        {
            var retval = new nsAString();

            StyleDelcaration.GetPropertyValue(new nsAString(propertyName), retval);
            return(retval.ToString());
        }
Пример #2
0
 public override string ToString()
 {
     using (nsAString retval = new nsAString())
     {
         DomRange.ToString(retval);
         return(retval.ToString());
     }
 }
Пример #3
0
 /// <summary>
 /// Get property name by index
 /// </summary>
 public string this[int index]
 {
     get {
         var retval = new nsAString();
         StyleDelcaration.Item((uint)index, retval);
         return(retval.ToString());
     }
 }
Пример #4
0
 /// <summary>
 /// Returns the medium at the given index in the list.
 /// </summary>
 /// <param name="index"></param>
 /// <returns></returns>
 public string this[int index]
 {
     get
     {
         if (index < 0 || index >= Count)
         {
             throw new ArgumentOutOfRangeException("index");
         }
         var retval = new nsAString();
         MediaList.Item((uint)index, retval);
         return(retval.ToString());
     }
 }
Пример #5
0
        /// <summary>
        /// Gets the value of an attribute on this element with the specified name and namespace.
        /// </summary>
        /// <param name="attributeName"></param>
        /// <returns></returns>
        public string GetAttributeNS(string namespaceUri, string attributeName)
        {
            if (string.IsNullOrEmpty(namespaceUri))
            {
                return(GetAttribute(attributeName));
            }

            if (string.IsNullOrEmpty(attributeName))
            {
                throw new ArgumentException("attributeName");
            }
            nsAString retval = new nsAString();

            _domElement.GetAttributeNS(new nsAString(namespaceUri), new nsAString(attributeName), retval);
            return(retval.ToString());
        }