コード例 #1
0
ファイル: ListItemWriter.cs プロジェクト: ridomin/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var li = ctrl as Paragraph;
            var currentStyle = style.Li;

            if (!string.IsNullOrEmpty(currentStyle?.Bullet))
            {
                currentStyle.RegisterPropertyChangedCallback(ListStyle.BulletProperty, (sender, dp) =>
                {
                    var r = li.Inlines[0] as Run;
                    if (r != null)
                    {
                        r.Text = currentStyle?.Bullet;
                    }
                });

                li.Inlines.Insert(0, new Run
                {
                    Text = currentStyle.Bullet
                });
                li.Inlines.Insert(1, new Run
                {
                    Text = " "
                });
            }
            ApplyParagraphStyles(li, currentStyle);
        }
コード例 #2
0
ファイル: FigCaptionWriter.cs プロジェクト: ridomin/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var caption = ctrl as Paragraph;
            caption.TextAlignment = Parse(style.Img.HorizontalAlignment);

            ApplyParagraphStyles(caption, style.FigCaption);
        }
コード例 #3
0
        private static ParagraphStyle GetDocumentStyle(HtmlFragment fragment, DocumentStyle style)
        {
            if (style == null)
            {
                return(null);
            }
            switch (fragment.Name.ToLowerInvariant())
            {
            case "h1":
                return(style.H1);

            case "h2":
                return(style.H2);

            case "h3":
                return(style.H3);

            case "h4":
                return(style.H4);

            case "h5":
                return(style.H5);

            case "h6":
                return(style.H6);

            default:
                return(null);
            }
        }
コード例 #4
0
        private void SetDocumentStyle(object sender, System.EventArgs e)
        {
            DocumentStyle oldStyle = dockPanel.DocumentStyle;
            DocumentStyle newStyle;

            if (sender == menuItemDockingWindow)
            {
                newStyle = DocumentStyle.DockingWindow;
            }
            else
            {
                newStyle = DocumentStyle.DockingWindow;
            }

            if (oldStyle == newStyle)
            {
                return;
            }

            if (oldStyle == DocumentStyle.DockingWindow || newStyle == DocumentStyle.DockingWindow)
            {
                CloseAllDocuments();
            }

            dockPanel.DocumentStyle = newStyle;

            menuItemDockingWindow.Checked = (newStyle == DocumentStyle.DockingWindow);


            menuItemLayoutByCode.Enabled = (newStyle != DocumentStyle.SystemMdi);
        }
コード例 #5
0
ファイル: IFrameVideoWriter.cs プロジェクト: ridomin/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var grid = ctrl as Grid;
            var vb = grid.GetChild<Viewbox>(0, 0);

            ApplyImageStyles(vb, GetStyle(style));
        }
コード例 #6
0
ファイル: TableDataWriter.cs プロジェクト: ridomin/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var column = ctrl as GridColumn;
            var border = column.Row.Container.GetChild<Border>(column.Index, column.Row.Index);
            if (border != null)
            {
                var tableBorder = GetTableBorder(fragment.AsNode());
                if (tableBorder.HasValue)
                {
                    border.BorderThickness = new Thickness(tableBorder.Value);
                    border.BorderBrush = style.Table?.BorderForeground ?? new SolidColorBrush(Colors.Black);
                }
                else if (style.Table != null && !double.IsNaN(style.Table.Border.Top))
                {
                    BindingOperations.SetBinding(border, Border.BorderThicknessProperty, CreateBinding(style.Table, "Border"));
                    BindingOperations.SetBinding(border, Border.BorderBrushProperty, CreateBinding(style.Table, "BorderForeground"));
                }

                if (style.Table != null)
                {
                    BindingOperations.SetBinding(border, Border.MarginProperty, CreateBinding(style.Td, "Margin"));
                    BindingOperations.SetBinding(border, Border.PaddingProperty, CreateBinding(style.Td, "Padding"));
                }
            }
        }
