Ejemplo n.º 1
0
 static void InsertCheckBox(RichEditDocumentServer wordProcessor)
 {
     #region #InsertCheckbox
     DocumentPosition currentPosition = wordProcessor.Document.Range.Start;
     DevExpress.XtraRichEdit.API.Native.CheckBox checkBox = wordProcessor.Document.FormFields.InsertCheckBox(currentPosition);
     checkBox.Name         = "check1";
     checkBox.State        = CheckBoxState.Checked;
     checkBox.SizeMode     = CheckBoxSizeMode.Auto;
     checkBox.HelpTextType = FormFieldTextType.Custom;
     checkBox.HelpText     = "help text";
     #endregion #InsertCheckbox
 }
 static void CreateCheckbox(Document document)
 {
     #region #CreateCheckbox
     DocumentPosition currentPosition = document.CaretPosition;
     DevExpress.XtraRichEdit.API.Native.CheckBox checkBox = document.FormFields.InsertCheckBox(currentPosition);
     checkBox.Name         = "check1";
     checkBox.State        = CheckBoxState.Checked;
     checkBox.SizeMode     = CheckBoxSizeMode.Auto;
     checkBox.HelpTextType = FormFieldTextType.Custom;
     checkBox.HelpText     = "help text";
     #endregion #CreateCheckbox
 }
Ejemplo n.º 3
0
 static void InsertChechBox(Document document)
 {
     #region #InsertCheckBox
     DocumentPosition currentPosition = document.CaretPosition;
     SubDocument      currentDocument = currentPosition.BeginUpdateDocument();
     DevExpress.XtraRichEdit.API.Native.CheckBox checkBox = document.FormFields.InsertCheckBox(currentPosition);
     checkBox.Name         = "check1";
     checkBox.State        = CheckBoxState.Checked;
     checkBox.SizeMode     = CheckBoxSizeMode.Auto;
     checkBox.HelpTextType = FormFieldTextType.Custom;
     checkBox.HelpText     = "help text";
     currentPosition.EndUpdateDocument(currentDocument);
     #endregion #InsertCheckBox
 }