Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorCore/Css/ICssStyleSheet.cs @ 12762

Last change on this file since 12762 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 2.9 KB
Line 
1using System;
2
3namespace SharpVectors.Dom.Css
4{
5  /// <summary>
6  /// The CSSStyleSheet interface is a concrete interface used to
7  /// represent a CSS style sheet i.e., a style sheet whose
8  /// content type is "text/css".
9  /// </summary>
10  /// <developer>niklas@protocol7.com</developer>
11  /// <completed>70</completed>
12  public interface ICssStyleSheet : Stylesheets.IStyleSheet
13  {
14    /// <summary>
15    /// Used to delete a rule from the style sheet.
16    /// </summary>
17    /// <param name="index">The index within the style sheet's rule list of the rule to remove.</param>
18    /// <exception cref="DomException">INDEX_SIZE_ERR: Raised if the specified index does not correspond to a rule in the style sheet's rule list.</exception>
19    /// <exception cref="DomException">NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly.</exception>
20    void DeleteRule(ulong index);
21 
22    /// <summary>
23    /// Used to insert a new rule into the style sheet. The new rule now becomes part of the cascade.
24    /// </summary>
25    /// <param name="rule">The parsable text representing the rule. For rule sets this contains both the selector and the style declaration. For at-rules, this specifies both the at-identifier and the rule content.</param>
26    /// <param name="index">The index within the style sheet's rule list of the rule before which to insert the specified rule. If the specified index is equal to the length of the style sheet's rule collection, the rule will be added to the end of the style sheet.</param>
27    /// <returns>The index within the style sheet's rule collection of the newly inserted rule.</returns>
28    /// <exception cref="DomException">HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified index e.g. if an @import rule is inserted after a standard rule set or other at-rule.</exception>
29    /// <exception cref="DomException">INDEX_SIZE_ERR: Raised if the specified index does not correspond to a rule in the style sheet's rule list.</exception>
30    /// <exception cref="DomException">NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly.</exception>
31    /// <exception cref="DomException">SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable.</exception>
32    ulong InsertRule(string rule, ulong index);
33 
34    /// <summary>
35    /// The list of all CSS rules contained within the style sheet. This includes both rule sets and at-rules.
36    /// </summary>
37    SharpVectors.Dom.Css.ICssRuleList CssRules
38    {
39      get;
40      set;
41    }
42 
43    /// <summary>
44    /// If this style sheet comes from an @import rule, the ownerRule attribute will contain the CSSImportRule. In that case, the ownerNode attribute in the StyleSheet interface will be null. If the style sheet comes from an element or a processing instruction, the ownerRule attribute will be null and the ownerNode attribute will contain the Node.
45    /// </summary>
46    SharpVectors.Dom.Css.ICssRule OwnerRule
47    {
48      get;
49    }
50  }
51}
Note: See TracBrowser for help on using the repository browser.