コード例 #7
0
        /// <summary>
        /// ドキュメントスタイルの設定をする
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SetDocumentStyle(object sender, System.EventArgs e)
        {
            DocumentStyle oldStyle = dockPanel.DocumentStyle;
            DocumentStyle newStyle;

            //if (sender == menuItemDockingMdi)
            //    newStyle = DocumentStyle.DockingMdi;
            //else if (sender == menuItemDockingWindow)
            //    newStyle = DocumentStyle.DockingWindow;
            //else if (sender == menuItemDockingSdi)
            //    newStyle = DocumentStyle.DockingSdi;
            //else
            newStyle = DocumentStyle.SystemMdi;

            if (oldStyle == newStyle)
            {
                return;
            }

            if (oldStyle == DocumentStyle.SystemMdi || newStyle == DocumentStyle.SystemMdi)
            {
                CloseAllDocuments();
            }

            dockPanel.DocumentStyle = newStyle;
            //menuItemDockingMdi.Checked = (newStyle == DocumentStyle.DockingMdi);
            //menuItemDockingWindow.Checked = (newStyle == DocumentStyle.DockingWindow);
            //menuItemDockingSdi.Checked = (newStyle == DocumentStyle.DockingSdi);
            //menuItemSystemMdi.Checked = (newStyle == DocumentStyle.SystemMdi);
            //menuItemLayoutByCode.Enabled = (newStyle != DocumentStyle.SystemMdi);
            //menuItemLayoutByXml.Enabled = (newStyle != DocumentStyle.SystemMdi);
            //toolBarButtonLayoutByCode.Enabled = (newStyle != DocumentStyle.SystemMdi);
            //toolBarButtonLayoutByXml.Enabled = (newStyle != DocumentStyle.SystemMdi);
        }
コード例 #8
0
ファイル: ImageWriter.cs プロジェクト: ridomin/waslibs
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     if (!IsInline(fragment))
     {
         ApplyImageStyles(ctrl as Viewbox, style.Img);
     }
 }
コード例 #9
0
ファイル: ListItemWriter.cs プロジェクト: yunfandev/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var li           = ctrl as Paragraph;
            var currentStyle = style.Li;

            if (!string.IsNullOrEmpty(currentStyle?.Bullet))
            {
                currentStyle.RegisterPropertyChangedCallback(ListStyle.BulletProperty, (sender, dp) =>
                {
                    var r = li.Inlines[0] as Run;
                    if (r != null)
                    {
                        r.Text = currentStyle?.Bullet;
                    }
                });

                li.Inlines.Insert(0, new Run
                {
                    Text = currentStyle.Bullet
                });
                li.Inlines.Insert(1, new Run
                {
                    Text = " "
                });
            }
            ApplyParagraphStyles(li, currentStyle);
        }
コード例 #10
0
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var grid = ctrl as Grid;
            var vb   = grid.GetChild <Viewbox>(0, 0);

            ApplyImageStyles(vb, GetStyle(style));
        }
コード例 #11
0
ファイル: TableDataWriter.cs プロジェクト: yunfandev/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var column = ctrl as GridColumn;
            var border = column.Row.Container.GetChild <Border>(column.Index, column.Row.Index);

            if (border != null)
            {
                var tableBorder = GetTableBorder(fragment.AsNode());
                if (tableBorder.HasValue)
                {
                    border.BorderThickness = new Thickness(tableBorder.Value);
                    border.BorderBrush     = style.Table?.BorderForeground ?? new SolidColorBrush(Colors.Black);
                }
                else if (style.Table != null && !double.IsNaN(style.Table.Border.Top))
                {
                    BindingOperations.SetBinding(border, Border.BorderThicknessProperty, CreateBinding(style.Table, "Border"));
                    BindingOperations.SetBinding(border, Border.BorderBrushProperty, CreateBinding(style.Table, "BorderForeground"));
                }

                if (style.Table != null)
                {
                    BindingOperations.SetBinding(border, Border.MarginProperty, CreateBinding(style.Td, "Margin"));
                    BindingOperations.SetBinding(border, Border.PaddingProperty, CreateBinding(style.Td, "Padding"));
                }
            }
        }
