예제 #1
0
파일: StyleRule.cs 프로젝트: yazici/SVG
 public override string ToString(bool friendlyFormat, int indentation = 0)
 {
     return(_value.NewLineIndent(friendlyFormat, indentation) +
            "{" +
            _declarations.ToString(friendlyFormat, indentation) +
            "}".NewLineIndent(friendlyFormat, indentation));
 }
예제 #2
0
파일: PageRule.cs 프로젝트: eastfivellc/svg
        public override string ToString(bool friendlyFormat, int indentation = 0)
        {
            var pseudo = string.IsNullOrEmpty(_selectorText)
                             ? ""
                             : ":" + _selectorText;

            var declarations = _declarations.ToString(friendlyFormat, indentation);//.TrimFirstLine();

            return(("@page " + pseudo + "{").NewLineIndent(friendlyFormat, indentation) +
                   declarations +
                   "}".NewLineIndent(friendlyFormat, indentation));
        }
예제 #3
0
파일: FontFaceRule.cs 프로젝트: yazici/SVG
 public override string ToString(bool friendlyFormat, int indentation = 0)
 {
     return("@font-face{".NewLineIndent(friendlyFormat, indentation) +
            _declarations.ToString(friendlyFormat, indentation) +
            "}".NewLineIndent(friendlyFormat, indentation));
 }