Click or drag to resize
DataRegion Class
DataRegion class represents a DataRegion.
Inheritance Hierarchy
SystemObject
  Aceoffix.WordWriterDataRegion

Namespace: Aceoffix.WordWriter
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public class DataRegion

The DataRegion type exposes the following members.

Methods
  NameDescription
Public methodCreateTable
Creates a new Table in the current DataRegion.
Public methodOpenTable
Opens the specified table.
Public methodSelectEnd
Moves the cursor to the end of the current DataRegion.
Public methodSelectStart
Moves the cursor to the start of the current DataRegion.
Top
Properties
  NameDescription
Public propertyCode exampleEditing
Sets or gets a value that indicates whether the DataRegion is editable.
Public propertyFont
Gets the font object.
Public propertyName
Gets the name of the DataRegion.
Public propertyParagraphFormat
Gets the ParagraphFormat object.
Public propertyShading
Gets the Shading object.
Public propertySubmitAsFile
Sets or gets a value that indicates whether the DataRegion is submitted as a Word file when saving.
Public propertyCode exampleValue
Sets the value of the DataRegion.
Top
Remarks

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.

See Also