1 //------------------------------------------------------------------------------
2 // <copyright file="IStyleSheet.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //------------------------------------------------------------------------------
6 
7 namespace System.Web.UI {
8 
9     using System;
10     using System.Collections;
11     using System.Web.UI.WebControls;
12 
13     /// <devdoc>
14     /// IStyleSheet represents the core functionality of a style sheet, i.e.
15     /// a collection of named styles.
16     /// </devdoc>
17     public interface IStyleSheet {
18 
19 
20         /// <devdoc>
21         /// Creates a style rule for the specified selector.  Multiple rules are allowed of the
22         /// same selector
23         /// </devdoc>
CreateStyleRule(Style style, IUrlResolutionService urlResolver, string selector)24         void CreateStyleRule(Style style, IUrlResolutionService urlResolver, string selector);
25 
26 
27         /// <devdoc>
28         /// Adds a new style rule to the style sheet and associates it with an
29         /// autogenerated name. The style is rendered using the specified
30         /// URL resolver.
31         /// </devdoc>
RegisterStyle(Style style, IUrlResolutionService urlResolver)32         void RegisterStyle(Style style, IUrlResolutionService urlResolver);
33     }
34 }
35