■ RichEditControl 클래스에서 InsertFieldCommand 객체를 통해 필드를 삽입하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
using DevExpress.Xpf.RichEdit; using DevExpress.XtraRichEdit.Commands; RichEditControl richEditControl = new RichEditControl(); ... InsertFieldCommand insertFieldCommand = new InsertFieldCommand(richEditControl); insertFieldCommand.FieldCode = @"DATE \@ ""dddd, MMMMdd, yyyy HH:mm:ss"""; insertFieldCommand.Execute(); |