<?xml version="1.0" encoding="utf-8"?>
<Type Name="IStyleSheet" FullName="System.Web.UI.IStyleSheet">
  <TypeSignature Language="C#" Value="public interface IStyleSheet" />
  <AssemblyInfo>
    <AssemblyName>System.Web</AssemblyName>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Interfaces />
  <Docs>
    <since version=".NET 2.0" />
    <remarks>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Classes that implement this interface can use it to support the creation of style rules.</para>
      <para>To customize the way cascading style sheets are created and registered, you must create a class that implements this interface.</para>
      <para>The <see cref="T:System.Web.UI.HtmlControls.HtmlHead" /> class implements this interface for use by ASP.NET through the <see cref="P:System.Web.UI.Page.Header" /> property. </para>
      <block subset="none" type="note">
        <para>Adding or modifying styles or style rules programmatically during asynchronous postbacks is not supported. When you add AJAX capabilities to an ASP.NET Web page, asynchronous postbacks update regions of the page without updating the whole page. For more information, see <format type="text/html"><a href="be84d9b3-b7cd-47d7-8494-be4abfaad9cb">ASP.NET AJAX Overview</a></format>.</para>
      </block>
    </remarks>
    <summary>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Defines the methods that a class must implement in order to support the creation of style rules.</para>
    </summary>
  </Docs>
  <Members>
    <Member MemberName="CreateStyleRule">
      <MemberSignature Language="C#" Value="public void CreateStyleRule (System.Web.UI.WebControls.Style style, System.Web.UI.IUrlResolutionService urlResolver, string selection);" />
      <MemberType>Method</MemberType>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="style" Type="System.Web.UI.WebControls.Style" />
        <Parameter Name="urlResolver" Type="System.Web.UI.IUrlResolutionService" />
        <Parameter Name="selection" Type="System.String" />
      </Parameters>
      <Docs>
        <param name="selection">To be added.</param>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The <see cref="M:System.Web.UI.IStyleSheet.CreateStyleRule(System.Web.UI.WebControls.Style,System.Web.UI.IUrlResolutionService,System.String)" /> method creates a style rule for the specified selector. Multiple style rules can be created for the same selector.</para>
          <para>If <paramref name="urlResolver" /> is set to null, the URL of the current <see cref="T:System.Web.UI.Page" /> instance is used.</para>
          <block subset="none" type="note">
            <para>Adding or modifying styles or style rules programmatically during asynchronous postbacks is not supported. When you add AJAX capabilities to an ASP.NET Web page, asynchronous postbacks update regions of the page without updating the whole page. For more information, see <format type="text/html"><a href="be84d9b3-b7cd-47d7-8494-be4abfaad9cb">ASP.NET AJAX Overview</a></format>.</para>
          </block>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>When implemented by a class, creates a style rule for the specified document language element type, or selector.</para>
        </summary>
        <param name="style">
          <attribution license="cc4" from="Microsoft" modified="false" />The style rule to be added to the embedded style sheet.</param>
        <param name="urlResolver">
          <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Web.UI.IUrlResolutionService" />-implemented object that contains the context information for the current location (URL).</param>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
    <Member MemberName="RegisterStyle">
      <MemberSignature Language="C#" Value="public void RegisterStyle (System.Web.UI.WebControls.Style style, System.Web.UI.IUrlResolutionService urlResolver);" />
      <MemberType>Method</MemberType>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="style" Type="System.Web.UI.WebControls.Style" />
        <Parameter Name="urlResolver" Type="System.Web.UI.IUrlResolutionService" />
      </Parameters>
      <Docs>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>This method adds a new style rule and <see cref="P:System.Web.UI.WebControls.Style.RegisteredCssClass" /> property name to the embedded style sheet within the &lt;head&gt; section of a <see cref="T:System.Web.UI.Page" /> object, and associates the rule with an auto-generated style name. The <see cref="T:System.Web.UI.WebControls.Style" /> object is rendered using the specified <paramref name="urlResolver" /> parameter.</para>
          <para>If <paramref name="urlResolver" /> is set to null, the URL of the current <see cref="T:System.Web.UI.Page" /> is used.</para>
          <para>If a <see cref="T:System.Web.UI.WebControls.Style" /> object is already registered, it is not added multiple times.</para>
          <block subset="none" type="note">
            <para>Adding or modifying styles programmatically during asynchronous postbacks is not supported. When you add AJAX capabilities to an ASP.NET Web page, asynchronous postbacks update regions of the page without updating the whole page. For more information, see <format type="text/html"><a href="be84d9b3-b7cd-47d7-8494-be4abfaad9cb">ASP.NET AJAX Overview</a></format>.</para>
          </block>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>When implemented by a class, adds a new style rule to the embedded style sheet in the &lt;head&gt; section of a Web page.</para>
        </summary>
        <param name="style">
          <attribution license="cc4" from="Microsoft" modified="false" />The style rule to be added to the embedded style sheet.</param>
        <param name="urlResolver">
          <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Web.UI.IUrlResolutionService" />-implemented object that contains the context information for the current location (URL).</param>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
  </Members>
</Type>