DataRegion Class |
Namespace: Aceoffix.WordWriter
The DataRegion type exposes the following members.
Name | Description | |
---|---|---|
![]() | CreateTable |
Creates a new Table in the current DataRegion.
|
![]() | OpenTable |
Opens the specified table.
|
![]() | SelectEnd |
Moves the cursor to the end of the current DataRegion.
|
![]() | SelectStart |
Moves the cursor to the start of the current DataRegion.
|
Name | Description | |
---|---|---|
![]() ![]() | Editing |
Sets or gets a value that indicates whether the DataRegion is editable.
|
![]() | Font |
Gets the font object.
|
![]() | Name |
Gets the name of the DataRegion.
|
![]() | ParagraphFormat |
Gets the ParagraphFormat object.
|
![]() | Shading |
Gets the Shading object.
|
![]() | SubmitAsFile |
Sets or gets a value that indicates whether the DataRegion is submitted as a Word file when saving.
|
![]() ![]() | Value |
Sets the value of the DataRegion.
|
Representing a DataRegion, DataRegion class is used to fill data into DataRegion and control behavior of DataRegion. You can only call the OpenDataRegion(String) method or the CreateDataRegion(String, DataRegionInsertType, String) method to get the DataRegion object.
What is the DataRegion? In Word document, developer can define any range of selection as a DataRegion object by inserting a bookmark with the prefix name "ACE_". In other words, the DataRegion is a bookmark object whose name begins with "ACE_" in Word document. DataRegion is an important object of Aceoffix. And in many cases, you need to call it to perform your operations in Word document.
The bookmark name of a DataRegion is "ACE_" + DataRegionName. For example, if you want to define a specified range as a DataRegion whose DataRegionName is "ProductName" in a Word document, you should manually insert a bookmark whose name is "ACE_ProductName" for the range before you OpenDocument this document.