コード例 #12
0
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     if (!IsInline(fragment))
     {
         ApplyImageStyles(ctrl as Viewbox, style.Img);
     }
 }
コード例 #13
0
ファイル: FigCaptionWriter.cs プロジェクト: yunfandev/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            var caption = ctrl as Paragraph;

            caption.TextAlignment = Parse(style.Img.HorizontalAlignment);

            ApplyParagraphStyles(caption, style.FigCaption);
        }
コード例 #14
0
        public void EnsureStyle_adds_style_if_not_exists(DocumentStyleType type)
        {
            var documentStyle = new DocumentStyle()
            {
                StyleName = "test", DocumentStyleType = type
            };

            var ensureStyle = documentStyle.Ensure(Document);

            ensureStyle.ShouldBeTrue();

            documentStyle.Find(Document).Name().ShouldBe("test");
        }
コード例 #15
0
        private void SetDocumentStyle(object sender, System.EventArgs e)
        {
            DocumentStyle oldStyle = dockPanel.DocumentStyle;
            DocumentStyle newStyle;

            newStyle = DocumentStyle.DockingMdi;
            if (oldStyle == DocumentStyle.SystemMdi || newStyle == DocumentStyle.SystemMdi)
            {
                CloseAllDocuments();
            }

            dockPanel.DocumentStyle = newStyle;
        }
コード例 #16
0
ファイル: ContainerWriter.cs プロジェクト: yunfandev/waslibs
        private static ContainerStyle GetDocumentStyle(HtmlFragment fragment, DocumentStyle style)
        {
            if (style == null)
            {
                return(null);
            }
            switch (fragment.Name.ToLowerInvariant())
            {
            case "div":
            case "tbody":
                return(style.Div);

            case "ul":
                return(style.Ul);

            case "ol":
                return(style.Ol);

            case "dl":
                return(style.Dl);

            case "section":
                return(style.Section);

            case "article":
                return(style.Article);

            case "header":
                return(style.Header);

            case "footer":
                return(style.Footer);

            case "main":
                return(style.Main);

            case "figure":
                return(style.Figure);

            case "details":
                return(style.Details);

            case "summary":
                return(style.Summary);

            default:
                return(null);
            }
        }
コード例 #17
0
ファイル: TableWriter.cs プロジェクト: ridomin/waslibs
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            if (style?.Table != null)
            {
                var grid = ctrl as Grid;

                BindingOperations.SetBinding(grid, Grid.HorizontalAlignmentProperty, CreateBinding(style.Table, "HorizontalAlignment"));

                foreach (var columnDefinition in grid.ColumnDefinitions)
                {
                    BindingOperations.SetBinding(columnDefinition, ColumnDefinition.WidthProperty, CreateBinding(style.Table, "ColumnWidth"));
                }

                ApplyContainerStyles(grid, style.Table);
            }
        }
コード例 #18
0
        public void EnsureStyle_Update_style_if_not_used(DocumentStyleType type)
        {
            var nativeStyle = Document.NewDocumentStyle(1, type, true).First();

            nativeStyle.FontName = "test";
            var documentStyle = new DocumentStyle()
            {
                StyleName = nativeStyle.Name(), DocumentStyleType = type
            };

            var ensureStyle = documentStyle.Ensure(Document);

            ensureStyle.ShouldBeTrue();

            documentStyle.Find(Document).FontName.ShouldBe("test");
        }
