LayoutFarm.Text.EditableTextFlowLayer.SetUseDoubleCanvas C# (CSharp) Method

SetUseDoubleCanvas() public method

public SetUseDoubleCanvas ( bool useWithWidth, bool useWithHeight ) : void
useWithWidth bool
useWithHeight bool
return void
        public void SetUseDoubleCanvas(bool useWithWidth, bool useWithHeight)
        {
            this.SetDoubleCanvas(useWithWidth, useWithHeight);
        }

Usage Example

 public TextEditRenderBox(RootGraphic rootgfx,
     int width, int height,
     bool isMultiLine)
     : base(rootgfx, width, height)
 {
     GlobalCaretController.RegisterCaretBlink(rootgfx);            
     myCaret = new CaretRenderElement(rootgfx, 2, 17);
     myCaret.TransparentForAllEvents = true;
     this.MayHasViewport = true;
     this.BackgroundColor = Color.White;// Color.Transparent;
     this.currentSpanStyle = new TextSpanStyle();
     this.currentSpanStyle.FontInfo = rootgfx.DefaultTextEditFontInfo;
     textLayer = new EditableTextFlowLayer(this);
     internalTextLayerController = new InternalTextLayerController(this, textLayer);
     this.isMultiLine = isMultiLine;
     if (isMultiLine)
     {
         textLayer.SetUseDoubleCanvas(false, true);
     }
     else
     {
         textLayer.SetUseDoubleCanvas(true, false);
     }
     this.IsBlockElement = false;
 }
All Usage Examples Of LayoutFarm.Text.EditableTextFlowLayer::SetUseDoubleCanvas