CreateWrapper() публичный статический Метод

public static CreateWrapper ( object owner, RenderElement renderElement, BoxSpec spec, bool isInline ) : CssBox
owner object
renderElement RenderElement
spec LayoutFarm.Css.BoxSpec
isInline bool
Результат LayoutFarm.HtmlBoxes.CssBox
Пример #1
0
 internal override CssBox GetPrincipalBox(CssBox parentCssBox, HtmlHost host)
 {
     if (this.CurrentPrincipalBox != null)
     {
         return(this.CurrentPrincipalBox);
     }
     else
     {
         _lazyCreator(parentCssBox.GetInternalRootGfx(), out RenderElement re, out object controller);
         CssBox wrapper = CustomCssBoxGenerator.CreateWrapper(((HtmlDocument)this.OwnerDocument).Host, controller, re, this.Spec, false);
         this.SetPrincipalBox(wrapper);
         return(wrapper);
     }
 }
Пример #2
0
 internal override CssBox GetPrincipalBox(CssBox parentCssBox, HtmlHost host)
 {
     if (this.CurrentPrincipalBox != null)
     {
         return(this.CurrentPrincipalBox);
     }
     else
     {
         RenderElement re;
         object        controller;
         lazyCreator((RootGraphic)parentCssBox.RootGfx, out re, out controller);
         CssBox wrapper = CustomCssBoxGenerator.CreateWrapper(controller, re, this.Spec, false);
         this.SetPrincipalBox(wrapper);
         return(wrapper);
     }
 }