Ejemplo n.º 1
0
        public string Print(CSSPrintOptions options =
                            CSSPrintOptions.Layout | CSSPrintOptions.Style | CSSPrintOptions.Children)
        {
            StringBuilder sb = new StringBuilder();

            CSSLogger.Logger = (message) => { sb.Append(message); };
            Native.CSSNodePrint(_cssNode, options);
            CSSLogger.Logger = null;
            return(sb.ToString());
        }
Ejemplo n.º 2
0
        public string Print(CSSPrintOptions options)
        {
// END_UNITY
            StringBuilder sb = new StringBuilder();

            CSSLogger.Func orig = CSSLogger.Logger;
            CSSLogger.Logger = (level, message) => { sb.Append(message); };
            Native.CSSNodePrint(_cssNode, options);
            CSSLogger.Logger = orig;
            return(sb.ToString());
        }
Ejemplo n.º 3
0
        public string Print(CSSPrintOptions options)
        {
            StringBuilder sb = new StringBuilder();

            CSSLogger.Func logger = CSSLogger.Logger;
            CSSLogger.Logger = delegate(CSSLogLevel level, string message)
            {
                sb.Append(message);
            };
            Native.CSSNodePrint(this._cssNode, options);
            CSSLogger.Logger = logger;
            return(sb.ToString());
        }
Ejemplo n.º 4
0
 public static extern void CSSNodePrint(IntPtr node, CSSPrintOptions options);
Ejemplo n.º 5
0
 public static extern void CSSNodePrint(IntPtr node, CSSPrintOptions options);