コード例 #1
0
ファイル: StyleSheet.cs プロジェクト: rrsc/AngleSharp
 /// <summary>
 /// Creates a new style sheet included in another stylesheet.
 /// </summary>
 /// <param name="parent">The parent of the current stylesheet.</param>
 internal StyleSheet(StyleSheet parent)
     : this()
 {
     _owner = parent._owner;
     _parent = parent;
 }
コード例 #2
0
        protected override async Task Use(Uri url, HTMLDocument document, CancellationToken cancel)
        {
            local = url;
            Selected = null;
            source.Clear();
            Status = "Looking for stylesheets ...";

            for (int i = 0; i < document.StyleSheets.Length; i++)
            {
                var s = document.StyleSheets[i];
                source.Add(s);
            }

            await Task.Yield();
        }