コード例 #19
0
        public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
        {
            if (style?.Table != null)
            {
                var grid = ctrl as Grid;

                BindingOperations.SetBinding(grid, Grid.HorizontalAlignmentProperty, CreateBinding(style.Table, "HorizontalAlignment"));

                foreach (var columnDefinition in grid.ColumnDefinitions)
                {
                    BindingOperations.SetBinding(columnDefinition, ColumnDefinition.WidthProperty, CreateBinding(style.Table, "ColumnWidth"));
                }

                ApplyContainerStyles(grid, style.Table);
            }
        }
コード例 #20
0
        public static CharacterPropertiesBase NewParagraphStyle(this Document document, int paragraph, bool doNotApply = false)
        {
            var documentParagraph = document.Paragraphs[paragraph];

            document.InsertText(documentParagraph.Range.Start, $"test{paragraph}");
            var documentStyle = new DocumentStyle()
            {
                StyleName = $"{PsStyleName}{paragraph}", FontSize = 22, FontName = "Verdana"
            };
            var paragraphStyle = documentStyle.Get(document);

            if (!doNotApply)
            {
                documentParagraph.Style = (ParagraphStyle)paragraphStyle;
            }

            return(paragraphStyle);
        }
コード例 #21
0
ファイル: MainForm.cs プロジェクト: tickbh/TickUIEditor
        private void SetDocumentStyle(object sender, System.EventArgs e)
        {
            DocumentStyle oldStyle = dockPanel.DocumentStyle;
            DocumentStyle newStyle = DocumentStyle.SystemMdi;

            if (oldStyle == newStyle)
            {
                return;
            }

            if (oldStyle == DocumentStyle.SystemMdi || newStyle == DocumentStyle.SystemMdi)
            {
                CloseAllDocuments();
            }

            dockPanel.DocumentStyle           = newStyle;
            menuItemLayoutByCode.Enabled      = (newStyle != DocumentStyle.SystemMdi);
            toolBarButtonLayoutByCode.Enabled = (newStyle != DocumentStyle.SystemMdi);
        }
コード例 #22
0
 static IEnumerable <CharacterStyle> NewCharacterStyle(this Document document, int stylesCount, bool doNotApply)
 {
     for (int i = 0; i < stylesCount; i++)
     {
         var documentRange = document.AppendText($"test{i}");
         var documentStyle = new DocumentStyle()
         {
             StyleName = $"{CsStyleName}{i}", FontSize = 22, FontName = "Verdana", DocumentStyleType = DocumentStyleType.Character
         };
         var charPropsStyle = (CharacterStyle)documentStyle.Get(document);
         document.CharacterStyles.Add(charPropsStyle);
         if (!doNotApply)
         {
             var charProps = document.BeginUpdateCharacters(documentRange);
             charProps.Style = charPropsStyle;
             document.EndUpdateCharacters(charProps);
         }
         yield return(charPropsStyle);
     }
 }
コード例 #23
0
        public void Replace_many_styles_with_one(DocumentStyleType type)
        {
            Document.NewDocumentStyle(2, type);
            var styles = Document.UsedStyles().WhenNotDefaultStyle().ToArray();

            var replacementStyle = new DocumentStyle()
            {
                StyleName = "replacement", FontSize = 22, FontName = "Verdana", DocumentStyleType = type
            };

            Document.ReplaceStyles(replacementStyle, styles);

            styles = Document.UsedStyles(type).WhenNotDefaultStyle().ToArray();
            styles.Length.ShouldBe(1);
            replacementStyle.ShouldBe(styles.First());
            replacementStyle = (DocumentStyle)styles.First();
            replacementStyle.Used.ShouldBe(true);
            styles = Document.AllStyles(type).WhenNotDefaultStyle().Where(style => style.Used).ToArray();
            styles.Length.ShouldBe(1);
            styles.FirstOrDefault(style => style.DocumentStyleType == type && style.StyleName == replacementStyle.StyleName).ShouldNotBeNull();
        }
