public void Write(string value, int style) { if (string.IsNullOrEmpty(value)) return; this._styleRuns.Add(new StyleRun(value.Length, style)); if (this._stringBuilder != null) this._stringBuilder.Append(value); }