UnsafeSetContentRuns() 공개 정적인 메소드

public static UnsafeSetContentRuns ( CssBox box, List runs, bool isAllWhitespace ) : void
box CssBox
runs List
isAllWhitespace bool
리턴 void
예제 #1
0
        public override void Clear()
        {
            base.Clear();
            var runlist = new List <CssRun>(1);

            runlist.Add(_imgRun);
            CssBox.UnsafeSetContentRuns(this, runlist, false);
        }
예제 #2
0
        /// <summary>
        /// Init.
        /// </summary>
        /// <param name="parent">the parent box of this box</param>
        /// <param name="controller">the html tag data of this box</param>
        public CssBoxImage(Css.BoxSpec boxSpec,
                           IRootGraphics rootgfx, ImageBinder binder)
            : base(boxSpec, rootgfx)
        {
            this._imgRun             = new CssImageRun();
            this._imgRun.ImageBinder = binder;
            this._imgRun.SetOwner(this);
            var runlist = new List <CssRun>(1);

            runlist.Add(_imgRun);
            CssBox.UnsafeSetContentRuns(this, runlist, false);
        }
예제 #3
0
        /// <summary>
        /// Init.
        /// </summary>
        /// <param name="parent">the parent box of this box</param>
        /// <param name="controller">the html tag data of this box</param>
        public CssBoxImage(Css.BoxSpec boxSpec,
                           ImageBinder binder)
            : base(boxSpec)
        {
            _imgRun              = new CssImageRun();
            _imgRun.ImageBinder  = binder;
            binder.ImageChanged += Binder_ImageChanged;
            _imgRun.SetOwner(this);
            //
            var runlist = new List <CssRun>(1);

            runlist.Add(_imgRun);
            CssBox.UnsafeSetContentRuns(this, runlist, false);
        }
예제 #4
0
 //---------------------------------------------------------------------------------------
 public static void AddRunList(CssBox toBox,
                               BoxSpec spec,
                               List <CssRun> runlist,
                               char[] buffer,
                               bool isAllWhitespace)
 {
     CssBox.UnsafeSetTextBuffer(toBox, buffer);
     if (runlist != null)
     {
         for (int i = runlist.Count - 1; i >= 0; --i)
         {
             runlist[i].SetOwner(toBox);
         }
     }
     CssBox.UnsafeSetContentRuns(toBox, runlist, isAllWhitespace);
 }