コード例 #24
0
        public void New_TemplateStyle_Stores_Parent_Styles_Separately(DocumentStyleType type)
        {
            using var application = DocumentStyleManagerModule().Application;
            var parentStyle = new DocumentStyle()
            {
                DocumentStyleType = type, StyleName = "parent", FontName = "test"
            };
            var childStyle = new DocumentStyle()
            {
                DocumentStyleType = type, StyleName = "child", Parent = parentStyle
            };

            var templateStyle = childStyle.NewTemplateStyle(application.CreateObjectSpace());

            templateStyle.Parent.ShouldNotBeNull();
            templateStyle.DocumentStyleType.ShouldBe(type);
            templateStyle.Parent.StyleName.ShouldBe(parentStyle.StyleName);
            templateStyle.Parent.FontName.ShouldBe(parentStyle.FontName);
            templateStyle.StyleName.ShouldBe(childStyle.StyleName);
            templateStyle.FontName.ShouldBeNull();
        }
コード例 #25
0
        public void New_CharacterPropertiesBase_Reflects_ParentStyle_Properties(DocumentStyleType documentStyleType)
        {
            var parent = new DocumentStyle {
                FontName = "Test", StyleName = "parent", DocumentStyleType = documentStyleType
            };

            ((IDocumentStyle)parent).PropeprtiesMap[nameof(IDocumentStyle.FontName)] = parent.StyleName;

            var child = new DocumentStyle {
                StyleName = "child", Parent = parent, DocumentStyleType = documentStyleType
            };

            ((IDocumentStyle)child).PropeprtiesMap[nameof(IDocumentStyle.FontName)] = parent.StyleName;

            var next = new DocumentStyle()
            {
                StyleName = "next", DocumentStyleType = documentStyleType
            };

            ((IDocumentStyle)next).PropeprtiesMap[nameof(IDocumentStyle.FontName)] = next.StyleName;
            child.Next = next;

            var style = Document.CreateNewStyle(child);

            style.Name().ShouldBe("child");
            style.FontName.ShouldBeNull();
            var parentStyle = (CharacterPropertiesBase)style.GetPropertyValue("Parent");

            parentStyle.ShouldNotBeNull();
            parentStyle.Name().ShouldBe(parent.StyleName);
            parentStyle.FontName.ShouldBe("Test");

            if (documentStyleType == DocumentStyleType.Paragraph)
            {
                var nextStyle = (CharacterPropertiesBase)style.GetPropertyValue("NextStyle");
                nextStyle.ShouldNotBeNull();
                nextStyle.Name().ShouldBe(next.StyleName);
            }
        }
コード例 #26
0
ファイル: Workbench.cs プロジェクト: windygu/Justin
        private void SetDocumentStyle(object sender, System.EventArgs e)
        {
            DocumentStyle oldStyle = dockPanel.DocumentStyle;
            DocumentStyle newStyle;

            if (sender == documentStyleDockingMDIToolStripMenuItem)
            {
                newStyle = DocumentStyle.DockingMdi;
            }
            else if (sender == documentStyleDockingWindowToolStripMenuItem)
            {
                newStyle = DocumentStyle.DockingWindow;
            }
            else if (sender == documentStyleDockingSDIToolStripMenuItem)
            {
                newStyle = DocumentStyle.DockingSdi;
            }
            else
            {
                newStyle = DocumentStyle.SystemMdi;
            }

            if (oldStyle == newStyle)
            {
                return;
            }

            if (oldStyle == DocumentStyle.SystemMdi || newStyle == DocumentStyle.SystemMdi)
            {
                CloseAllDocuments();
            }

            dockPanel.DocumentStyle = newStyle;
            documentStyleDockingMDIToolStripMenuItem.Checked    = (newStyle == DocumentStyle.DockingMdi);
            documentStyleDockingWindowToolStripMenuItem.Checked = (newStyle == DocumentStyle.DockingWindow);
            documentStyleDockingSDIToolStripMenuItem.Checked    = (newStyle == DocumentStyle.DockingSdi);
            documentStyleSystemMDIToolStripMenuItem.Checked     = (newStyle == DocumentStyle.SystemMdi);
        }
