FastColoredTextBoxNS.ExportToRTF.GetRtf C# (CSharp) Method

GetRtf() public method

public GetRtf ( FastColoredTextBox tb ) : string
tb FastColoredTextBox
return string
        public string GetRtf(FastColoredTextBox tb)
        {
            this.tb = tb;
            Range sel = new Range(tb);
            sel.SelectAll();
            return GetRtf(sel);
        }

Same methods

ExportToRTF::GetRtf ( Range r ) : string

Usage Example

示例#1
0
 public void ToRTF(ExportToRTF output, FastColoredTextBox source)
 {
     _fileBroker.SaveWithDialog(new RtfFileType(), output.GetRtf(source));
 }