コード例 #1
0
 public HyperlinksAndBookmarks()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("Hyperlinks.docx", richEdit);
     ribbonControl1.SelectedPage = pageInsert;
     InsertLinksInDocument();
 }
コード例 #2
0
 public LayoutAPI()
 {
     DataContext          = this;
     this.layoutInfoItems = GetLayoutInfoItems();
     InitializeComponent();
     OpenXmlLoadHelper.Load("FloatingObjects.docx", richEdit);
     richEdit.DocumentLayout.DocumentFormatted += DocumentLayout_DocumentFormatted;
 }
コード例 #3
0
        public TableOfContents()
        {
            InitializeComponent();
            ribbon.SelectedPage = pageReferences;
            isFirstLoad         = true;

            OpenXmlLoadHelper.Load("TableOfContents.docx", sourceRichEditControl);
            NWind   = Resources["NWindDataLoader"] as NWindDataLoader;
            this.ds = NWindContext.Create().Employees.ToList();

            IUriStreamService uriService = (IUriStreamService)sourceRichEditControl.GetService(typeof(IUriStreamService));

            uriService.RegisterProvider(new DBUriStreamProviderBase <DevExpress.DemoData.Models.Employee>(NWindContext.Create().Employees.ToList(),
                                                                                                          (es, id) => es.First(e => e.EmployeeID == id).Photo));
        }
コード例 #4
0
 void richEdit_Loaded(object sender, RoutedEventArgs e)
 {
     richEdit.DocumentLoaded            += OnRichEditControlDocumentLoaded;
     richEdit.DocumentProtectionChanged += OnRichEditControlDocumentProtectionChanged;
     OpenXmlLoadHelper.Load("DocumentProtection.docx", richEdit);
 }
コード例 #5
0
 public ThirdPartyComments()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("Comments.docx", richEditControl1);
     ribbonControl1.SelectedPage = pageReview;
 }
コード例 #6
0
 public LineNumbering()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("LineNumbering.docx", richEdit);
 }
コード例 #7
0
 public HeadersAndFooters()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("HeadersFooters.docx", richEdit);
     ribbonControl1.SelectedPage = pageInsert;
 }
コード例 #8
0
 public Tables()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("ActiveCustomers.docx", richEdit);
 }
コード例 #9
0
 public RibbonUI()
 {
     InitializeComponent();
     this.spellChecker = SpellChecking.InitializeSpellChecker();
     OpenXmlLoadHelper.Load("MovieRentals.docx", richEdit);
 }
コード例 #10
0
 public AutoCorrect()
 {
     InitializeComponent();
     this.spellChecker = SpellChecking.InitializeSpellChecker();
     OpenXmlLoadHelper.Load("AutoCorrect.docx", richEdit);
 }
コード例 #11
0
 public FloatingObjects()
 {
     InitializeComponent();
     OpenXmlLoadHelper.Load("FloatingObjects.docx", richEdit);
 }