public static UnsafeSetContentRuns ( |
||
box | ||
runs | List |
|
isAllWhitespace | bool | |
리턴 | void |
public override void Clear() { base.Clear(); var runlist = new List <CssRun>(1); runlist.Add(_imgRun); CssBox.UnsafeSetContentRuns(this, runlist, false); }
/// <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); }
/// <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); }
//--------------------------------------------------------------------------------------- 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); }