コード例 #27
0
ファイル: ContainerWriter.cs プロジェクト: ridomin/waslibs
 private static ContainerStyle GetDocumentStyle(HtmlFragment fragment, DocumentStyle style)
 {
     if (style == null)
     {
         return null;
     }
     switch (fragment.Name.ToLowerInvariant())
     {
         case "div":
         case "tbody":
             return style.Div;
         case "ul":
             return style.Ul;
         case "ol":
             return style.Ol;
         case "dl":
             return style.Dl;
         case "section":
             return style.Section;
         case "article":
             return style.Article;
         case "header":
             return style.Header;
         case "footer":
             return style.Footer;
         case "main":
             return style.Main;
         case "figure":
             return style.Figure;
         case "details":
             return style.Details;
         case "summary":
             return style.Summary;
         default:
             return null;
     }
 }
コード例 #28
0
ファイル: HeaderWriter.cs プロジェクト: ridomin/waslibs
 private static ParagraphStyle GetDocumentStyle(HtmlFragment fragment, DocumentStyle style)
 {
     if (style == null)
     {
         return null;
     }
     switch (fragment.Name.ToLowerInvariant())
     {
         case "h1":
             return style.H1;
         case "h2":
             return style.H2;
         case "h3":
             return style.H3;
         case "h4":
             return style.H4;
         case "h5":
             return style.H5;
         case "h6":
             return style.H6;
         default:
             return null;
     }
 }
コード例 #29
0
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     ApplyParagraphStyles(ctrl as Paragraph, style.Dt);
 }
コード例 #30
0
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     ApplyTextStyles(ctrl as Span, style.Q);
 }
コード例 #31
0
ファイル: HtmlWriter.cs プロジェクト: yunfandev/waslibs
 public virtual void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
 }
コード例 #32
0
 protected abstract ImageStyle GetStyle(DocumentStyle style);
コード例 #33
0
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     ApplyParagraphStyles(ctrl as Paragraph, GetDocumentStyle(fragment, style));
 }
コード例 #34
0
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     ApplyParagraphStyles(ctrl as Paragraph, style.BlockQuote);
 }
コード例 #35
0
ファイル: YouTubeWriter.cs プロジェクト: ridomin/waslibs
 protected override ImageStyle GetStyle(DocumentStyle style)
 {
     return style.YouTube;
 }
コード例 #36
0
 protected override ImageStyle GetStyle(DocumentStyle style)
 {
     return(style.YouTube);
 }
コード例 #37
0
ファイル: ContainerWriter.cs プロジェクト: ridomin/waslibs
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     ApplyContainerStyles(ctrl as Grid, GetDocumentStyle(fragment, style));
 }
コード例 #38
0
ファイル: IFrameVideoWriter.cs プロジェクト: ridomin/waslibs
 protected abstract ImageStyle GetStyle(DocumentStyle style);
コード例 #39
0
ファイル: HtmlWriter.cs プロジェクト: ridomin/waslibs
 public virtual void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
 }
コード例 #40
0
ファイル: Channel9Writer.cs プロジェクト: ridomin/waslibs
 protected override ImageStyle GetStyle(DocumentStyle style)
 {
     return style.Channel9;
 }
コード例 #41
0
ファイル: IWriter.cs プロジェクト: ridomin/waslibs
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     ApplyTextStyles(ctrl as Span, style.Q);
 }
コード例 #42
0
ファイル: ContainerWriter.cs プロジェクト: yunfandev/waslibs
 public override void ApplyStyles(DocumentStyle style, DependencyObject ctrl, HtmlFragment fragment)
 {
     ApplyContainerStyles(ctrl as Grid, GetDocumentStyle(fragment, style));
 }
コード例 #43
0
ファイル: Channel9Writer.cs プロジェクト: yunfandev/waslibs
 protected override ImageStyle GetStyle(DocumentStyle style)
 {
     return(style.Channel9);
 }