ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / DropDown Class / DropDownCssClass Property






In This Topic
    DropDownCssClass Property (DropDown)
    In This Topic
    Gets or sets a CSS class name to add to the control's drop-down element.
    Syntax
    'Declaration
     
    
    Public Property DropDownCssClass As System.String
    'Usage
     
    
    Dim instance As DropDown
    Dim value As System.String
     
    instance.DropDownCssClass = value
     
    value = instance.DropDownCssClass
    public System.string DropDownCssClass {get; set;}
    public read-write property DropDownCssClass: System.String; 
    public function get,set DropDownCssClass : System.String
    public: __property System.string* get_DropDownCssClass();
    public: __property void set_DropDownCssClass( 
       System.string* value
    );
    public:
    property System.String^ DropDownCssClass {
       System.String^ get();
       void set (    System.String^ value);
    }
    Remarks
    This property is useful when styling the drop-down element, because it is shown as a child of the document body rather than as a child of the control itself, which prevents using CSS selectors based on the parent control.
    See Also