Exemplo n.º 1
0
        private void ClearMailContentsBox()
        {
            DocumentPosition start = rtbMailContent.Document.CaretPosition;

            start.MoveToFirstPositionInDocument();
            DocumentPosition end = new DocumentPosition(start);

            end.MoveToLastPositionInDocument();
            rtbMailContent.Document.DeleteRange(start, end);
        }