protected override void InitializeFields() { base.InitializeFields(); this.StretchHorizontally = false; this.StretchVertically = false; this.textPrimitiveImpl = (ITextPrimitive) new TextPrimitiveImpl(); }
public void ToggleHTML(string text) { this.useHTMLRendering = TinyHTMLParsers.IsHTMLMode(text); if (!this.DisableHTMLRendering) { this.textPrimitiveImpl = TextPrimitiveFactory.CreateTextPrimitiveImp(TinyHTMLParsers.IsHTMLMode(text)); } }