• Articles
  • Api Documentation

    Show / Hide Table of Contents
    • DataBaseAccess
      • DataBaseAccess
        • DataAccessService
        • IDataAccessService
        • QueryResult
      • DataBaseAccess.Extensions
        • DataReaderExtension
    • EmailLib
      • EmailLib
        • EmailService
        • SmtpServerConfig
    • WebApplication
      • WebApplication
        • _Default
        • About
        • Account
        • Account.ActiveNav
        • AppConfig
        • AppConfig.Json
        • AppConfig.SmtpServer
        • AppConfig.WebSite
        • AppConfig.Xml
        • BundleConfig
        • CambiarPassword
        • Confirmar
        • Contact
        • EmailSent
        • Global
        • Inicio
        • RedirectPage
        • Registro
        • RouteConfig
        • ScriptResource
        • Site_Mobile
        • SiteMaster
        • ViewSwitcher
        • WebAlertNotification
      • WebApplication.ComprobarMatriculaService
        • comprobarCompletedEventArgs
        • comprobarCompletedEventHandler
        • Matriculas
      • WebApplication.CustomControls
        • ConnectedUsers
        • WebNotification
      • WebApplication.Framework
        • AlertLevel
        • AppSecurity
        • ConnectedUsersTrack
        • NotificationData
        • ParametizedUrl
        • Query
        • Query.GenericTasks
        • UserRole
        • UserType
      • WebApplication.Framework.Extensions
        • AttributeCollectionExtension
        • DictionaryExtension
      • WebApplication.TimeMeanWebService
        • GetAllSubjectsMeansCompletedEventArgs
        • GetAllSubjectsMeansCompletedEventHandler
        • GetSubjectMeansCompletedEventArgs
        • GetSubjectMeansCompletedEventHandler
        • SubjectsMeansService
      • WebApplication.UserPages
        • Coordinador
        • ExportarTareas
        • ImportarTareasDataSet
        • ImportarTareasXmlDocument
        • InsertarTarea
        • InstanciarTarea
        • Student
        • StudentHome
        • StudentMenu
        • TareasAlumno
        • TareasProfesor
        • Teacher
        • TeacherHome
        • TeacherMenu
      • WebApplication.Utils
        • JsonFile
        • UrlUtils

    Class AttributeCollectionExtension

    Inheritance
    System.Object
    AttributeCollectionExtension
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: WebApplication.Framework.Extensions
    Assembly: WebApplication.dll
    Syntax
    public static class AttributeCollectionExtension

    Methods

    | Improve this Doc View Source

    AddClass(WebControl, String[])

    Appends the CSS classes passed as parameters to the already existing ones in the control System.Web.UI.WebControls.WebControl.Attributes collection. If there is no attribute named "class" in the collection, one will be added.

    Declaration
    public static void AddClass(this WebControl webControl, params string[] classNameParams)
    Parameters
    Type Name Description
    System.Web.UI.WebControls.WebControl webControl

    The type the method operates on

    System.String[] classNameParams

    The class name to add

    | Improve this Doc View Source

    AddCssClass(WebControl, String[])

    Appends the CSS classes passed as parameters to the already existing ones in the control System.Web.UI.WebControls.WebControl.CssClass property.

    Declaration
    public static void AddCssClass(this WebControl webControl, params string[] classNameParams)
    Parameters
    Type Name Description
    System.Web.UI.WebControls.WebControl webControl

    The type the method operates on

    System.String[] classNameParams

    The class name to add

    | Improve this Doc View Source

    GetClassesExcept(WebControl, IEnumerable<String>)

    Returns the CSS classes of the attribute "class" in the control System.Web.UI.WebControls.WebControl.Attributes collection, excluding the ones passed as parameters.

    Declaration
    public static IEnumerable<string> GetClassesExcept(this WebControl webControl, IEnumerable<string> classNames)
    Parameters
    Type Name Description
    System.Web.UI.WebControls.WebControl webControl

    The type the method operates on

    System.Collections.Generic.IEnumerable<System.String> classNames

    The class name that will be excluded from the result

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>
    | Improve this Doc View Source

    GetCssClassesExcept(WebControl, IEnumerable<String>)

    Returns the CSS classes in the property System.Web.UI.WebControls.WebControl.CssClass, excluding the ones passed as parameters.

    Declaration
    public static IEnumerable<string> GetCssClassesExcept(this WebControl webControl, IEnumerable<string> classNames)
    Parameters
    Type Name Description
    System.Web.UI.WebControls.WebControl webControl

    The type the method operates on

    System.Collections.Generic.IEnumerable<System.String> classNames

    The class name that will be excluded from the result

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>
    | Improve this Doc View Source

    RemoveClass(WebControl, String[])

    Remove the CSS classes of the attribute "class" defined in the control System.Web.UI.WebControls.WebControl.Attributes collection, that match the names passed as parameters. If the attribute "class" in the collection has no CSS classes it will be removed from the control.

    Declaration
    public static void RemoveClass(this WebControl webControl, params string[] classNameParams)
    Parameters
    Type Name Description
    System.Web.UI.WebControls.WebControl webControl

    The type the method operates on

    System.String[] classNameParams

    The class name to remove

    | Improve this Doc View Source

    RemoveCssClass(WebControl, String[])

    Removes from the control System.Web.UI.WebControls.WebControl.CssClass property, the CSS classes that match the name from the passed parameters.

    Declaration
    public static void RemoveCssClass(this WebControl webControl, params string[] classNameParams)
    Parameters
    Type Name Description
    System.Web.UI.WebControls.WebControl webControl

    The type the method operates on

    System.String[] classNameParams

    The class name to remove

    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Ferran Tudela