menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HTMLAttributeImpl - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HTMLAttributeImpl

    Class implements the base logic of attributes which is a part of the HTML element.

    Inheritance
    System.Object
    HTMLAttributeImpl
    Implements
    IHTMLAttribute
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public class HTMLAttributeImpl : IHTMLAttribute

    Constructors

    HTMLAttributeImpl(IHTMLElement, String)

    Initializes a new instance of the HTMLAttributeImpl class

    Declaration
    public HTMLAttributeImpl(IHTMLElement parent, string name)
    Parameters
    Type Name Description
    IHTMLElement parent

    Parent of the current attribute.

    System.String name

    Name of the current attribute.

    HTMLAttributeImpl(IHTMLElement, String, String)

    Initializes a new instance of the HTMLAttributeImpl class

    Declaration
    public HTMLAttributeImpl(IHTMLElement parent, string name, string value)
    Parameters
    Type Name Description
    IHTMLElement parent

    Parent of attribute.

    System.String name

    Name of attribute.

    System.String value

    Value of attribute.

    Properties

    IsRuntimeAttribute

    Gets or sets a value indicating whether the property is run-time and must not be serialized to text.

    Declaration
    public bool IsRuntimeAttribute { get; set; }
    Property Value
    Type
    System.Boolean

    Name

    Gets the unique name of the attribute.

    Declaration
    public string Name { get; }
    Property Value
    Type
    System.String

    Parent

    Gets the parent of the current attribute.

    Declaration
    public IHTMLElement Parent { get; }
    Property Value
    Type
    IHTMLElement

    ParentStorage

    Gets the XML storage in parent XML element.

    Declaration
    protected XmlElement ParentStorage { get; }
    Property Value
    Type
    System.Xml.XmlElement

    Value

    Gets or sets the current value of the attribute.

    Declaration
    public string Value { get; set; }
    Property Value
    Type
    System.String

    Methods

    IsNameGood(String)

    Indicates whether the name of the attribute is good for HTML.

    Declaration
    protected bool IsNameGood(string name)
    Parameters
    Type Name Description
    System.String name

    Name of the attribute.

    Returns
    Type Description
    System.Boolean

    True if name is good.

    OnValueChanged(ValueChangedEventArgs)

    On value property change, this method is called by property set part. This is best place for own logic.

    Declaration
    protected virtual void OnValueChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    Old and new value of property.

    RaiseValueChanged(ValueChangedEventArgs)

    Raises the ValueChanged event.

    Declaration
    protected void RaiseValueChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    New and old value of property.

    ToString()

    Overridden. Returns the attribute as string suitable for HTML.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Attribute string suitable for direct use in HTML as part of element declaration.

    Overrides
    System.Object.ToString()

    Events

    ValueChanged

    Event raised after attribute value changes. To event handlers, send new and old value of attribute.

    Declaration
    public event ValueChangedEventHandler ValueChanged
    Event Type
    Type
    ValueChangedEventHandler

    Implements

    IHTMLAttribute
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved