Syncfusion.DocIO.Base Contains utility methods for object cloning. Clones int array. Array to clone Returns cloned array. Clones ushort array. Array to clone. Returns cloned array. Clones string array. Array to clone. Returns cloned array. Clones object array. Array to clone. Returns cloned array. Clones object that implements ICloneable interface. Object to clone. A clone of the object. Clones byte array. Array to clone. Return cloned array. Clone Dictionary. Dictionary to clone Returns a copy of the Dictionary. Clone Dictionary. Dictionary to clone Returns a copy of the Dictionary. Creates copy of the stream. Stream to copy. Created stream. Summary description for DocumentPropertyImpl. Represents single document property. Indicates whether property is built-in. Read-only. Returns property id for built-in properties. Read-only. Returns property name. Read-only. Gets / sets property value. Gets / sets boolean value. Gets / sets integer value. Gets / sets 4-bytes signed integer value. Gets / sets double value. Gets / sets string value. Gets / sets DateTime value. Gets / sets TimeSpan value. Returns or sets the source of a linked custom document property. Read/write String. True if the value of the custom document property is linked to the content of the container document. False if the value is static. Read/write Boolean. Start index for Id2 PropVariant property. Start year for FILETIME structure. Property id. Property name. Property value. Property type. The source of a linked custom document property. Read/write String. True if the value of the custom document property is linked to the content of the container document. False if the value is static. Read/write Boolean. Default constructor. Initializes new instance of the class. Property name. Property value. Initializes new instance of the class. Property id. Property value. Initializes new instance of the document property. Variant that contains property data. Indicates whether property is from document summary or not (only for built-int properties). Detects type of the string. String value to check. Detected string type. Copies document property data into PropVariant. Destination object. PropertyId for custom properties. True if was able to fill variant; false otherwise. Converts propertyId into correct index. PropertyId to convert. [out] Indicates whether this is document summary property of simply document property. Correct property index. Tries to detect and set property type. Sets value of LinkSource property. Variant that contains value to set. Saves property into IPropertyStorage. Storage to save into. Property variant used as buffer. Property id for custom properties. Creates a new object that is a copy of the current instance. A new object that is a copy of this instance. Creates copy of the internal value. Indicates whether property is built-in. Read-only. Returns / sets property id for built-in properties. Returns property name. Read-only. Gets / sets property value. Gets / sets boolean value. Gets / sets integer value. Gets / sets 4-bytes signed integer value. Gets / sets double value. Gets / sets string value. Gets / sets DateTime value. Gets / sets TimeSpan value. Gets / sets Blob value. Gets or sets clipboard data value. Gets / sets array of strings. Gets / sets array of objects. Supported object types are string and Int32. Gets / sets document property type. Returns or sets the source of a linked custom document property. Read/write String. True if the value of the custom document property is linked to the content of the container document. False if the value is static. Read/write Boolean. Internal name of the document property. Property IDs for the SummaryInformation Property Set. Title document property Id. Subject document property Id. Author document property Id. Keywords document property Id. Comments document property Id. Template document property Id. LastAuthor document property Id. Revnumber document property Id. EditTime document property Id. LastPrinted document property Id. CreationDate document property Id. LastSaveDate document property Id. PageCount document property Id. WordCount document property Id. CharCount document property Id. Thumbnail document property Id. ApplicationName document property Id. Ssecurity document property Id. Category Id. Target format for presentation (35mm, printer, video, and so on) id. ByteCount Id. LineCount Id. ParCount Id. SlideCount Id. NoteCount Id. HiddenCount Id. MmclipCount Id. ScaleCrop property Id. HeadingPair Id. DocParts Id. Manager Id. Company Id. LinksDirty Id. The character count with space Enumeration with all supported property types. Indicates a Boolean value. Indicates an integer value. Indicates a 4-bytes signed integer value. Indicates a 2-bytes signed interger value. Indicates a 4-bytes unsigned interger value. Indicates a wide string terminated by a null. Indicates a string terminated by a null. Indicates a FILETIME value. Indicates length prefixed bytes. Indicates a simple, counted array. Indicates an object. Indicates a double value. Indicates an empty value. Indicates null value. Indicates clipboard data. Indicates an array of strings. Indicates an array of strings. Indicates an array of objects. Supported types are string and integer values. This interface represents stream in the compound file. Name of the stream. Initializes new instance of the compound stream object. Name of the stream. Copies stream content into another stream object. Stream to copy data into. Returns name of the stream. This interface gives access to compound file functionality. Flushes content into internal buffer. Saves compound file into stream Stream to save data into. Saves compound file into file. Name of the file to save into. Returns root storage object for this file. Gets the directory. The directory. This interface represents storage object in the compound file. Creates new stream inside this storage. Name of the stream to create. Created stream object. Opens existing stream inside this storage. Name of the stream to open. Removes existing stream from this storage. Name of the stream to remove. Determines whether storage contains specified stream. Name of the stream to check. true if storage contains specified stream. Creates new substorage inside this one. Name of the storage to create. Created storage object. Opens existing substorage inside this one. Name of the storage to open. Created storage object. Removes exisiting substorage from this one. Name of the storage to remove. Determines whether this storage contains substorage with specified name. Name of the storage to check. true if storage contains substorage with specified name. Commits changes. Inserts copy of the storage and all subitems inside current storage. Storage to copy. Inserts copy of the stream inside current storage. Stream to copy. Returns all stream names that are placed inside this stream. Returns all storage names that are placed inside this stream. Returns name of the storage. This exception should be thrown when lock or share violation has occured. Usually this happens when user tries to create storage on file opened by somebody else. Default message. Message for exception message with record code. Initializes a new instance of the class with default error message. Initializes a new instance of the class with a specified error message. Error message. Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. The error message that explains the reason for the exception. The exception that is the cause of the current exception. If the innerException parameter is not a NULL reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. Special wrapper class that allows users to control access to stream and cache data. Default buffer allocation size. Underlying stream. Close sets _s to NULL. Shared read / write buffer. Allocated on first use. Read pointer within shared buffer. Number of bytes read in buffer from _s. Write pointer within shared buffer. Length of internal buffer if it is allocated. Stream position when the buffer is read. Default constructor. Hidden to class users. Initialize class by stream and DefaultBufferSize == 4096. Stream which our class must wrap. Initialize class by instance of stream and user defined cache size. Stream which our class must wrap. User defined cache size. Stream does not support Read and Write operations. BufferSize is equal or less than zero. Reads data from the stream. If data is cached, the class will not call wrapped stream and will simply return a copy of cached data. Output buffer. Offset in output buffer where data from stream must be placed. Count of bytes which class must return. Quantity of read bytes. Reads a byte from the underlying stream. Returns an int (byte cast to an int) or -1 if it is the end of the stream. Read byte. Writes portion of data into a wrapped stream. Data will be cached if it is possible. It will then be saved to the wrapped stream on Flush. Array containing data. Offset to the beginning of the portion of data. Number of bytes in the portion of data. If array or stream is NULL. If offset or count is less than zero. If array does not contain the required element count. Write one byte of information into stream. Value which must be written. If stream is NULL. If can't write into stream. On any Seek operation, data not written from cache will be flushed to the wrapped stream. Using the Position property is better as it is optimized for cache use. New offset of stream. Start point of seek operation. Current position. If stream is NULL. If can't seek in the stream. Saves all the data from cache and closes the stream. Flushes data and resets the cache. When stream is NULL. The file is read in blocks, but a user could read 1 byte from the buffer and write it. At that point, the Operating System's file pointer is out of sync with the stream's position. Hence, all write functions should call this function to preserve the position in the file. Since Write is buffered, any time the buffer fills up or the buffer switches to reading and there is dirty data (_writePos > 0), this function must be called. Sets length of wrapped stream. New length of stream. When value is less than zero. When stream is NULL. Cannot seek or cannot write into stream. Indicates whether data can be read from the wrapped stream. True if data can be read. Class instance was disposed. Indicates whether data can be written to wrapped stream. Class instance was disposed. Indicates whether the wrapped stream supports Seek operations. Class instance was disposed. Gets length of the wrapped stream. When this property is accessed, the data that is not written to the stream is first flushed. Class instance was disposed. Gets the current position of stream. Position can be different from the value in wrapped stream, because wrapped stream will point to the last byte of the cached data. When this property is set, the data that is not written is flushed to the stream. Class instance was disposed. Wrapped stream does not support seek operation. Get reference of stream wrapped by BufferStreamEx. This is compound file implementation based on standard COM-objects. Root storage. Represents the locking bytes. Default constructor. Creates native compound file in memory. Creates new instance of the compound file based on the specified stream. Stream to extract data from. Creates new instance of the compound file based on the file name and open flags. Name of the file to parse. Storage options. Flushes all internal buffers. Cretes storage on ILockBytes. Created storage. Saves internal ILockBytes into stream. Stream to save into. Opens specified stream. Stream to open. Saves compound file into stream Stream to save data into. Saves compound file into file. Name of the file to save into. Frees all allocated resources. Gets the directory Returns root storage object for this file. Summary description for ILockBytes. The ReadAt method reads a specified number of bytes starting at a specified offset from the beginning of the byte array object. Specifies the starting point from the beginning of the byte array for reading data. Pointer to the buffer into which the byte array is read. The size of this buffer is contained in cb. Specifies the number of bytes of data to attempt to read from the byte array. Pointer to a ULONG where this method writes the actual number of bytes read from the byte array. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes that were read. S_OK - Indicates that the specified number of bytes were read, or the maximum number of bytes were read to the end of the byte array. E_FAIL - Data could not be read from the byte array. E_PENDING - Asynchronous Storage only: Part or all of the data to be read is currently unavailable. STG_E_ACCESSDENIED - The caller does not have permission to access the byte array. STG_E_READFAULT - The number of bytes to be read does not equal the number of bytes that were actually read The WriteAt method writes the specified number of bytes starting at a specified offset from the beginning of the byte array. Specifies the starting point from the beginning of the byte array for the data to be written. Pointer to the buffer containing the data to be written. Specifies the number of bytes of data to attempt to write into the byte array. Pointer to a location where this method specifies the actual number of bytes written to the byte array. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes written. S_OK - Indicates that the specified number of bytes were written. E_FAIL - A general failure occurred during the write operation. E_PENDING - Asynchronous Storage only: Part or all of the data to be written is currently unavailable. STG_E_ACCESSDENIED - The caller does not have enough permissions for writing this byte array. STG_E_WRITEFAULT - The number of bytes to be written does not equal the number of bytes that were actually written. STG_E_MEDIUMFULL - The write operation was not completed because there is no space left on the storage device. The actual number of bytes written is still returned in pcbWritten. The Flush method ensures that any internal buffers maintained by the ILockBytes implementation are written out to the underlying physical storage. S_OK - The flush operation was successful. STG_E_ACCESSDENIED - The caller does not have permission to access the byte array. STG_E_MEDIUMFULL - The flush operation is not completed because there is no space left on the storage device. E_FAIL - General failure writing data. STG_E_TOOMANYFILESOPEN - Under certain circumstances, the Flush method executes a download-and-closeto flush, which can lead to a return value of STG_E_TOOMANYFILESOPEN if no file handles are available. STG_E_INVALIDHANDLE - An underlying file has been prematurely closed, or the correct floppy disk has been replaced by an invalid one. The SetSize method changes the size of the byte array. Specifies the new size of the byte array as a number of bytes. S_OK - The size of the byte array was successfully changed. STG_E_ACCESSDENIED - The caller does not have permission to access the byte array. STG_E_MEDIUMFULL - The byte array size is not changed because there is no space left on the storage device. The LockRegion method restricts access to a specified range of bytes in the byte array. Specifies the byte offset for the beginning of the range. Specifies, in bytes, the length of the range to be restricted. Specifies the type of restrictions being requested on accessing the range. This parameter uses one of the values from the LOCKTYPE enumeration. S_OK - The specified range of bytes was locked STG_E_INVALIDFUNCTION - Locking is not supported at all or the specific type of lock requested is not supported. STG_E_ACCESSDENIED - Access denied because the caller has insufficient permission, or another caller has the file open and locked. STG_E_LOCKVIOLATION - Access denied because another caller has the file open and locked. STG_E_INVALIDHANDLE - An underlying file has been prematurely closed, or the correct floppy disk has been replaced by an invalid one The UnlockRegion method removes the access restriction on a previously locked range of bytes. Specifies the byte offset for the beginning of the range. Specifies, in bytes, the length of the range that is restricted. Specifies the type of access restrictions previously placed on the range. This parameter uses a value from the LOCKTYPE enumeration. S_OK - The byte range was unlocked. STG_E_INVALIDFUNCTION - Locking is not supported at all or the specific type of lock requested is not supported. STG_E_LOCKVIOLATION The requested unlock cannot be granted. The Stat method retrieves a STATSTG structure containing information for this byte array object. Pointer to a STATSTG structure in which this method places information about this byte array object. The pointer is NULL if an error occurs. Specifies whether this method should supply the pwcsName member of the STATSTG structure through values taken from the STATFLAG enumeration. If the STATFLAG_NONAME is specified, the pwcsName member of STATSTG is not supplied, thus saving a memory-allocation operation. The other possible value, STATFLAG_DEFAULT, indicates that all members of the STATSTG structure be supplied. S_OK - The STATSTG structure was successfully returned at the specified location. E_OUTOFMEMORY - The STATSTG structure was not returned due to a lack of memory for the name member in the structure. STG_E_ACCESSDENIED - The STATSTG structure was not returned because the caller did not have access to the byte array. STG_E_INSUFFICIENTMEMORY - The STATSTG structure was not returned, due to insufficient memory. STG_E_INVALIDFLAG - The value for the grfStateFlag parameter is not valid. STG_E_INVALIDPOINTER - The value for the pStatStg parameter is not valid. Implementation of compound stream based on standard COM object. Stream position. Initializes new instance of the stream object. COM stream to use. Name of the stream. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies length bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. Clears all buffers for this stream and causes any buffered data to be written to the underlying device. Releases the unmanaged resources used by the Stream and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. Checks whether offset and length can be fit inside specified buffer. Buffer to check. Offset to check. Length to check. Gets the length in bytes of the stream. Gets or sets the position within the current stream. Gets a value indicating whether the current stream supports reading. Gets a value indicating whether the current stream supports writing. Gets a value indicating whether the current stream supports seeking. The STGTY enumeration values are used in the type member of the STATSTG structure to indicate the type of the storage element. Indicates that the storage element is a storage object. Indicates that the storage element is a stream object. Indicates that the storage element is a byte-array object. Indicates that the storage element is a property storage object. The STREAM_SEEK enumeration values specify the origin from which to calculate the new seek-pointer location. The new seek pointer is an offset relative to the beginning of the stream. In this case, the dlibMove parameter is the new seek position relative to the beginning of the stream. The new seek pointer is an offset relative to the current seek pointer location. In this case, the dlibMove parameter is the signed displacement from the current seek position. The new seek pointer is an offset relative to the end of the stream. In this case, the dlibMove parameter is the new seek position relative to the end of the stream. The LOCKTYPE enumeration values indicate the type of locking requested for the specified range of bytes. If this lock is granted, the specified range of bytes can be opened and read any number of times, but writing to the locked range is prohibited except for the owner who granted this lock. If this lock is granted, writing to the specified range of bytes is prohibited except by the owner granted this lock. If this lock is granted, no other LOCK_ONLYONCE lock can be obtained on the range. Usually this lock type is an alias for some other lock type. Thus, specific implementations can have additional behavior associated with this lock type. The STGM enumeration values are used in the IStorage, IStream, and IPropertySetStorage interfaces. These elements are often combined using an OR operator. Indicates that the object is read-only, meaning that modifications cannot be made. STGM_WRITE lets you save changes to the object, but does not permit access to its data. STGM_READWRITE allows you to both access and modify an object's data. Specifies that subsequent openings of the object are not denied read or write access. If no flag from the sharing group is specified, this flag is assumed. Prevents others from subsequently opening the object in STGM_READ mode. It is typically used on a root storage object. Prevents others from subsequently opening the object for STGM_WRITE or STGM_READWRITE access. Prevents others from subsequently opening the object in any mode. In transacted mode, sharing of STGM_SHARE_DENY_WRITE or STGM_SHARE_EXCLUSIVE can significantly improve performance since they don't require snapshotting. Opens the storage object with exclusive access to the most recently committed version. Indicates that an existing storage object or stream should be removed before the new one replaces it. Creates the new object while preserving existing data in a stream named "Contents". Causes the create operation to fail if an existing object with the specified name exists. In direct mode, each change to a storage or stream element is written as it occurs. In transacted mode, changes are buffered and written only if an explicit commit operation is called. In transacted mode, a temporary scratch file is usually used to save modifications until the Commit method is called. This flag is used when opening a storage object with STGM_TRANSACTED and without STGM_SHARE_EXCLUSIVE or STGM_SHARE_DENY_WRITE. STGM_SIMPLE is a mode that provides a much faster implementation of a compound file in a limited, but frequently used case. The STGM_DIRECT_SWMR supports direct mode for single-writer, multireader file operations. Indicates that the underlying file is to be automatically destroyed when the root storage object is released. The STGFMT enumeration values specify the format of a storage object and are used in the StgCreateStorageEx and StgOpenStorageEx functions in the STGFMT parameter. Indicates that the file must be a compound file. Indicates that the file must not be a compound file. Indicates that the system will determine the file type and use the appropriate structured storage or property set implementation. Indicates that the file must be a compound file and is similar to the STGFMT_STORAGE flag, but indicates that the compound-file form of the compound-file implementation must be used. Error code which StgOpenStorage method can return after execution. Success code. Filed. Access Denied. File already exists. File could not be found. There is insufficient memory available to complete operation. Invalid flag error. Unable to perform requested operation. Attempted an operation on an invalid object. The name is not valid. Invalid pointer error. A lock violation has occurred. The compound file was not created with the STGM_SIMPLE flag. The compound file was produced with a newer version of storage. The compound file was produced with an incompatible version of storage. The path could not be found. A share violation has occurred. There are insufficient resources to open another file. The STGC enumeration constants specify the conditions for performing the commit operation in the IStorage::Commit and IStream::Commit methods. You can specify this condition with STGC_CONSOLIDATE or some combination of the other three flags in this list of elements. The commit operation can overwrite existing data to reduce overall space requirements. Prevents multiple users of a storage object from overwriting each other's changes. Commits the changes to a write-behind disk cache, but does not save the cache to the disk. Microsoft Windows 2000/XP: Indicates that a storage should be consolidated after it is committed, resulting in a smaller file on disk. Property IDs for the SummaryInformation Property Set. Title Id. Subject Id. Author Id. Keywords Id. Comments Id. Template Id. LastAuthor Id. Revnumber Id. EditTime Id. LastPrinted Id. Create_dtm Id. LastSave_dtm Id. Pagecount Id. Wordcount Id. Charcount Id. Thumbnail Id. Appname Id. Doc_security Id. Property IDs for the DocSummaryInformation Property Set. Category Id. PresFormat Id. ByteCount Id. LineCount Id. ParCount Id. SlideCount Id. NoteCount Id. HiddenCount Id. MmclipCount Id. Scale Id. HeadingPair Id. DocParts Id. Manager Id. Company Id. LinksDirty Id. Reserved global Property IDs. PID_DICTIONARY Id. PID_CODEPAGE Id. PID_FIRST_USABLE Id. PID_FIRST_NAME_DEFAULT Id. PID_LOCALE Id. PID_MODIFY_TIME Id. PID_SECURITY Id. PID_BEHAVIOR Id. PID_ILLEGAL Id. PID_MIN_READONLY Id. PID_MAX_READONLY Id. PRSPEC property ids. INVALID Id. LPWSTR Id. PROPID Id. The STATSTG structure contains statistical information about an open storage, stream, or byte-array object. Pointer to a NULL-terminated Unicode string containing the name. Space for this string is allocated by the method called and freed by the caller Indicates the type of storage object. This is one of the values from the STGTY enumeration. Specifies the size in bytes of the stream or byte array. Indicates the last modification time for this storage, stream, or byte array. Indicates the creation time for this storage, stream, or byte array. Indicates the last access time for this storage, stream or byte array. Indicates the access mode specified when the object was opened. This member is only valid in calls to Stat methods. Indicates the types of region locking supported by the stream or byte array. See the LOCKTYPE enumeration for the values available. This member is not used for storage objects. Indicates the class identifier for the storage object; set to CLSID_NULL for new storage objects. This member is not used for streams or byte arrays. Indicates the current state bits of the storage object; that is, the value most recently set by the IStorage::SetStateBits method. This member is not valid for streams or byte arrays. Reserved for future use. Structure that is used by STG API. Structure that is used by STG API. uint parameter. uint parameter. OLECHAR parameter. Macros for parsing the OS Version of the Property Set Header. Time in UTC when this property set was last accessed. CLSID associated with this property set, specified when the property set was initially created and possibly modified thereafter with IPropertyStorage::SetClass. If not set, the value will be CLSID_NULL. Time in UTC when this property set was created. Os vorsion. FMTID of the current property set, specified when the property set was initially created. Flag values of the property set, as specified in IPropertySetStorage::Create. Time in Universal Coordinated Time (UTC) when the property set was last modified. The STATPROPSTG structure contains data about a single property in a property set. This data is the property ID and type tag, and the optional string name that may be associated with the property. A wide-character null-terminated Unicode string that contains the optional string name associated with the property. May be NULL. A 32-bit identifier that uniquely identifies the property within the property set. All properties within property sets must have unique property identifiers. The property type. The PROPSPEC structure is used by many of the methods of IPropertyStorage to specify a property either by its property identifier (ID) or the associated string name. Indicates the union member used. This member can be one of the following values. Specifies the value of the property ID. Use either this value or the following lpwstr, not both. This enumeration is used in VARIANT, TYPEDESC, OLE property sets, and safe arrays. Variable type is not specified. Variable type is 4-byte signed INT. Variable type is date. Variable type is binary string. Variable type is Boolean; True=-1, False=0. Variable type is VARIANT FAR*. Variable type is int. Variable type is LPSTR. Variable type is LPWSTR Variable type is FILENAME string. Variable type is binary VECTOR. The IEnumSTATSTG interface enumerates an array of STATSTG structures. These structures contain statistical data about open storage, stream, or byte array objects. IEnumSTATSTG has the same methods as all enumerator interfaces: Next, Skip, Reset, and Clone. The Next method retrieves a specified number of STATSTG structures, that follow subsequently in the enumeration sequence. If there are fewer than the requested number of STATSTG structures left in the enumeration sequence, it retrieves the remaining STATSTG structures. The number of STATSTG structures requested. An array of STATSTG structures returned. The number of STATSTG structures retrieved in the rgelt parameter. S_OK - The number of STATSTG structures returned equals the number specified in the celt parameter. S_FALSE - The number of STATSTG structures returned is less than the number specified in the celt parameter. The Skip method skips a specified number of STATSTG structures in the enumeration sequence. The number of STATSTG structures to skip. S_OK - The specified number of STATSTG structures were successfully skipped. S_FALSE - The number of STATSTG structures skipped is less than the celt parameter. The Reset method resets the enumeration sequence to the beginning of the STATSTG structure array. S_OK - The enumeration sequence was successfully reset to the beginning of the enumeration. The Clone method creates a new enumerator that contains the same enumeration state as the current STATSTG structure enumerator. Using this method, a client can record a particular point in the enumeration sequence and then return to that point at a later time. The new enumerator supports the same IEnumSTATSTG interface. A pointer to the variable that receives the IEnumSTATSTG interface pointer. If the method is unsuccessful, the value of the ppenum parameter is undefined. E_INVALIDARG - The ppenum parameter is NULL. E_OUTOFMEMORY - Insufficient memory. E_UNEXPECTED - An unexpected exception occurred. For more information, refer to documentation on MSDN for interface with the same name. Reads a specified number of bytes from the stream object into memory starting at the current seek pointer. [out] Pointer to the buffer into which the stream data is read. [in] Specifies the number of bytes of data to attempt to read from the stream object. [out] Pointer to a ULONG variable that receives the actual number of bytes read from the stream object. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes read. S_OK Data was successfully read from the stream object. S_FALSE The data could not be read from the stream object. E_PENDING Asynchronous storage only: Part or all of the data to be read is currently unavailable. For more information, see IFillLockBytes and Asynchronous Storage. STG_E_ACCESSDENIED The caller does not have enough permissions for reading this stream object. STG_E_INVALIDPOINTER One of the pointer values is not valid. STG_E_REVERTED The object has been invalidated by a revert operation above it in the transaction tree. Writes a specified number of bytes into the stream object starting at the current seek pointer. [in] Pointer to the buffer containing the data that is to be written to the stream. A valid pointer must be provided for this parameter even when cb is zero. [in] The number of bytes of data to attempt to write into the stream. Can be zero. [out] Pointer to a ULONG variable where this method writes the actual number of bytes written to the stream object. The caller can set this pointer to NULL, in which case this method does not provide the actual number of bytes written. S_OK The data was successfully written to the stream object. E_PENDING Asynchronous Storage only: Part or all of the data to be written is currently unavailable. For more information, see IFillLockBytes and Asynchronous Storage. STG_E_MEDIUMFULL The write operation was not completed because there is no space left on the storage device. STG_E_ACCESSDENIED The caller does not have enough permissions for writing to this stream object. STG_E_CANTSAVE Data cannot be written for reasons other than improper access or insufficient space. STG_E_INVALIDPOINTER One of the pointer values is not valid. The pv parameter must contain a valid pointer even if cb is zero. STG_E_REVERTED The object has been invalidated by a revert operation above it in the transaction tree. STG_E_WRITEFAULT The write operation was not completed due to a disk error. This value is also returned when this method attempts to write to a stream that was opened in simple mode (using the STGM_SIMPLE flag). Changes the seek pointer to a new location relative to the beginning of the stream, the end of the stream, or the current seek pointer. [in] Displacement to be added to the location indicated by the dwOrigin parameter. If dwOrigin is STREAM_SEEK_SET, this is interpreted as an unsigned value rather than a signed value. [in] Specifies the origin for the displacement specified in dlibMove. The origin can be the beginning of the file, the current seek pointer, or the end of the file. See the STREAM_SEEK enumeration for the values. [out] Pointer to the location where this method writes the value of the new seek pointer from the beginning of the stream. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the new seek pointer. S_OK The seek pointer has been successfully adjusted. E_PENDING Asynchronous Storage only: Part or all of the stream's data is currently unavailable. For more information, see IFillLockBytes and Asynchronous Storage. STG_E_INVALIDPOINTER Indicates that the [out] parameter plibNewPosition points to invalid memory, because plibNewPosition is not read. STG_E_INVALIDFUNCTION The dwOrigin parameter contains an invalid value or the dlibMove parameter contains a bad offset value. For example, the result of the seek pointer is a negative offset value. STG_E_REVERTED The object has been invalidated by a revert operation above it in the transaction tree. Changes the size of the stream object. [in] Specifies the new size of the stream as a number of bytes. Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream. [in] Pointer to the destination stream. The stream pointed to by pstm can be a new stream or a clone of the source stream. [in] Specifies the number of bytes to copy from the source stream. [out] Pointer to the location where this method writes the actual number of bytes read from the source. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes read. [out] Pointer to the location where this method writes the actual number of bytes written to the destination. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes written. Ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage. If the stream object is open in direct mode, IStream::Commit has no effect other than flushing all memory buffers to the next-level storage object. The COM compound file implementation of streams does not support opening streams in transacted mode. [in] Controls how the changes for the stream object are committed. See the STGC enumeration for a definition of these values. Discards all changes that have been made to a transacted stream since the last call to IStream::Commit. Restricts access to a specified range of bytes in the stream. Supporting this functionality is optional since some file systems do not provide it. Removes the access restriction on a range of bytes previously restricted with IStream::LockRegion. Retrieves the STATSTG structure for this stream. Creates a new stream object that references the same bytes as the original stream but provides a separate seek pointer to those bytes. Call the methods of IStorage to manage substorages or streams within the current storage. This management includes creating, opening, or destroying substorages or streams, as well as managing aspects such as time stamps, names, and so forth. The CreateStream method creates and opens a stream object with the specified name contained in this storage object. All elements within a storage objects, both streams and other storage objects, are kept in the same name space. A pointer to a wide character null-terminated Unicode string that contains the name of the newly created stream. The name can be used later to open or reopen the stream. The name must not exceed 31 characters in length, not including the string terminator. The 000 through 01f characters, serving as the first character of the stream/storage name, are reserved for use by OLE. This is a compound file restriction, not a structured storage restriction. Specifies the access mode to use when opening the newly created stream. For more information and descriptions of the possible values, see STGM Constants. Reserved for future use; must be zero. Reserved for future use; must be zero. On return, pointer to the location of the new IStream interface pointer. This is only valid if the operation is successful. When an error occurs, this parameter is set to NULL. S_OK - The new stream was successfully created. E_PENDING - Asynchronous Storage only: Part or all of the necessary data is currently unavailable. For more information, see IFillLockBytes and Asynchronous Storage. STG_E_ACCESSDENIED - Not enough permissions to create stream. STG_E_FILEALREADYEXISTS - The name specified for the stream already exists in the storage object and the grfMode parameter includes the value STGM_FAILIFTHERE. STG_E_INSUFFICIENTMEMORY - The stream was not created due to a lack of memory. STG_E_INVALIDFLAG - The value specified for the grfMode parameter is not a valid STGM Constants value. STG_E_INVALIDFUNCTION - The specified combination of flags in the grfMode parameter is not supported; for example, when this method is called without the STGM_SHARE_EXCLUSIVE flag. STG_E_INVALIDNAME - Invalid value for pwcsName. STG_E_INVALIDPOINTER - The pointer specified for the stream object was invalid. STG_E_INVALIDPARAMETER - One of the parameters was invalid. STG_E_REVERTED - The storage object has been invalidated by a revert operation above it in the transaction tree. STG_E_TOOMANYOPENFILES - The stream was not created because there are too many open files. The OpenStream method opens an existing stream object within this storage object in the specified access mode. A pointer to a wide character null-terminated Unicode string that contains the name of the stream to open. The 000 through 01f characters, serving as the first character of the stream/storage name, are reserved for use by OLE. This is a compound file restriction, not a structured storage restriction. Reserved for future use; must be NULL. Specifies the access mode to be assigned to the open stream. For more information and descriptions of possible values, see STGM Constants. Other modes you choose must at least specify STGM_SHARE_EXCLUSIVE when calling this method in the compound file implementation. Reserved for future use; must be zero. A pointer to IStream pointer variable that receives the interface pointer to the newly opened stream object. If an error occurs, *ppstm must be set to NULL. S_OK - The stream was successfully opened. E_PENDING - Asynchronous Storage only: Part or all of the stream data is currently unavailable. STG_E_ACCESSDENIED - Not enough permissions to open stream. STG_E_FILENOTFOUND - The stream with specified name does not exist. STG_E_INSUFFICIENTMEMORY - The stream was not opened due to a lack of memory. STG_E_INVALIDFLAG - The value specified for the grfMode parameter is not a valid STGM Constants value. STG_E_INVALIDFUNCTION - The specified combination of flags in the grfMode parameter is not supported; for example, when this method is called without the STGM_SHARE_EXCLUSIVE flag. STG_E_INVALIDNAME - Invalid value for pwcsName. STG_E_INVALIDPOINTER - The pointer specified for the stream object was not valid. STG_E_INVALIDPARAMETER - One of the parameters was not valid. STG_E_REVERTED - The storage object has been invalidated by a revert operation above it in the transaction tree. STG_E_TOOMANYOPENFILES - The stream was not opened because there are too many open files. The CreateStorage method creates and opens a new storage object nested within this storage object with the specified name in the specified access mode. A pointer to a wide character null-terminated Unicode string that contains the name of the newly created storage object. The name can be used later to reopen the storage object. The name must not exceed 31 characters in length, not including the string terminator. The 000 through 01f characters, serving as the first character of the stream/storage name, are reserved for use by OLE. This is a compound file restriction, not a structured storage restriction. A value that specifies the access mode to use when opening the newly created storage object. For more information and a description of possible values Reserved for future use; must be zero. Reserved for future use; must be zero. A pointer, when successful, to the location of the IStorage pointer to the newly created storage object. This parameter is set to NULL if an error occurs. S_OK - The storage object was created successfully. E_PENDING - Asynchronous Storage only: Part or all of the necessary data is currently unavailable. STG_E_ACCESSDENIED - Not enough permissions to create storage object. STG_E_FILEALREADYEXISTS - The name specified for the storage object already exists in the storage object and the grfMode parameter includes the flag STGM_FAILIFTHERE. STG_E_INSUFFICIENTMEMORY - The storage object was not created due to a lack of memory. STG_E_INVALIDFLAG - The value specified for the grfMode parameter is not a valid STGM Constants value. STG_E_INVALIDFUNCTION - The specified combination of flags in the grfMode parameter is not supported. STG_E_INVALIDNAME - Not a valid value for pwcsName. STG_E_INVALIDPOINTER - The pointer specified for the storage object was not valid. STG_E_INVALIDPARAMETER - One of the parameters was not valid. STG_E_REVERTED - The storage object has been invalidated by a revert operation above it in the transaction tree. STG_E_TOOMANYOPENFILES - The storage object was not created because there are too many open files. STG_S_CONVERTED - The existing stream with the specified name was replaced with a new storage object containing a single stream called CONTENTS. The new storage object will be added. The OpenStorage method opens an existing storage object with the specified name in the specified access mode. A pointer to a wide character null-terminated Unicode string that contains the name of the storage object to open. The 000 through 01f characters, serving as the first character of the stream/storage name, are reserved for use by OLE. This is a compound file restriction, not a structured storage restriction. It is ignored if pstgPriority is non-NULL. Must be NULL. A non-NULL value will return STG_E_INVALIDPARAMETER. Specifies the access mode to use when opening the storage object. For descriptions of the possible values, see STGM Constants. Other modes you choose must at least specify STGM_SHARE_EXCLUSIVE when calling this method. Must be NULL. A non-NULL value will return STG_E_INVALIDPARAMETER. Reserved for future use; must be zero. When successful, pointer to the location of an IStorage pointer to the opened storage object. This parameter is set to NULL if an error occurs. S_OK - The storage object was opened successfully. E_PENDING - Asynchronous Storage only: Part or all of the storage's data is currently unavailable. STG_E_ACCESSDENIED - Not enough permissions to open storage object. STG_E_FILENOTFOUND - The storage object with the specified name does not exist. STG_E_INSUFFICIENTMEMORY - The storage object was not opened due to a lack of memory. STG_E_INVALIDFLAG - The value specified for the grfMode parameter is not a valid STGM Constants value. STG_E_INVALIDFUNCTION - The specified combination of flags in the grfMode parameter is not supported. STG_E_INVALIDNAME - Not a valid value for pwcsName. STG_E_INVALIDPOINTER - The pointer specified for the storage object was not valid. STG_E_INVALIDPARAMETER - One of the parameters was not valid. STG_E_REVERTED - The storage object has been invalidated by a revert operation above it in the transaction tree. STG_E_TOOMANYOPENFILES - The storage object was not created because there are too many open files. STG_S_CONVERTED - The existing stream with the specified name was replaced with a new storage object containing a single stream called CONTENTS. In direct mode, the new storage is immediately written to disk. In transacted mode, the new storage is written to a temporary storage in memory and later written to disk when it is committed. The CopyTo method copies the entire contents of an open storage object to another storage object. The number of elements in the array pointed to by rgiidExclude. If rgiidExclude is NULL, then ciidExclude is ignored. An array of interface identifiers (IIDs) that either the caller knows about and does not want copied or that the storage object does not support but whose state the caller will later explicitly copy. A string name block (refer to SNB) that specifies a block of storage or stream objects that are not to be copied to the destination. These elements are not created at the destination. If IID_IStorage is in the rgiidExclude array, this parameter is ignored. This parameter may be NULL. Pointer to the open storage object into which this storage object is to be copied. S_OK - The storage object was successfully copied. E_PENDING - Asynchronous Storage only: Part or all of the data to be copied is currently unavailable. STG_E_ACCESSDENIED - The destination storage object is a child of the source storage object. STG_E_INSUFFICIENTMEMORY - The copy was not completed due to a lack of memory. Otherwise - Error code. The MoveElementTo method copies or moves a substorage or stream from this storage object to another storage object. Pointer to a wide character null-terminated Unicode string that contains the name of the element in this storage object to be moved or copied. IStorage pointer to the destination storage object. Pointer to a wide character null-terminated unicode string that contains the new name for the element in its new storage object. Specifies whether the operation should be a move (STGMOVE_MOVE) or a copy (STGMOVE_COPY). See the STGMOVE enumeration. S_OK - The storage object was successfully copied or moved. Otherwise error code. The Commit method ensures that any changes made to a storage object open in transacted mode are reflected in the parent storage. Controls how the changes are committed to the storage object. S_OK - Changes to the storage object were successfully committed to the parent level. If STGC_CONSOLIDATE was specified, the storage was successfully consolidated, or the storage was already too compact to consolidate further Otherwise error code. The Revert method discards all changes that have been made to the storage object since the last commit operation. S_OK - The revert operation was successful. Otherwise error code. The EnumElements method retrieves a pointer to an enumerator object that can be used to enumerate the storage and stream objects contained within this storage object. Reserved for future use; must be zero. Reserved for future use; must be zero. Reserved for future use; must be zero. Pointer to IEnumSTATSTG* pointer variable that receives the interface pointer to the new enumerator object. S_OK - The enumerator object was successfully returned. Otherwise error code. The DestroyElement method removes the specified storage or stream from this storage object. Pointer to a wide character null-terminated Unicode string that contains the name of the storage or stream to be removed. S_OK - The element was successfully removed. Otherwise error code. The RenameElement method renames the specified substorage or stream in this storage object. Pointer to a wide character null-terminated Unicode string that contains the name of the substorage or stream to be changed. Pointer to a wide character null-terminated unicode string that contains the new name for the specified substorage or stream. S_OK - The element was successfully renamed. Otherwise error code. The SetElementTimes method sets the modification, access, and creation times of the specified storage element, if the underlying file system supports this method. The name of the storage object element whose times are to be modified. If NULL, the time is set on the root storage rather than one of its elements. Either the new creation time for the element or NULL if the creation time is not to be modified. Either the new access time for the element or NULL if the access time is not to be modified. Either the new modification time for the element or NULL if the modification time is not to be modified. S_OK - The time values were successfully set. Otherwise error code. The SetClass method assigns the specified class identifier (CLSID) to this storage object. The CLSID that is to be associated with the storage object. S_OK - The CLSID was successfully assigned. Otherwise error code. The SetStateBits method stores up to 32 bits of state information in this storage object. This method is reserved for future use. Specifies the new values of the bits to set. No legal values are defined for these bits; they are all reserved for future use and must not be used by applications. A binary mask indicating which bits in grfStateBits are significant in this call. S_OK - The state information was successfully set. Otherwise error code. The Stat method retrieves the STATSTG structure for this open storage object. On return, pointer to a STATSTG structure where this method places information about the open storage object. This parameter is NULL if an error occurs. Specifies that some of the members in the STATSTG structure are not returned, thus saving a memory allocation operation. Values are taken from the STATFLAG enumeration. S_OK - The STATSTG structure was successfully returned at the specified location. Otherwise error code. The IEnumSTATPROPSETSTG interface iterates through an array of STATPROPSETSTG structures. The Next method retrieves a specified number of STATPROPSETSTG structures that follow subsequently in the enumeration sequence. The number of STATPROPSETSTG structures requested. An array of STATPROPSETSTG structures returned. The number of STATPROPSETSTG structures retrieved in the rgelt parameter. The Skip method skips a specified number of STATPROPSETSTG structures in the enumeration sequence. The number of STATPROPSETSTG structures to skip. The Reset method resets the enumeration sequence to the beginning of the STATPROPSETSTG structure array. The Clone method creates an enumerator that contains the same enumeration state as the current STATPROPSETSTG structure enumerator. Using this method, a client can record a particular point in the enumeration sequence and then return to that point later. A pointer to the variable that receives the IEnumSTATPROPSETSTG interface pointer. The Next method retrieves a specified number of STATPROPSTG structures, that follow subsequently in the enumeration sequence. The number of STATPROPSTG structures requested. An array of STATPROPSTG structures returned. The number of STATPROPSTG structures retrieved in the rgelt parameter. The Skip method skips the specified number of STATPROPSTG structures in the enumeration sequence. The number of STATPROPSTG structures to skip. The Reset method resets the enumeration sequence to the beginning of the STATPROPSTG structure array. The Clone method creates an enumerator that contains the same enumeration state as the current STATPROPSTG structure enumerator A pointer to the variable that receives the IEnumSTATPROPSTG interface pointer. The vt The int PTR The byte value The int value The bool value The file time The double value The short value The int PTR2 The IPropertyStorage interface manages the persistent properties of a single property set. Persistent properties consist of information that can be stored persistently in a property set, such as the summary information associated with a file. The ReadMultiple method reads specified properties from the current property set. The numeric count of properties to be specified in the rgpspec array. An array of PROPSPEC structures specifies which properties are read. Properties can be specified either by a property ID or by an optional string name. Caller-allocated array of a PROPVARIANT structure that, on return, contains the values of the properties specified by the corresponding elements in the rgpspec array. The WriteMultiple method writes a specified group of properties to the current property set. If a property with a specified name or property identifier already exists, it is replaced, even when the old and new types for the property value are different. The number of properties set. The value of this parameter can be set to zero; An array of the property IDs (PROPSPEC) to which properties are set. An array (of size cpspec) of PROPVARIANT structures that contain the property values to be written. The minimum value for the property IDs that the method must assign if the rgpspec parameter specifies string-named properties for which no property IDs currently exist. The DeleteMultiple method deletes as many of the indicated properties as exist in this property set. The numerical count of properties to be deleted. The value of this parameter can legally be set to zero, however that defeats the purpose of the method as no properties are thereby deleted, regardless of the value set in rgpspec. Properties to be deleted. A mixture of property identifiers and string-named properties is permitted. There may be duplicates, and there is no requirement that properties be specified in any order. The ReadPropertyNames method retrieves any existing string names for the specified property IDs. The number of elements on input of the array rgpropid. The value of this parameter can be set to zero. An array of property IDs for which names are to be retrieved. A caller-allocated array of size cpropid of LPWSTR members. On return, the implementation fills in this array. The WritePropertyNames method assigns string names to a specified array of property IDs in the current property set. The size on input of the array rgpropid. Can be zero. However, making it zero causes this method to become non-operational. An array of the property IDs for which names are to be set. Array of new names to be assigned to the corresponding property IDs in the rgpropid array. These names may not exceed 255 characters (not including the NULL terminator). The DeletePropertyNames method deletes specified string names from the current property set. The size on input of the array rgpropid. If 0, no property names are deleted. Property identifiers for which string names are to be deleted. The IPropertyStorage::Commit method saves changes made to a property storage object to the parent storage object. The flags that specify the conditions under which the commit is to be performed. The Revert method discards all changes to the named property set since it was last opened or discards changes that were last committed to the property set. The Enum method creates an enumerator object designed to enumerate data of type STATPROPSTG, which contains information on the current property set. Pointer to IEnumSTATPROPSTG pointer variable that receives the interface pointer to the new enumerator object. The SetTimes method sets the modification, access, and creation times of this property set, if supported by the implementation. Not all implementations support all these time values. Pointer to the new creation time for the property set. May be NULL, indicating that this time is not to be modified by this call. Pointer to the new access time for the property set. May be NULL, indicating that this time is not to be modified by this call. Pointer to the new modification time for the property set. May be NULL, indicating that this time is not to be modified by this call. The SetClass method assigns a new CLSID to the current property storage object, and persistently stores the CLSID with the object. New CLSID to be associated with the property set. The Stat method retrieves information about the current open property set. Pointer to a STATPROPSETSTG structure, which contains statistics about the current open property set. The ReadMultiple method reads specified properties from the current property set. The numeric count of properties to be specified in the rgpspec array. An array of PROPSPEC structures specifies which properties are read. Properties can be specified either by a property ID or by an optional string name. Caller-allocated array of a PROPVARIANT structure that, on return, contains the values of the properties specified by the corresponding elements in the rgpspec array. The WriteMultiple method writes a specified group of properties to the current property set. If a property with a specified name or property identifier already exists, it is replaced, even when the old and new types for the property value are different. The number of properties set. The value of this parameter can be set to zero; An array of the property IDs (PROPSPEC) to which properties are set. An array (of size cpspec) of PROPVARIANT structures that contain the property values to be written. The minimum value for the property IDs that the method must assign if the rgpspec parameter specifies string-named properties for which no property IDs currently exist. The IPropertyStorage::Commit method saves changes made to a property storage object to the parent storage object. The flags that specify the conditions under which the commit is to be performed. The IPropertySetStorage interface creates, opens, deletes, and enumerates property set storages that support instances of the IPropertyStorage interface. The Create method creates and opens a new property set in the property set storage object. The FMTID of the property set to be created. For information about FMTIDs that are well-known and predefined in the Platform SDK, see Predefined Property Set Format Identifiers. A pointer to the initial class identifier CLSID for this property set. May be NULL, in which case it is set to all zeroes. The values from PROPSETFLAG Constants. An access mode in which the newly created property set is to be opened, taken from certain values of STGM_Constants, as described in the following Remarks section. A pointer to the output variable that receives the IPropertyStorage interface pointer. The Open method opens a property set contained in the property set storage object. The format identifier (FMTID) of the property set to be opened. For more information about well-known and predefined FMTIDs in the Platform SDK The access mode in which the newly created property set is to be opened. These flags are taken from STGM Constants. A pointer to the IPropertyStorage pointer variable that receives the interface pointer to the requested property storage subobject. The Delete method deletes one of the property sets contained in the property set storage object. FMTID of the property set to be deleted. The Enum method creates an enumerator object which contains information on the property sets stored in this property set storage. Pointer to IEnumSTATPROPSETSTG pointer variable that receives the interface pointer to the newly created enumerator object. Class provide access to STG API functions. To prevent user from creation of this class instances. StgOpenStorage opens an existing root storage object in the file system. You can use this function to open compound files but you cannot use it to open directories, files, or summary catalogs. Nested storage objects can only be opened using their parents' IStorage::OpenStorage method. [in] Pointer to the path of the NULL-terminated Unicode string file containing the storage object to open. This parameter is ignored if the pstgPriority parameter is not NULL. Most often NULL. If not NULL, this parameter is used instead of the pwcsName parameter to specify the pointer to the IStorage interface on the storage object to open. It points to a previous opening of a root storage object, most often one that was opened in priority mode. After the StgOpenStorage function returns, the storage object specified in the pstgPriority parameter on function entry is not valid and can no longer be used. Instead, use the storage object specified in the ppStgOpen parameter. Specifies the access mode to use to open the storage object. If not NULL, pointer to a block of elements in the storage that are to be excluded as the storage object is opened. The exclusion occurs regardless of whether a snapshot copy happens on the open. May be NULL. Indicates reserved for future use; must be zero. [out] Pointer IStorage* pointer variable that receives the interface pointer to the opened storage. S_OK Indicates that the storage object was successfully opened. STG_E_FILENOTFOUND Indicates that the specified file does not exist. STG_E_ACCESSDENIED Access denied because the caller does not have enough permissions, or another caller has the file open and locked. STG_E_LOCKVIOLATION Access denied because another caller has the file open and locked. STG_E_SHAREVIOLATION Access denied because another caller has the file open and locked. STG_E_FILEALREADYEXISTS Indicates that the file exists but is not a storage object. STG_E_TOOMANYOPENFILES Indicates that the storage object was not opened because there are too many open files. STG_E_INSUFFICIENTMEMORY Indicates that the storage object was not opened due to inadequate memory. STG_E_INVALIDNAME Indicates a non-valid name in the pwcsName parameter. STG_E_INVALIDPOINTER Indicates a non-valid pointer in one of the parameters: snbExclude, pwcsName, pstgPriority, or ppStgOpen. STG_E_INVALIDFLAG Indicates a non-valid flag combination in the grfMode parameter. STG_E_INVALIDFUNCTION Indicates STGM_DELETEONRELEASE specified in the grfMode parameter. STG_E_OLDFORMAT Indicates that the storage object being opened was created by the Beta 1 storage provider. This format is no longer supported. STG_E_NOTSIMPLEFORMAT Indicates that the STGM_SIMPLE flag was specified in the grfMode parameter and the storage object being opened was not written in simple mode. STG_E_OLDDLL The DLL being used to open this storage object is a version of the DLL that is older than the one used to create it. STG_E_PATHNOTFOUND Specified path does not exist. STG_E_SHAREVIOLATION Access denied because another caller has the file open and locked. Opens an existing root storage object in the file system. You can use this function to open compound files and regular files. To create a new file, use the StgCreateStorageEx function. [in] Pointer to the path of the NULL-terminated Unicode string file containing the storage object. This string size must not exceed MAX_PATH characters. [in] Specifies the access mode to open the new storage object. For more information, see the STGM enumeration. If the caller specifies transacted mode together with STGM_CREATE or STGM_CONVERT, the overwrite or conversion takes place when the commit operation is called for the root storage. If IStorage::Commit is not called for the root storage object, previous contents of the file will be restored. STGM_CREATE and STGM_CONVERT cannot be combined with the STGM_NOSNAPSHOT flag, because a snapshot copy is required when a file is overwritten or converted in the transacted mode. [in] Specifies the storage file format. For more information, see the STGFMT enumeration. [in] Depends on the value of the stgfmt parameter. STGFMT_DOCFILE should be zero (0) or FILE_FLAG_NO_BUFFERING. [in, out] Pointer to a STGOPTIONS structure that contains information about the storage object being opened. The pStgOptions parameter is valid only if the stgfmt parameter is set to STGFMT_DOCFILE. [in] Reserved for future use; must be zero. [in] Specifies the Guid of the interface pointer to return. [out] Address of an interface pointer variable that receives a pointer for an interface on the storage object being opened; contains NULL if operation failed. S_OK Indicates that the storage object was successfully opened. STG_E_INVALIDPOINTER Indicates a non-valid pointer in the ppObjectOpen parameter. STG_E_INVALIDPARAMETER Indicates a non-valid value for the grfAttrs, reserved1, reserved2, grfMode, or stgfmt parameters. Can occur if the FILE_FLAG_NO_BUFFERING flag is specified for grfAttrs but the sector size of the file is not an integer multiple of the underlying disk's sector size. E_NOINTERFACE Indicates that the specified interface is not supported. STG_E_INVALIDFLAG Indicates a non-valid flag combination in the grfMode pointer (includes both STGM_DELETEONRELEASE and STGM_CONVERT flags). STG_E_INVALIDNAME Indicates a non-valid name in the pwcsName parameter. STG_E_INVALIDFUNCTION Indicates that the grfMode is set to STGM_DELETEONRELEASE. STG_E_LOCKVIOLATION Access denied because another caller has the file open and locked. STG_E_SHAREVIOLATION Access denied because another caller has the file open and locked. STG_E_UNIMPLEMENTEDFUNCTION Indicates that the StgOpenStorageEx function is not implemented by the operating system. In this case, use the StgOpenStorage function instead. STG_E_INCOMPLETE Indicates that the file could not be opened because it is on a high-latency device. This can only occur if the parameter is IID_IPropertySetStorage, and the stgfmt parameter is STGFMT_FILE. STG_E_ACCESSDENIED Indicates that the file could not be opened because the underlying storage device does not allow such access to the current user. When opening the storage object in transacted mode (STGM_TRANSACTED), this error may also indicate that a temporary file could not be created in the temporary directory as specified by the GetTempPath function. The GetTempPath function retrieves the path of the directory designated for temporary files. StgCreateDocfile creates a new compound file storage object using the COM-provided compound file implementation for the IStorage interface. [in] Pointer to a NULL-terminated Unicode string name for the compound file being created. It is passed uninterpreted to the file system. This can be a relative name or NULL. If NULL, a temporary compound file is allocated with a unique name. [in] Specifies the access mode to use when opening the new storage object. For more information, see the STGM enumeration. If the caller specifies transacted mode together with STGM_CREATE or STGM_CONVERT, the overwrite or conversion takes place when the commit operation is called for the root storage. If IStorage::Commit is not called for the root storage object, previous contents of the file will be restored. STGM_CREATE and STGM_CONVERT cannot be combined with the STGM_NOSNAPSHOT flag, because a snapshot copy is required when a file is overwritten or converted in the transacted mode. [in] Reserved for future use; must be zero. [out] Pointer to the location of the IStorage pointer to the new storage object. S_OK - Indicates that the compound file was successfully created. STG_E_ACCESSDENIED - Access denied because the caller does not have enough permissions or another caller has the file open and locked. STG_E_FILEALREADYEXISTS Indicates that the compound file already exists and grfMode is set to STGM_FAILIFTHERE. STG_E_INSUFFICIENTMEMORY Indicates that the compound file was not created due to inadequate memory. STG_E_INVALIDFLAG Indicates a non-valid flag combination in the grfMode parameter. STG_E_INVALIDNAME Indicates a non-valid name in the pwcsName parameter. STG_E_INVALIDPOINTER Indicates a non-valid pointer in the pwcsName parameter or the ppStgOpen parameter. STG_E_LOCKVIOLATION Access denied because another caller has the file open and locked. STG_E_SHAREVIOLATION Access denied because another caller has the file open and locked. STG_E_TOOMANYOPENFILES Indicates that the compound file was not created due to a lack of file handles. STG_S_CONVERTED Indicates that the specified file was successfully converted to storage format. The StgCreatePropSetStg function creates a property set storage object from a specified storage object. Pointer to the storage object that contains or is to contain one or more property sets. Reserved for future use; must be zero. Pointer to IPropertySetStorage* pointer variable that receives the interface pointer to the property-set storage object. S_OK - The property set storage object was successfully created. The StgCreatePropSetStg function creates a property set storage object from a specified storage object. Pointer to the storage object that contains or is to contain one or more property sets. Reserved for future use; must be zero. Pointer to IPropertySetStorage* pointer variable that receives the interface pointer to the property-set storage object. S_OK - The property set storage object was successfully created. The CreateILockBytesOnHGlobal function creates a byte array object, using global memory as the physical device, which is intended to be the compound file foundation. The memory handle allocated by the GlobalAlloc function. A flag that specifies whether the underlying handle for this byte array object should be automatically freed when the object is released. The address of ILockBytes pointer variable that receives the interface pointer to the new byte array object. S_OK - The byte array object was created successfully. The StgCreateDocfileOnILockBytes function creates and opens a new compound file storage object on top of a byte-array object provided by the caller. A pointer to the ILockBytes interface on the underlying byte-array object on which to create a compound file. Specifies the access mode to use when opening the new compound file. For more information, see STGM Constants. Reserved for future use; must be zero. A pointer to the location of the IStorage pointer on the new storage object. S_OK - Indicates that the compound file was successfully created. Otherwise error code. The StgOpenStorageOnILockBytes function opens an existing storage object that does not reside in a disk file, but instead has an underlying byte array provided by the caller. ILockBytes pointer to the underlying byte array object that contains the storage object to be opened. Most often NULL. If not NULL, this parameter is used instead of the plkbyt parameter to specify the storage object to open. In this case, it points to the IStorage interface on a previously opened root storage object, most often one that was opened in priority mode. Specifies the access mode to use to open the storage object. Can be NULL. If not NULL, this parameter points to a block of elements in this storage that are to be excluded as the storage object is opened. This exclusion occurs independently of whether a snapshot copy happens on the open. Indicates reserved for future use; must be zero. Points to the location of an IStorage pointer to the opened storage on successful return. S_OK - The storage object was successfully opened. Otherwise error code. The GlobalAlloc function allocates the specified number of bytes from the heap. Windows memory management does not provide a separate local heap and global heap. Memory allocation attributes. Number of bytes to allocate. If the function succeeds, the return value is a handle to the newly allocated memory object. If the function fails, the return value is NULL. To get extended error information, call GetLastError. Flags for GlobalAlloc function. Allocates fixed memory. The return value is a pointer. Allocates movable memory. Memory blocks are never moved in physical memory, but they can be moved within the default heap. Initializes memory contents to zero. NO Discard memory. Predefined Clipboard Formats. Text clipboard format. Bitmap clipboard format. METAFILEPICT clipboard format. Sylk clipboard format. Dif clipboard format. Tiff clipboard format. Oemtext clipboard format. Dib clipboard format. Pallette clipboard format. Pendata clipboard format. Riff clipboard format. Wave clipboard format. Unicodetext clipboard format. Enhmetafile clipboard format. Hdrop clipboard format. Locale clipboard format. Max clipboard format. Ownerdisplay clipboard format. Dsptext clipboard format. Dspbitmap clipboard format. Dspmetafilepict clipboard format. Dspenhmetafile clipboard format. Privatefirst clipboard format. Privatelast clipboard format. Gdiobjfirst clipboard format. Gdiobjlast clipboard format. The DVASPECT enumeration values specify the desired data or view aspect of the object when drawing or getting data. Provides a representation of an object so it can be displayed as an embedded object inside of a container. Provides a thumbnail representation of an object so it can be displayed in a browsing tool. Provides an iconic representation of an object. Provides a representation of the object on the screen as though it were printed to a printer using the Print command from the File menu. The TYMED enumeration values indicate the type of storage medium being used in a data transfer. No data is being passed. The storage medium is a global memory handle (HGLOBAL). Allocate the global handle with the GMEM_SHARE flag. The storage medium is a disk file identified by a path. If the STGMEDIUM punkForRelease member is NULL, the destination process should use OpenFile to delete the file. The storage medium is a stream object identified by an IStream pointer. Use ISequentialStream::Read to read the data. The storage medium is a storage component identified by an IStorage pointer. The storage medium is a GDI component (HBITMAP). If the STGMEDIUM punkForRelease member is NULL, the destination process should use DeleteObject to delete the bitmap. The storage medium is a metafile (HMETAFILE). Use the Windows or WIN32 functions to access the metafile's data. The storage medium is an enhanced metafile. If the STGMEDIUM punkForRelease member is NULL, the destination process should use DeleteEnhMetaFile to delete the bitmap. CSIDL values provide a unique system-independent way to identify special folders used frequently by applications, but which may not have the same name or location on any given system. The virtual folder representing the Windows desktop, the root of the namespace. A virtual folder representing the Internet. The file system directory that contains the user's program groups (which are themselves file system directories). The virtual folder containing icons for the Control Panel applications. The virtual folder containing installed printers. The virtual folder representing the My Documents desktop item. The file system directory that serves as a common repository for the user's favorite items. The file system directory that corresponds to the user's Startup program group. The file system directory that contains shortcuts to the user's most recently used documents. The file system directory that contains Send To menu items. The virtual folder containing the objects in the user's Recycle Bin. The file system directory containing Start menu items. The file system directory used to physically store file objects on the desktop. The virtual folder representing My Computer, containing everything on the local computer: storage devices, printers, and Control Panel. A virtual folder representing Network Neighborhood, the root of the network namespace hierarchy. A file system directory containing the link objects that may exist in the My Network Places virtual folder. A virtual folder containing fonts. The file system directory that serves as a common repository for document templates. The file system directory that contains the programs and folders that appear on the Start menu for all users. The file system directory that contains the directories for the common program groups that appear on the Start menu for all users. The file system directory that contains the programs that appear in the Startup folder for all users. The file system directory that contains files and folders that appear on the desktop for all users. The file system directory that serves as a common repository for application-specific data. The file system directory that contains the link objects that can exist in the Printers virtual folder. The file system directory that serves as a data repository for local (nonroaming) applications. The file system directory that corresponds to the user's nonlocalized Startup program group. The file system directory that corresponds to the nonlocalized Startup program group for all users. The file system directory that serves as a common repository for favorite items common to all users. The file system directory that serves as a common repository for temporary Internet files. The file system directory that serves as a common repository for Internet cookies. The file system directory that serves as a common repository for Internet history items. The file system directory containing application data for all users. The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. The Windows System folder. The Program Files folder. The file system directory that serves as a common repository for image files. The file system directory containing user profile folders. x86 system directory on RISC. x86 C:\Program Files on RISC. A folder for components that are shared across applications. x86 Program Files\Common on RISC The file system directory that serves as a common repository for document templates. The file system directory that contains documents that are common to all users. The file system directory containing administrative tools for all users of the computer. The file system directory that is used to store administrative tools for an individual user. Network and Dial-up Connections Combine with CSIDL_ value to force folder creation in SHGetFolderPath(). Combine with CSIDL_ value to return an unverified folder path. Mask for all possible flag values. Can be time intensive. A platform-specific type that is used to represent a pointer to TYMED struct. A platform-specific type that is used to represent a pointer or a handle to storage. A platform-specific type that is used to represent a pointer or a handle to unknown. The FORMATETC structure is a generalized Clipboard format. Particular clipboard format of interest. Pointer to a DVTARGETDEVICE structure containing information about the target device for which the data is being composed. One of the DVASPECT enumeration constants that indicate how much detail should be contained in the rendering. Part of the aspect when the data must be split across page boundaries. One of the TYMED enumeration constants which indicate the type of storage medium used to transfer the object's data. The DATADIR enumeration values specify the direction of the data flow in the dwDirection parameter of the IDataObject::EnumFormatEtc method. Requests that IDataObject::EnumFormatEtc supply an enumerator for the formats that can be specified in IDataObject::GetData. Requests that IDataObject::EnumFormatEtc supply an enumerator for the formats that can be specified in IDataObject::SetData. The IEnumFORMATETC interface is used to enumerate an array of FORMATETC structures. This method creates another enumerator that contains the same enumeration state as the current one. Address of the IEnumFORMATETC* pointer variable that receives the interface pointer to the enumeration object. This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED. Retrieves the next celt items in the enumeration sequence. Number of elements being requested. Array of size celt (or larger) of the elements of interest. The type of this parameter depends on the item being enumerated. Pointer to the number of elements actually supplied in rgelt. The caller can pass in NULL if celt is 1. S_OK is returned if the number of elements supplied is celt; S_FALSE otherwise. This method resets the enumeration sequence to the beginning. If the method succeeds, the return value is S_OK. This method skips over the next specified number of elements in the enumeration sequence. Number of elements to be skipped. S_OK is returned if the number of elements skipped is celt; otherwise, S_FALSE. The IDataObject interface specifies methods that enable data transfer and notification of changes in data. Called by a data consumer to obtain data from a source data object. Pointer to the FORMATETC structure that defines the format, medium, and target device to use when passing the data. Pointer to the STGMEDIUM structure that indicates the storage medium containing the returned data through its tymed member, and the responsibility for releasing the medium through the value of its pUnkForRelease member. S_OK - Data was successfully retrieved and placed in the storage medium provided. Otherwise error code. Called by a data consumer to obtain data from a source data object. This method differs from the GetData method in that the caller must allocate and free the specified storage medium. Pointer to the FORMATETC structure that defines the format, medium, and target device to use when passing the data. Pointer to the STGMEDIUM structure that defines the storage medium containing the data being transferred. S_OK - Data was successfully retrieved and placed in the storage medium provided. Otherwise error code. Determines whether the data object is capable of rendering the data described in the FORMATETC structure. Pointer to the FORMATETC structure defining the format, medium, and target device to use for the query. S_OK - Subsequent call to IDataObject::GetData would probably be successful. Otherwise error code. Provides a standard FORMATETC structure that is logically equivalent to one that is more complex. Pointer to the FORMATETC structure that defines the format, medium, and target device that the caller would like to use to retrieve data in a subsequent call such as IDataObject::GetData. Pointer to a FORMATETC structure that contains the most general information possible for a specific rendering, making it canonically equivalent to pFormatetcIn. S_OK - The returned FORMATETC structure is different from the one that was passed. Otherwise error code. Called by an object containing a data source to transfer data to the object that implements this method. Pointer to the FORMATETC structure defining the format used by the data object when interpreting the data contained in the storage medium. Pointer to the STGMEDIUM structure defining the storage medium in which the data is being passed. If TRUE, the data object called, which implements IDataObject::SetData, owns the storage medium after the call returns. This means it must free the medium after it has been used by calling the ReleaseStgMedium function. S_OK - Data was successfully transferred. Otherwise error code. Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to IDataObject::GetData or IDataObject::SetData. Direction of the data through a value from the enumeration DATADIR. Address of IEnumFORMATETC* pointer variable that receives the interface pointer to the new enumerator object. S_OK - Enumerator object was successfully created. E_NOTIMPL - The direction specified by dwDirection is not supported. OLE_S_USEREG - Requests that OLE enumerate the formats from the registry. Called by an object supporting an advise sink to create a connection between a data object and the advise sink. Pointer to a FORMATETC structure that defines the format, target device, aspect, and medium that will be used for future notifications. DWORD that specifies a group of flags for controlling the advisory connection. Pointer to the IAdviseSink interface on the advisory sink that will receive the change notification. Pointer to a DWORD token that identifies this connection. S_OK - The advisory connection was created. Otherwise error code. Destroys a notification connection that had been previously set up. DWORD token that specifies the connection to remove. Use the value returned by IDataObject::DAdvise when the connection was originally established. S_OK - The specified connection was successfully deleted. OLE_E_NOCONNECTION - The specified dwConnection is not a valid connection. OLE_E_ADVISENOTSUPPORTED - This IDataObject implementation does not support notification. Creates an object that can be used to enumerate the current advisory connections. Address of IEnumSTATDATA* pointer variable that receives the interface pointer to the new enumerator object. S_OK - The enumerator object is successfully instantiated or there are no connections. OLE_E_ADVISENOTSUPPORTED - Advisory notifications are not supported by this object. Error and succes codes Success code. Success code. General access denied error. Ran out of memory. No such interface supported. Catastrophic failure. Invalid FORMATETC structure This implementation doesn't take advises. Class thet represents the data object entry. Creates new instance of DataObjectEntry. Datadir object. Parent StgMedium object. Parent Formatec object. Class thet represents the enum formatec class. Creates another connection point enumerator with the same state as the current enumerator to iterate over the same list. Pointer to the returned IComEnumFORMATETC interface. This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED. The RemoteNext method retrieves a specified number of HRESULT structures. The number of STATSTG structures requested. An array of STATSTG structures returned. The number of STATSTG structures retrieved in the rgelt parameter. S_OK - The number of STATSTG structures returned equals the number specified in the celt parameter. Otherwise - error code. Resets the enumeration sequence to the beginning. S_OK Instructs the enumerator to skip the next celt elements in the enumeration so that the next call to IEnumConnectionPoints::Next will not return those elements. Number of elements to be skipped. S_OK if the number of elements skipped is celt; otherwise, S_FALSE. ComDataObject class. Retrieves data. Point to Formatec structure. Point to Stgmedium sturcture. Returns error code. Similar to GetData, except the client must allocate the STGMEDIUM structure. Point to FORMATETC sturcture. Point to STGMEDIUM structure. Returns E_NOTIMPL. Determines whether the data object supports a particular FORMATETC structure for transferring data. Point to FORMATETC sturcture. Returns E_NOTIMPL. Retrieves a logically equivalent FORMATETC structure to one that is more complex. Pointer to the FORMATETC structure that defines the format. Pointer to a FORMATETC structure that contains the most general information possible for a specific rendering. Returns E_NOTIMPL. Sets the value for a specific data point. Pointer to the FORMATETC structure that defines the format. Point to STGMEDIUM structure. Int to relise. Returns S_OK Creates an enumerator to iterate through the FORMATETC structures supported by the data object. Direction of the data through a value from the enumeration DATADIR. Address of IEnumFORMATETC* pointer variable that receives the interface pointer to the new enumerator object. Returns E_NOTIMPL. Establishes a connection between the data object and an advise sink. Pointer to a FORMATETC structure that defines the format. DWORD that specifies a group of flags for controlling the advisory connection. Pointer to the IAdviseSink interface on the advisory sink that will receive the change notification. Pointer to a DWORD token that identifies this connection. Returns E_ADVISENOTSUPPORTED. Terminates a connection previously established through DAdvise. DWORD token that specifies the connection to remove. Use the value returned by IDataObject::DAdvise when the connection was originally established. Returns E_ADVISENOTSUPPORTED. Creates an enumerator to iterate through the current advisory connections. Address of IEnumSTATDATA* pointer variable that receives the interface pointer to the new enumerator object. Returns E_ADVISENOTSUPPORTED. Storage API wrapper classes provide access to storage data from .NET code. Open storage in read-only mode. Open storage stream in read-only mode. Create a new stream in storage. Open storage or stream in ReadWrite mode. Default buffer size for stream copying. Options to open storage in read-only mode. Used to open already opened file. Reference in COM interface which provides access to stream in storage. Reference in COM interface which provide access to storage. True if class was disposed; otherwise False. True if stream supports read operation; otherwise False. True stream supports write operation; otherwise False. True if stream supports seek operation; otherwise False. True if stream opened in Transaction mode and on Flush method call class must commit transaction; otherwise False. Length of stream data. List of streams names provided by storage. List of storage names found in current storage. File name of storage. Stream name. Sub-storage name opened by class. Storage Mode: Open or Create. Stream Mode: Open or Create. Current stream position, used for optimization. Allows users to skip Seek operations if required. Represents the locking bytes. Closes the stream. Commit changes. Commit changes. Commit code. When commit operation fails. Discards all changes that have been made to the storage object since the last commit operation. Seek in stream. New offset. Start point for Seek operation. Current position. When seek operation fails. Set stream length. New stream length When SetLength operation fails. Read data from stream. Output stream. Offset in output buffer. Quantity of bytes to read. Quantity of read bytes. When buffer is NULL. When offset or count is less than zero. When there are not enough items in the buffer. When Read operation fails. Write data to stream. Buffer with data. Offset in input buffer from which data started. Quantity of bytes which must be written. When buffer is NULL. When offset or count is less than zero. When there are not enough items in the buffer or stream is in Read-only mode. When Write operation fails. To prevent class creation by default constructor. Open storage/compound file. File name of storage. Mode which must be used for open operation. When fileName is NULL. Couldn't open the storage Open storage and one stream of it. File name of storage. Flags that are used for storage open. Stream name. Flags which used for stream in storage open. Open storage and its stream in Read-only mode. File name. Stream name. Open storage in Read-only mode but do not open stream. To open special stream, use OpenStream methods. Storage file name. Inherit stream storage and opens its stream in Read-only mode. Storage of stream. Stream name to open. Inherit stream storage and opensits streams with the user specified flags. Storage to inherit. Stream name. Stream open flags. Open or create stream specified by user name. Inherited storage. Stream name. True to create stream; otherwise open. Inherit storage and open or create in it stream with spcified user name Inherited storage. Stream name. Stream open / create flags. True to create stream; otherwise open. Create a new instance of StgStream. Base stream. Flags for create stream. Create a new instance of StgStream by defoult flag. Base stream. Dispose stream. Close stream, release references on COM interfaces, and free resources. Open stream in Read-only mode. Stream name. Open stream from storage with specified flags. Stream name. Stream open flags. When streamName is NULL. When the specified stream could not be found in the storage. When it was not possible to open the stream. Opens sub storage. Storage name to open. Returns stream of opened storage. Opens sub storage. Storage name to open. Open flags. Returns stream of opened storage. Creates sub storage. Storage name to Create. Returns stream of opened storage. Creates sub storage. Storage name for create. Create flags. Returns stream for created storage. Create stream in opened storage with specified name. Stream name. Create stream in storage with specified name and flags. Stream name. Stream flags. When its not possible to create stream. Saves internal ILockBytes into stream. Stream to save into. Searches for stream name in the streams array ignoring case. Stream name to locate. Name of the stream in the storage. Indicates whether storage contains required stream. Stream to search. True if stream was found. Indicates whether storage contains required substorage. Storage to search. True if stream was found. Removes the specified storage or stream from this storage object. Name of the storage or stream to be removed. 0 - The element was successfully removed. Otherwise error code. Copies one storage into another. Source stream. Destination stream. Method to create new storage and return StgStream class for it. Storage file name. Reference on instance which knows how to work with it. When compound file couldn't be created. Cretes storage on ILockBytes. Created storage. Check storage availability. If storage is NULL. Check stream availability. When stream is NULL. Calculate stream length. Returns length of currently open stream. Returns list of streams stored in storage. List of stream names. When elements of the storage couldn't be enumerated . When it is possible to get IEnumSTATSTG interface reference from storage. Return list of sub-storages found in current storage. List of found storages. Calculates subItems names. Adds data. Item to add. Collection to add. Adds data as stream type. Item to add. Collection where adding is. Adds data as all type. Item to add. Collection where adding is. Calculates subItems. SubItem event handler. User data. Indicates if stream supports Read operation. Read-only. Indicates if stream supports Seek operation. Read-only. Indicates if stream supports Write operation. Read-only. Indicates if stream is opened in Transaction mode. Read-only. Length of stream. Read-only. Gets / sets current position of stream. Gets list of stream names found in storage. Read-only. Gets the array of string thet is a storages. Reference in COM interface which provide access to storage. Reference in COM interface which provide access to stream in storage. Get name of stream opened by the class. Get name of sub storage opened by the class. Gets the IlockBytes interface that represen the locked bytes. Gets the file name. Delegate that represents subItem name event. Compound storage implementation based on standard COM-object. Default storage name. Used for root storage, others should assign some other value. Collection with storage names. Collection with stream names. Name of the storage. Calculates subItems names. Adds data. Item to add. Collection to add. Adds data as stream type. Item to add. Collection where adding is. Adds data as all type. Item to add. Collection where adding is. Calculates subItems. SubItem event handler. User data. Initializes new instance of the class. Name of the file to open. Storage options. Initializes new instance of the storage. Root substorage. Initializes new instance of te storage. Root substorage. Name of the storage. Destructor. Creates new stream inside this storage. Name of the stream to create. Created stream object. Opens existing stream inside this storage. Name of the stream to open. Removes existing stream from this storage. Name of the stream to remove. Determines whether storage contains specified stream. Name of the stream to check. true if storage contains specified stream. Creates new substorage inside this one. Name of the storage to create. Created storage object. Opens existing substorage inside this one. Name of the storage to open. Created storage object. Removes exisiting substorage from this one. Name of the storage to remove. Determines whether this storage contains substorage with specified name. Name of the storage to check. true if storage contains substorage with specified name. Commits changes. Inserts copy of the storage and all subitems inside current storage. Storage to copy. Inserts copy of the stream inside current storage. Stream to copy. Returns internal COM storage. This property will be removed after implementing some document properties reading. Returns all stream names that are placed inside this stream. Returns all storage names that are placed inside this stream. Returns name of the storage. Delegate that represents subItem name event. The PropVariant is used for defining the type tag and the value of a property in a property set. Represents the property data. Sets property value. Value to set. Type of the property to set. Gets property value. Sets type of the variant. Write-only. Name of the property. Gets property id. Offset to the type of the PropVariant. Offset to the first int of the data. Size of the integer. Mask to get type of property or each element of the arrya (if property contains an array). Bit mask for lower int value. Bit mask for higher int value. Number of bits in every integer value. Difference in ticks of FILETIME and DateTime. Bit mask for LinkToContent property of the DocumentProperty class. Size of the native windows PROPVARIANT structure. Offset to the second int of the data. Array of IntPtr that should be freed on dispose using Marshal.FreeCoTaskMem. Array of IntPtr that should be freed on dispose using Marshal.FreeHGlobal. Pointer to the PropVariant. Specifies a property by its property identifier (ID). Array of PropVariants that will be disposed in Dispose method. If True, then memory for the structure was allocated by this class and should be freed on Dispose; otherwise, memory was not allocated by this class and should not be freed. Default constructor. Creates PropVariant with data pointed by ptr. Reads data from IPropertyStorage. Property description. IPropertyStorage to read data from. Indicates whether property is built-in or not. Returns array of strings. Converts IntPtr to the string. Value to convert. Converted string. Parses not unicode string. Pointer to the sring to parse. Returns an array of objects. Fills PropVariant with array of strings. Fills PropVariant with array of objects. Sets Blob property value. Value to set. Sets property name. Name to set. Sets property value. Value to set. Type of the property to set. Frees all allocated resources. Frees resuources allocated for property name storage. Writes variant to the property storage. Property storage that will receive PropVariant value. Reads information from the storage. Property information. Storage to read from. Indicates whether property is built-in. Reads information from the storage. Storage to read from. Indicates whether property is built-in. Performs tasks associated with freeing, releasing, or resetting unmanaged resources. Finilizer. Gets or sets the int16. The int16. Fills PropVariant with integer value. Fills PropVariant with integer value. Gets / sets PropVariant memory. ID of the property that will be written into property storage. Same as PropId. Fills PropVariant with FILETIME value. Fills PropVariant with bool value. Fills PropVariant with string value. Fills PropVariant with string value. Fills PropVariant with FILETIME value. Fills PropVariant with double value. Gets / sets property name. Returns value of the property. Read-only. Indicates whether it is property or just link to source of some property. Read-only. Returns id of the parent property. Read-only. Gets property id. Sets first integer value of the variant. Write-only. Sets second integer value of the variant. Write-only. Sets type of the variant. Write-only. Represents the clipboard data. Clipboard format. Clipboard data. Createas copy of the current object. A copy of the current object. Saves clipboard data into stream. Stream to write data into. Size of the written data. Extracts data from the stream. Stream to get data from. .Net compound file implementation. Name of the root entry. Source stream. File header. Root storage. Short stream. Stream containing items described by minifat. MiniFAT. Indicates whether substreams should maintain their own stream or should write directly into the file's stream. Writes directory structure into file. Destination path. Directory to write. Writes storage to specified path Destination path. Storage to write. Writes stream into file Destination path. Stream name. Parent storage object. Default constructor. Default constructor. Default constructor. Initializes internal variables. Sets stream data for directory entry. Directory entry to update stream data for. Stream to set. Sets entrie's long stream. Entry to update data for. Data to set. Sets entrie's short stream. Entry to update data for. Data to set. Writes stream data into compound file main stream Main stream to write into. Start sector to write. Stream to write. Fat object. Here we have to allocate required sectors number. Entry to allocate sectors for. Number of already allocated sectors. Number of required sectors. FAT object. Allocates sectors. Start sector in the chain. Number of already allocated sectors. Number of required sectors. Fat object. Start sector of the added chain. Gets offset to the sector. Zero-based sector index. Sector shift (2^sectorShift = sector size). Offset to the required sector. Gets offset to the sector. Zero-based sector index. Sector shift (2^sectorShift = sector size). Size of the header. Offset to the required sector. Checks whether stream header belongs to compound file. Stream to check. True if stream probably contains compound file data. Allocates new directory entry. Name of the stream. Entry type. Created directory entry. Marks item as free. Directory entry to be removed/freed. Reads data from internal stream. Entry to read data from. Position inside entry stream. Buffer that will cotain read data. Size of the data to read. Number of actually read bytes. Writes data into internal stream. Entry to write data into. Position inside entry stream. Buffer containing data to write. Offset inside buffer to the data to write. Size of the data to write. Saves compound file into stream. Stream to save data into. Writes internal stream into specified one. Destination stream to write into. Saves mini stream data. Serializes directory entries. Saves compound file into file. Name of the file to save into. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Returns root storage. Returns base stream. Read-only. Gets or sets value indicating whether substreams should maintain their own stream or should write directly into the file's stream. Returns root storage object for this file. This is exception thrown when experiencing problems with compound file. Default exception message. Default constructor. Initializes new instance of the exception. Exception message. RBTree with child elements. Initializes new instance of the storage. Parent file. Name of the new storage. Index to the directory entry that stores storage information. Initializes new instance of the storage. Parent compound file object. Entry that describes current storage. Creates new stream. Name of the stream to create. Created stream. Opens stream. Name of the stream to open. Opened stream or null if there is no such stream. Removes stream from the storage, if it contains stream with such name. Stream name to delete. Checks whether storage contains stream with specified name. Name of the stream to check. True if storage has stream with such name; false otherwise. Opens existing storage. Name of the storage to open. Opened storage item or null if it was impossible to open it. Removes substorage from existing storage. Name of the storage to remove. Checks whether this storage contains substorage with specified name. Name to check. True if there is such storage; false otherwise. Returns directory entry id that corresponds to the specified node. Returns name of the storage. Returns directory entry for this stream. This is wrapper over compound stream object. Simply redirects all calls to it with one exception - it doesn't dispose underlying stream object. Wrapped storage object. Initializes new instance of the wrapper. Object to wrap. Frees all allocated resources. Creates new stream inside this storage. Name of the stream to create. Created stream object. Opens existing stream inside this storage. Name of the stream to open. Removes existing stream from this storage. Name of the stream to remove. Determines whether storage contains specified stream. Name of the stream to check. true if storage contains specified stream. Creates new substorage inside this one. Name of the storage to create. Created storage object. Opens existing substorage inside this one. Name of the storage to open. Created storage object. Removes exisiting substorage from this one. Name of the storage to remove. Determines whether this storage contains substorage with specified name. Name of the storage to check. true if storage contains substorage with specified name. Commits changes. Returns all stream names that are placed inside this stream. Returns all storage names that are placed inside this stream. Returns name of the storage. Returns directory entry for this stream. .Net implementation of the compound stream. .Net implementation of the compound stream. Parent file item. Directory entry of this stream. Stream with data. If it is null, then data hasn't been read yet or stream is closed. Initializes new instance of the stream. Parent file object. Entry that describes this stream item. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. Causes any buffered data to be written to the underlying compound file. Releases the unmanaged resources used by the Stream and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. Returns directory entry for this stream. Gets the length in bytes of the stream. Read-only. Gets or sets the position within the current stream. Gets a value indicating whether the current stream supports reading. Gets a value indicating whether the current stream supports seeking. Gets a value indicating whether the current stream supports writing. Stream position. Initializes new instance of the stream. Parent file object. Entry that describes this stream item. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. Causes any buffered data to be written to the underlying compound file. Gets the length in bytes of the stream. Read-only. Gets or sets the position within the current stream. This is wrapper over compound stream object. Simply redirects all calls to it with one exception - it doesn't dispose underlying stream object. Wrapped stream object. Initializes new instance of the wrapper. Object to wrap. Causes any buffered data to be written to the underlying compound file. Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. The zero-based byte offset in buffer at which to begin storing the data read from the current stream. The maximum number of bytes to be read from the current stream. The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. Sets the position within the current stream. A byte offset relative to the origin parameter. A value of type SeekOrigin indicating the reference point used to obtain the new position. The new position within the current stream. Sets the length of the current stream. The desired length of the current stream in bytes. writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. An array of bytes. This method copies count bytes from buffer to the current stream. The zero-based byte offset in buffer at which to begin copying bytes to the current stream. The number of bytes to be written to the current stream. Gets a value indicating whether the current stream supports reading. Gets a value indicating whether the current stream supports seeking. Gets a value indicating whether the current stream supports writing. Gets the length in bytes of the stream. Read-only. Gets or sets the position within the current stream. Number of items in the file header. List of all fat sector ids. List with used Dif sectors. Default constructor. Adds required number of DIF sectors. Number of sectors to add. FAT object. This class represents directory structure in the compound file. List of directory entries. Default constructor. Initializes new instance of the directory. Data to parse. Searches for empty entry index. Index of the first empty directory entry. Adds new entry to the collection or replaces existing empty entry with this one. Entry to add. Saves directory entries into specified stream. Stream to save directory into. Returns list of directory entries. Represents single directory entry in the compound file. Size of a single directory entry. Size of the stream name field. Entry name. Entry type. Entry "color" in red-black tree. Id of the left-sibling. Id of the right-sibling. Id of the child acting as the root of all the children of thes element (if entry type if Storage). Storage CLSID. User flags of this storage. Create time-stamp for a storage. Modify time-stamp for a storage. Starting stream sector. Stream size. Reserved. Must be zero. Entry id. Last sector id. Initializes new instance of the entry. Name of the new entry. Type of the new entry. Id of the new entry. Initializes new instance of the entry. Data of the new entry. Offset to the entry data. Entry id. Writes directory entry data inside specified stream. Stream to write data into. Entry name. Entry type. Entry "color" in red-black tree. Id of the left-sibling. Id of the right-sibling. Id of the child acting as the root of all the children of thes element (if entry type if Storage). Storage CLSID. User flags of this storage. Create time-stamp for a storage. Modify time-stamp for a storage. Starting stream sector. Stream size. Reserved. Must be zero. Returns entry id. Read-only. Possible entry types. Invalid entry. Entry is storage. Entry is stream. Root entry. Document properties enumerator. Offset to the first section. List of all sections. Default constructor. Initializes new instance of the enumerator. Stream to parse. Extracts sections data from the stream. Extracts header information from the stream. Saves all sections into stream. Stream to save sections into. Extracts header information from the stream. Saves collection into stream. Returns list lf all sections. This class represents FAT object in the compound file. List with free sectors. Sector size. Default constructor. Default constructor. Initializes new instance of the fat. Parent compound file object. Stream to extract fat from. DIF object to help in parsing File header object. Gets data of the compound file substream. Stream with compound file data. First sector of the stream to get. Parent compound file object. Gets index of the next sector in the chain. Index of the current sector in the chain. Next sector in the chain. Closes sectors chain by marking all those sectors as free starting from specified one. Enlarges existing sectors chain. Last sector in the chain that requires enlargment. Number of sectors to add. Index of the chain start (used when chain wasn't created before). Frees specified sector. Sector to free. Allocates required number of new sectors. Start sector index. Number of sectors to allocate. First sector in the new part of the chain. Allocates required number of free sectors. Start sector index (this value points to the last used sector after this operation). Number of sectors to allocate. First sector in the new part of the chain Saves fat data into stream. Stream to write fat data into. DIF object to update after writing. File header. Allocates required number of fat sectors. Number of sectors that must be allocated. DIF structure that contains info about fat sectors sequence. Fills single fat sector. Index in the fat to start writing from. Sector to fill. First item that wasn't saved inside sector. Allocates new sector of the specified sector type. Sector type to allocate. Allocated sector index. Adds single sector to the stream. Index of the added sector. Writes fat data directly into a stream. Stream to write data into. Size of the sector to use for writing. Evaluates sector offset. Zero-based sector index to evaluate offset for. Offset to the sector start. Evaluates number of sectors in the sector chain starting from the specified sector. Starting sector of the entry to enumerate. Number of sectros in the sector chain. Sector size. This class represents compound file header. Size of the header. Signature size. Default (and the only supported) signature. File signature. Class id. Minor version of the format. Major version of the dll/format. Byte order, 0xFFFE for Intel byte-ordering. Size of sectors in power-of-two (typically 9). Size of mini-sectors in power-of-two (typically 6). Reserved, must be zero. Reserved, must be zero. Reserved, must be zero. Number of sectors in the FAT chain. First sector in the directory chain. Signature used for transactioning, must be zero. Maximum size for mini-streams. Typically 4096 bytes. First sector in the mini-FAT chain. Number of sectors in the mini-FAT chain. First sector in the DIF chain. Number of sectors in the DIF chain. First 109 fat sectors. Default constructor. Initializes new instance of the file header and extracts data from the stream. Stream to extract header data from. Saves header into specified stream. Stream to write header into. Checks whether starting bytes of the stream are the same as signature of the compound file. Stream to check. True if stream contains required signature. Checks whether signature is supported. Checks whether signature is supported. Data to compare with default signature. Size of the sector. Read-only. Minor version of the format. Major version of the dll/format. Byte order, 0xFFFE for Intel byte-ordering. Size of sectors in power-of-two (typically 9). Size of mini-sectors in power-of-two (typically 6). Reserved, must be zero. Reserved, must be zero. Reserved, must be zero. Number of sectors in the FAT chain. First sector in the directory chain. Signature used for transactioning, must be zero. Maximum size for mini-streams. Typically 4096 bytes. First sector in the mini-FAT chain. Number of sectors in the mini-FAT chain. First sector in the DIF chain. Number of sectors in the DIF chain. First 109 fat sectors. This comparer is used to compare item names inside storage. Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. The first object to compare. The second object to compare. Less than zero if x is less than y. Zero if x equals y. Greater than zero if x is greater than y. Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. The first object to compare. The second object to compare. Less than zero if x is less than y. Zero if x equals y. Greater than zero if x is greater than y. Suitable Node colors used for 2-3-4 nodes detection. Red color of node. Black color of node. Node class used for proper storing of data in the Map Collection. Reference on left branch. Reference on right branch. Reference on parent branch. Color of node branch. Is current node Nil element or not? Key part of stored in node data. Value part of stored in node data. Create red colored Tree node. Reference on left branch. Reference on parent branch. Refernce on right branch. Key value of node. Value part of node. Main constructor of class. Reference on left branch. Reference on parent branch. Refernce on right branch. Key value of node. Value part of node. Color of node. Reference on left branch. Reference on right branch. Reference on parent branch. Color of node branch. Is current node Nil element or not? Key part of stored in node data. Value part of stored in node data. Is current node set to red color? Is current node set to black color? TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here Create collection with specified comparer for Key values. Comparer for key values. Create Empty node for collection. Clear collection. Add item into collection. Key part. Value. Check whether collection contains specified key. True if node with specified key is found; otherwise False. Key for check. Remove from collection item with specified key. Key to identify item. TODO: place correct comment here TODO: place correct comment here Get minimum value for specified branch. Branch start node. Reference on minimum value node. Get maximum value for specified branch. Branch start node. Reference on maximum value node. Go to to next item in collection. Start node. Reference on next item in collection or this.Empty if nothing found. Get previous item from collection. Start node. Rererence on previous item in collection. Find node in collection by key value (search in lower side). Key of node to find. Reference on found node, otherwise this.Empty value. Find node in collection by key value (search in upper side). Key of node to find. Reference on found node, otherwise this.Empty value. Rotate branch into left side. Branch start node. Rotate branch into right side. Branch start node. Erase node from collection. Item to erase. Insert item into collection. Add into left side of tree or right. Node for placement. Key part of node. Value part of node. Returns enumerator. Returns enumerator of current interface. TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here TODO: place correct comment here Bit mask for LinkToContent property of the DocumentProperty class. Initializes new isntance of the PropertyData. Initializes new instance of the property data. Id for the new property.. Extracts property data from the stream. Stream to get data from. Extracts property data from the stream. Stream to get data from. Determines whether [is valid property]. Extracts vector data from the stream. Extracts vector data from the stream. Creates array of the specified type. Item type. Number of elements in the array. Created array object. Extracts single value from the stream. Extracts single value from the stream. Gets DateTime object data from the stream. Stream to get data from. Buffer used to extract blob parts. Extracted DateTime data. Gets blob data from the stream. Stream to get blob data from. Buffer used to extract blob parts. Blob data. Gets clipboard data from the stream. Stream to get data from. Buffer that can be used to extract clipboard data parts. Clipboard data. Gets object value from the stream. Stream to get data from. Maximum size of the data to extract. Extracted object. Gets object value from the stream. Stream to get data from. Maximum size of the data to extract. Extracted object. Writes object into the stream. Stream to write data into. Object to write. Size of the written data. Writes property data into the stream. Stream to write data into. Number of written bytes. Serializes names dictionary. Stream to serialize into. Dictionary to serialize. Size of the serialized data. Serializes vector data. Serializes single value into the stream. Stream to serialize into. Value to serialize. Value type. Size of the written data. Serializes blob data. Stream to write blob into. Blob value to write. Size of the written data. Sets property value. Value to set. Type of the property to set. Indicates whether it is property or just link to source of some property. Read-only. Returns id of the parent property. Read-only. GEts or sets property id. Offset to the section header. Section id. Section size. Contains all section properties. Code page of the section. Initializes new instance of the section. Extracts properties from the stream. Stream to get section from. Parses dictionary based on the internal variables value. Stream to get dictionary from. Dictionary to fill if necessary. Parses property names. Stream to get property data from. Information about dictionary placement inside stream. Parsed dictionary. Parses special properties (they shouldn't be visible to user and they contain some information). Parses property names based on previously stored internal information. Stream to get data from. Parsed dictionary. Saves section into stream. Stream to save section into. Prepares property name dictionary. Dictionary with property names. Key - property id, value - property name. Offset to the section header. Section id. Section size. Properties count. Gets list of all properties. Contains constants that defines all known sector types. Represents the stream helper. Size of the Int32 in bytes. Size of the Int162 in bytes. Size of the Double in bytes. Reads Int16 value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Int32 value. Reads Int32 value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Int32 value. Reads Double value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Double value. Writes Int16 value from the stream. Stream to get data from. Value to write. Size of the written data. Writes Int32 value from the stream. Stream to write data into. Value to write. Size of the written data. Reads Double value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Double value. Gets ASCII string from the stream starting from the current position. Stream to get data from. Approximate string size. Extracted string. Gets ASCII string from the stream starting from the current position. Stream to get data from. Approximate string size. Extracted string. Get the code page name for the current codepage Gets encoding information for the corresponding code page. Extracts unicode string from the stream. Gets ASCII string from the stream starting from the current position. Stream to get data from. Approximate string size. Extracted string. Writes unicode string into steram. Stream to write data into. Value to write. Size of the written data in bytes. Writes string into stream using specified encoding. Stream to write data into. Value to write. Encoding to use. Size of the written data in bytes. Adds padding if necessary. Removes last zero character from the string if it is present. Value to check. String after removal. Generate default name. Start string. Collection with names. Returns new name. Field type is not Specifies. Specifies Addins. Offset subsequent text within a line to the left, right, up or down. Prompt the user for text to assign to a bookmark. The name of the document's author from Summary Info. Insert an automatic number. Insert an automatic number in legal format. Insert an automatic number in outline format. Insert an AutoText entry. Insert text based on style. Insert a delivery point barcode. The comments from Summary Info. Compares two values. The date the document was created. Specifies data. Insert data from an external database. Specified Today`s Date. Specified Type as FieldDDE. Specified Type as FieldDDEAuto. Insert the value of the property. Insert the value of the document variable. The total document editing time. Specifies OLE embedded object. Specified Empty Field. Specifies Field Expression. The document's name. The size on disk of the active document. Prompt the user for text to insert in the document. Specifies FieldType as FootnoteRef. Specifies Check box control. Specifies Drop Down box control. Specifies Text control. Calculates the result of an expression. Specifies FieldGlossary. Specifies GoToButton control. Specifies HTMLActiveX control. Specifies Hyperlink control. Evaluate arguments conditionally. Specifies FieldType as Import. Specifies FieldType as Export. Insert a picture from a file. Insert text from a file. Create an index. Mark an index entry. Data from Summary Info. The keywords from Summary Info. Name of user who last saved the document. Linked OLE2 object. Insert an element in a list. Run a macro. Insert a mail merge field. The number of the current merge record. Merge record sequence number. Go to the next record in a mail merge. Conditionally go to the next record in a mail merge. Insert the number of a footnote or endnote. The number of characters in the document. The number of pages in the document. The number of words in the document. Represents an ActiveX control such as a command button etc. Insert the number of the current page. Insert the number of the page containing the specified bookmark. Download commands to a printer. The date the document was last printed. Stores data for documents converted from other file formats. Insert literal text. Insert the text marked by a bookmark. Create an index, table of contents, table of figures, and/or table of authorities by using multiple documents. Insert the number of times the document has been saved. The date the document was last saved. Insert the number of the current section. Insert the total number of pages in the section. Insert an automatic sequence number. Assign new text to a bookmark. Conditionally skip a record in a mail merge. Insert the text from a like-style paragraph. The document's subject from Summary Info. The document's Subscriber from Summary Info. Insert a special character The name of the template attached to the document. The current time. The document's title from Summary Info. Create a table of authorities. Make a table of authorities entry. Create a table of contents. Make a table of contents entry. Address from Tools Options User Info. Initials form Tools Options User Info. Name from Tools Options User Info. Specifies FieldType as Shape. Specifies FieldType as BIDIOUTLINE. Specifies AddressBlock Specifies FieldType as Unknown. Tab stop leader No leader. Dotted leader. Hyphenated leader. Single line leader. Heavy line leader. Specifies paragraph text is aligned to the left. Specifies paragraph text is aligned to the center. Specifies paragraph text is aligned to the right. Specifies paragraph text is aligned to both left and right. Specifies paragraph characters are distributed to fill the entire width of the paragraph. Specifies paragraph uses medium-length Kashida, if the language is Arabic. In other languages, paragraph text is justified with a medium character compression ratio. Specifies paragraph uses longer length Kashida, if the language is Arabic. In other languages, paragraph text is justified with a high character compression ratio. Specifies paragraph uses small length Kashida, if the language is Arabic. In other languages, paragraph text is justified with a high character compression ratio. Specifies paragraph text is justified with Thai distributed justification, if the language is Thai. In other languages, text is justified with a low character compression ratio. Specifies the text wrap style. In line with text. Top and bottom. Wraps text around the shape. Line continuation is on the opposite side of the shape. Places shape in front of text. Tight. Through. Places shape behind text. Represents the caption angle type. Fixed caption angle type. Free caption angle type. Represents the caption escape direction. Horizontal caption escape direction. Vertical caption escape direction. Auto caption escape direction. Represents the caption type. Straight line caption type. Angled line caption type. Angled connector line caption type. Represents the color mode. Greyscale color mode. Mono color mode. Watermark color mode. Represents the draw aspect. Content draw aspect. Thumbnail draw aspect. Icon draw aspect. Print view draw aspect. Represents drawing fill type. No fill. Solid fill. Bitmap fill. Gradient fill. Hatch fill. Represents reference point for image. Top left. Top. Top right. Left. Center. Right. Bottom left. Bottom. Bottom right. Represents measure align type. Autmatic measure align. Left outside measure align. Inside measure align. Right outside measure align. Represents vertical measure align. Automatic vertical measure align. Above vertical measure align. Below vertical measure align. Center vertical measure align. Represents shadow. Visible shadow. Hidden shadow. Represents stroke. No stroke. Dash stroke. Solid stroke. Represents stroke line join. Miter join. Round join. Bevel join. Middle join. No join. Inherited join. Represents text area horizontal alignment. Left align. Center align. Right align. Justify. Represents text area vertical alignment. Top align. Middle align. Bottom align. Justify. Represents measure units. Auto. Millimeter (mm). Centimeter (cm). Meter (m). Kilometer (km). Point (pt). Pica (pc). Inch (inch). Feet (ft). Mile (mi). Represents how fill property paints the shape. if the result is zero then the point is outside the path. Otherwise, it is inside. If this number is odd, the point is inside; if even, the point is outside. Represents the shape to be used at the end of open subpaths when they are stroked. Butt shape. Square shape. Round shape. Closing the instance Gets/Sets the Continuous section Textbody first item Gets/Sets the Continuous section Textbody last item Gets/Sets the section style name for the OTextbodyItem Gets/Sets the list level number for the Paragraph in percent in percent Sets the width scale, specific for parsers. The width scale. Sets the height scale, specific for parsers. The height scale. Gets or sets the picture height in points The float that specifies the height. Gets or sets the picture width in points. The float that specifies the width. Gets or sets the picture height scale factor in percent. The float that specifies the height scale factor. Gets or sets the picture width scale factor in percent. The float that specifies the width scale factor. Gets or sets the name of the picture. The string that represents the name. Gets or sets absolute horizontal position of the picture in points. The float that specifies the horizontal position. The horizontal position is relative to the . Gets or sets absolute vertical position of the picture in points. The float that specifies the vertical position. The vertical position is relative to the . Gets or sets the index of the order. The index of the order. Gets or Sets the id to the picture instance Gets the HeaderFooterContent child items Gets or sets the name of the object. Gets the Even page footer Gets the First page header content Gets the First page footer content Collection of all the styles in the workbook. Adds specified style into this collection. Style that must be added. Collection of all the styles in the workbook. Adds specified style into this collection. Style that must be added. Adds specified style into this collection. Style that must be added. Gets/Sets the current page layout columns count Gets/Sets the current page layout columns gap Collection of all the styles in the workbook. Adds specified style into this collection. Style that must be added. First visible character. Chars with codes less than 0x20 which are allowed to be used inside xml strings. Saves the document to ODS format. Serializes doument manifest which specifies the files in the arhive. Serializes the mimetype value. Serializes meta data file. Serialize the list elements To serialize TOC source entries Serialize OPicture instance Serialize Merge Field The Merge Field Serialize Merge Field The Merge Field Serialize hyperlink field The Field Document default Paragraph properties Document Default Text properties Serializes teh Odd/First Page HeaderFooter contents This class holds the name of the Syncfusion.DocIO.Base assembly and provides a helper routine that helps with resolving types when loading a serialization stream and when the framework probes for assemblies by reflection. The full name of this assembly without version information: "Syncfusion.DocIO.Base". A reference to the for the DocIO assembly. The root namespace of this assembly. Used internally for locating resources within the assembly. Configuration class for the DocIO library. In the current version, there are no explicit settings. Adding this component from the toolbar allows you to easily configure your project for MS Word support. Initializes a new instance of the class. Copyright notice for the library. Closes this instance. Represents a collection of items. Represents the child shape of group shape in the Word document. Represents the shape common. Provides the base implementation for all paragraph items. The base implementation of IWidget interface Provides the base implementation for DLS entities. Provides the base implementation for all the classes with holder behavior. Specifies the Word document instance. Initializes a new instance of the class. Initializes a new instance of the class with the specified instance. The instance. Initializes a new instance of the class with the specified instance and instance. The doc. The owner. Sets the owner. The owner. Sets the owner. The doc. Sets the owner. The doc. The owner. "Listener" for state change. Closes this instance. Gets the owner document. Read-only. The instance. Gets the owner. The owner. Represents required functionality for serialization by XDLSReader/Writer. Used for objects/items implementation Object can writes by this method own "value" properties Object can writes by this method own complex/binary data. Object can reads by this method own "value" properties Object can reads by this method own complex/binary data. Object can use this method for restore references. Gets special holder with child objects. Initializes a new instance of the class. The doc. The entity. Clones itself. Returns cloned object. Clones the relations. The doc. Clones itself. Returns cloned object. Writes object data as xml attributes. The object. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Registers child objects in XDSL holder. Closes this instance. Represents an entity Creates a duplicate of the entity. The object which is a copy of the current entity Gets the of this entity. Gets the owner of the entity. The that specifies the owner. Gets the type of the entity. The of the current item. Gets the next sibling of the entity. The that represents the next sibling. Gets the previous sibling of the entity. The that represents the previous sibling. Gets a value indicating whether this instance is composite. True if this instance is composite, otherwise false. Represents the revision collection. Represents the revision collection if the item is cloned and not added to document. Determine whether the paraItem is in floating item or not. Checks whether current floating is fallback item or not. Determines whether the specified built in style type is character style or not. built in style. trueif the built in style type is character style, otherwisefalse Initializes a new instance of the class. The object. The that is the owner. Creates a duplicate copy of the entity. The object which is a copy of the current entity. Returns bool indiacting whether the text is in vertical direction Adds the self. Attaches to document Removes the self. Gets the index in parent collection. Determines whether is parent of the specified entity. The entity. If it is parent of the specified entity, set to true. To initialize the layoutinfo as null Last TOC Entry entity Set to True if last TOC entry is reached Gets the owner textbody Gets the base entity for shape. Gets the base entity Gets the hierarchical index of the entity. The hierarchicalIndex. Get ZOrderIndex value for the entity Sort the floating item based on its DOM Position Second floating item Truewhen we need to sort the floating item collection based on its position sort the floating items based on its owner table and paragraph first floating item owner paragrpah second floating item owner paragrpah sort the floating items based on its owner table first floating item owner table cell second floating item owner cell Gets the owner section of given entity Entity Owner section of current entity Gets the owner table of given entity Entity Owner table of current entity Gets the owner cell The Owner cell of the given entity Compare the current document with revised document The original document instance Remove and unlink revision from the entity while removing. Remove and unlink revision from the format base while removing the entity. Closes this instance. Gets the owner of the entity. The that specifies the owner. Gets the type of the entity. The of the current item. Gets the next sibling of the entity. The that represents the next sibling. Gets the previous sibling of the entity. The that represents the previous sibling. Gets a value indicating whether this instance is composite. True if this instance is composite, otherwise false. Gets a value indicating whether this is detached. if detached, set to true. Gets the revision changes marked with revision marks in a range or document. Represents a base Widget interface Initializing LayoutInfo value to null Gets layout info. Initializes a new instance of the class. The doc. The owner. Initializing layout info to null Gets layout info. Represents the paragraph item Gets the owner paragraph of the current paragraph item. Read-only The instance which is the owner of the current item. Gets a value indicating whether this item was inserted to the document, when is or was set to true. Read-only. True if this instance was inserted; otherwise, false. Gets a value indicating whether this item was deleted from the document, when is or was set to true. Read-only. True if this instance is delete revision; otherwise, false. Specifies the character format. Gets the WMath which contains the math run element Represents IOfficeMathRunElement which contains paragraph item Return WMath in Word document Applies the style with the specified name to all paragraph items. The string that represents the style name. The specified style must exists in collection. Applies the specified style. Style name Specified style must exist in Document.Styles collection Get Owner Paragraph of the Item is in SDTInlineContent Sets the insert revision. if it specifies insert revision, set to true. Sets the delete revision. if it specifies delete revision, set to true. Initializes a new instance of the class with the specified instance. The instance. Attaches to paragraph. Detaches from owner. Accepts the changes. Removes the format changes. Determines whether has tracked changes. if has tracked changes, set to true. Gets the char format. //Apply the table style properties to cloned paragraph. Original paragraph. Cloned paragraph. Sets the character format. Checks the shape field Updates track changes revision of para item while adding the entity. Checks the track change. The item. Closes this instance. Creates a duplicate copy of . The reference of the newly created object. Releases all resources used by the object. Creates a duplicate copy of the . The reference of the newly created object. //Sets the move revision first and last item The move revision The item Clones the relations. The doc. Get text wrapping style Determines whether is wrapping bounds added or not. Set the wrapping bounds added flag. Gets the lay out in cell. Get vertical origin Get shape vertical alignment Get shape horizontal alignment Get horizontal origin Get horizontal position Get vertical position Gets the allow overlap. Get the effectExtent values Get Left margin of the section. Get the right margin of the section Get the base entity Get width relative to percent Get height relative to percent Gets the index of the wrap collection. Used to parse a VML Path points of 2007 custom shape. Parse a VML Path and create a Path2D point collections. Represent a input VML path to parse. Returns a parsed Path2d point collection. Skip a leading white spaces of input Path from specified starting index. Represent a input VML Path. Represent a starting index. Gets a numeric Path point from a specified index to next Path separator. Represent a input VML Path. Represent a starting index. Returns a VML Path point. Gets a next VML Path command index from specified start index. Represent a input path to find. Represent a start index to start from. Returns a index of next VML Path command. Check whether input path has only a valid (supported) VML Path commands or not. At present, we do support for only limited VML Path commands and this method used to identify whether current ChildShape Path has supported VML Path commands or not. Represent a input path to check. Returns true, if all the VML commands are supported; Otherwise false. Update a VML Path points with its CoordinateSize and CoordinateOrigin values. Represent a updated bounds of a child shape. Re-update the VML Path points with its CoordinateSize and CoordinateOrigin values. Gets or sets a value indicating whether this is cloned. true if cloned; otherwise, false. Gets the owner paragraph of the current paragraph item. Read-only The instance which is the owner of the current item. Gets a value indicating whether this item was inserted to the document, when is or was set to true. Read-only. True if this instance was inserted; otherwise, false. Gets a value indicating whether this item was deleted from the document, when is or was set to true. Read-only. True if this instance is delete revision; otherwise, false. Gets or set a value indicating whether this instance has changed format. if this instance has changed format, set to true. Gets or sets the start pos of paragraph item. The start pos. Gets the end pos of paragraph item. The end pos. Gets a value indicating whether this is detached. if detached, set to true. Sets the paragraph item character format. The paragraph item char format. Reserved for internal use. If the item is move revision range first item, then returns true else false. This boolean is maintained for cloned item which is not added to document If the item is move revision range last item, then returns true else false. This boolean is maintained for cloned item which is not added to document Get or set the new start position Get or set new end position. Sets the property key Creates a duplicate copy of this or object. The reference to the newly created object. Gets layouting bounds for shape's text body /// Gets or sets ID of the shape Gets or sets the height of the shape or chart measured in points. The float that specifies the height of the shape or chart. Gets or sets the width of the shape or chart measured in points. The float that specifies the width of the shape or chart. Gets or sets the height scale factor of shape or chart or child shapes measured in percent. The float that specifies the height scale factor. Gets or sets the width scale factor of shape or chart or child shapes measured in percent. The float that specifies the width scale factor. Properties Collection Gets or sets the value for the property with specified key. The key for the property. An object with the specific key. Gets or sets the alternate text for the shape or chart. The string that represents the alternate text. Gets or sets the name of the shape or chart. The string that represents the name. Gets or sets the title for the shape or chart. The string that represents the title. Gets the stream the shape/chart elements Gets or Sets the path Gets or sets the Coordinate size of the shape or chart. The for the shape or chart. Gets or sets the Coordinate X Origin of the shape or chart. The for the shape or chart. Gets or sets the Coordinate Y Origin of the shape or chart. The for the shape or chart. Represent a widget that can MEASURE self. Measures self size. Sets the property key Detaches from owner. Executes when the entity is attached to the owner document. Creates a duplicate copy of this object. The reference of the newly created . Clones the relations. Gets the Guide List value of custom shape Gets the Av List value of custom shape Clones the ChildShape format Creates a duplicate copy of the shape format. The reference of the newly created . Creates a duplicate copy of this object. The reference of the newly created . Checks whether the fill style needs to be taken from the parent child group shape. Child Group Shape Apply owner group shape or childGroupshape fill Textbox, shape or picture Implemented alternative method to improve the performance To get the color from theme item To get the percentage value from the given string Initializing LayoutInfo value to null Creates the layout information. Compares the current child shape with another child shape of another document. Gets the child shape text for Word comparison Gets the properties text for Word comparison Gets or Sets the Custom Shape path list value Gets or Sets a VML Path points to draw. Flag to ensure Effect Style applied for shape inline Gets the shape guide The shape guide. Gets or Sets picture hRef string Gets the SVG image as byte array. Read-only. The array that represents SVG image bytes. Gets or set the SVG external image link. Flag to ensure Fill Style applied for shape inline Gets or sets a value indicating whether [flip horizantal]. true if [flip horizantal]; otherwise, false. Gets or sets a value indicating whether [flip vertical]. true if [flip vertical]; otherwise, false. Flag to ensure Fill Style applied for shape inline Gets or Sets the shape style references Flag to ensure Fill Style applied for shape inline Flag to ensure Line Style applied for shape inline Gets or Sets the Font reference color Gets or sets the X position of the child shape within the Group shape Gets or sets the Y position of the child shape within the Group shape Gets or sets the X position of the child shape within the Group shape Gets or sets the Y position of the child shape within the Group shape Gets or Sets the type of Shape Gets or Sets the type of the ChildShape element Gets a value indicating whether the ChildShape instance contains valid text body. Gets or Sets the left position Gets or Sets the top position Properties Collection Gets or Sets the left position Gets or Sets the top position Gets or Sets the left position Gets or Sets the top position Gets or Sets textbody content of the child shape Gets or Sets the text body properties Gets or Sets line format Gets or Sets fill format Gets or sets the chart instance. Gets or sets the XmlParagraphItem Gets or sets the type of the auto shape Gets the image as byte array Gets the document instance Gets/ sets Effect format of the shape Gets or Sets the flag for Horizontal rule Gets or sets a value indicating whether this is text box shape Gets or Sets the adjustments Gets or sets the child shape rotation in degree. The float that specifies the rotation value of the child shape. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Gets or Sets the Arc size Gets or Sets 2007 unparsed streams Gets or Sets the flag for StandardColorHR Gets or Sets the flag for UseNoShadeHR Gets the relations. The relations. Gets the docx style properties. The docx style props. Gets or sets the value indicating whether the anchor is in cell Gets or sets a value indicating whether [is2007 shape]. true if [is2007 shape]; otherwise, false. Gets the image relations. The image relations. Gets the Entity type Get/Set Text content layouting bounds for shape Gets or sets the child shape rotation in degree after calculating a proper rotation from parent group shape. The float that specifies the rotation value of the child shape to render in PDF. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Gets or sets a value indicating whether [flip horizantal] after calculating a proper flipH from parent group shape. true if [flip horizantal]; otherwise, false that specifies the flipH value of the child shape to render in PDF. Gets or sets a value indicating whether [flip vertical] after calculating a proper flipV from parent group shape. true if [flip vertical]; otherwise, false that specifies the flipV value of the child shape to render in PDF. Gets or sets the value for the property with specified key. The key for the property. An object with the specific key. To auto generate shape id To add child shape for grouping The child shape Creates a duplicate copy of this object. The reference of the newly created . Clones the relations. Compares the current child groupshape with another child groupshape of another document. Gets the child group shape text for Word comparison Gets the properties text for Word comparison Gets or sets the X position of the child group shape within the Group shape Gets or sets the Y position of the child group shape within the Group shape Gets or Sets the child extents X- value Gets or Sets child extents Y- value Checks the item is picture Gets the Entity type Represent a Path2D class to hold a VML custom Path points. Create a object for Path2D class with specified VML PathCommandType and VML PathPoints. Represent a type of VML Path command. Represent a VML Path points. Create a object for Path2D class CLone Path2D Closes this instance. Compares the current path2D with another path2D. Gets the properties text for Word comparison Gets a VML Path command type. Gets a custom VML Path points. Stores the path elements Gets or Sets the path width Gets or Sets the path height Gets or Sets whether path is stroke Represents the group shape in the Word document. Provides the base implementation for chart and shape classes. Creates a duplicate copy of this or object. The reference to the newly created object. Gets or sets the horizontal origin values for shape or chart. The member that specifies the horizontal origin. Gets or sets the horizontal origin value related to relative width of shape. The member that specifies the horizontal origin. Gets or sets the vertical origin value related to relative height of shape. The member that specifies the vertical origin. Gets or sets the horizontal origin value related to relative horizontal position. The member that specifies the horizontal origin. Gets or sets the vertical origin value related to realtive vertical position. The member that specifies the vertical origin. Gets or sets the horizontal alignment for shape or chart. The member that specifies the horizontal alignment. Gets or sets horizontal position of shape or chart measured in points. The float that specifies the horizontal position of the shape or chart. Gets or sets the relative horizontal position of shape. Gets or Sets the relative vertical position of shape. Gets or Sets relative height of shape. Gets or Sets relative width of shape. Gets or Sets a value indicating whether the shape has relative vertical position. Gets or Sets a value indicating whether the shape has relative horizontal position. Gets or Sets a value indicating whether the shape has relative height. Gets or Sets a value indicating whether the shape has relative width. Gets or sets vertical origin of the shape or chart. The member that specifies the vertical origin. Gets or sets the vertical alignment of the shape or chart. The member that specifies the vertical alignment. Gets or sets the vertical position of the shape or chart measured in points. The float that specifies the vertical position of the shape or chart. Gets or sets the text wrap format of the shape or chart. The for the shape or chart. Gets or sets the relative height of the shape Gets or sets a value indicating whether the shape or chart should be preserved behind the text that surrounds the shape or chart. True if the shape or chart will be preserved behind the text; false if the shape or chart will be preserved in front of the text. Gets or sets the value indicating whether the anchor is in cell Gets or sets the value indicating whether the anchor position can be modified. True if the position of anchor should not be modified; otherwise, false. Gets or sets a value indicating whether this instance is cloned. true if this instance is cloned; otherwise, false. True if visible; otherwise, false. Gets or sets the left edge extent value for a shape The float that specifies the left edge value of effect extent Gets or sets the top edge extent value for a shape The float that specifies the top edge value of effect extent Gets or sets the right edge extent value for a shape The float that specifies the right edge value of effect extent Gets or sets the bottom edge extent value for a shape The float that specifies the bottom edge value of effect extent Add the paragraph items to the Group shape The collection. Adds the specified shape (picture, shape, group shape) to the group shape. The instance Convet the Shape to ChildShape instance The Shape instance Converts textbox to childShape instance. The Textbox instance Converts Chart to childShape instance. The Chart instance Convert the Picture to ChildShape instance The Picture instance Convert the into child shape. The group shape Detaches from owner. Executes when the entity is attached to the owner document. Update the group shape bounds and child shape bounds Ungroups the child shapes in the group shape Returns the ungrouped items as paragraph item array. Ungroup all the child shapes in Converts the child shape into shape. Represents a child shape. Convert the into . Represents one of in the Convert the to The instance The instance Convert the into . Represents one of in the Convert the into . Represents one of in the Initializes a new instance of class with the specified instance. The instance. Initializes a new instance of class with the specified instance. The instance. The collection within the GroupShape. Compares the current groupshape with another groupshape of another document. Gets the Group shape text for Word comparison Gets the properties text for Word comparison Initializes the default values for GroupShape in VML structure. Creates a duplicate copy of this object. The reference of the newly created . Clones the relations. Check whether group shape has child group shape or not. Returns true, if it has a child group shape; Otherwise false. Applies the specified character format to the shape. The character format to be applied. Duplicates the group shape format Initializing LayoutInfo value to null Sets the width depends on relative width of shape. Sets the height depends on relative height of shape. Creates the layout information. Implemented alternative method to improve the performance Gets the Shape object as Image Gets or sets the child shape Gets the relations. The relations. Gets the image relations. The image relations. Gets or sets the group shape rotation in degree. The float that specifies the rotation value of the group shape. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. The following code example demonstrates how to gets or sets the rotation value of group shape in degree. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Creates new group shape GroupShape groupShape = new GroupShape(document); //Adds group shape to the paragraph. paragraph.ChildEntities.Add(groupShape); //Creates new shape Shape shape = new Shape(document, AutoShapeType.RoundedRectangle); //Sets height and width for shape shape.Height = 100; shape.Width = 150; //Sets horizontal and vertical position shape.HorizontalPosition = 72; shape.VerticalPosition = 72; //Set wrapping style for shape shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText; //Sets horizontal and vertical origin shape.HorizontalOrigin = HorizontalOrigin.Page; shape.VerticalOrigin = VerticalOrigin.Page; //Adds the specified shape to group shape groupShape.Add(shape); //Creates new picture WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Sets wrapping style for picture picture.TextWrappingStyle = TextWrappingStyle.InFrontOfText; //Sets height and width for the image picture.Height = 100; picture.Width = 100; //Sets horizontal and vertical position picture.HorizontalPosition = 400; picture.VerticalPosition = 150; //Sets horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page; picture.VerticalOrigin = VerticalOrigin.Page; //Adds the specified picture to group shape groupShape.Add(picture); //Sets group shape rotation in degree groupShape.Rotation = 90; //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As WParagraph = CType(section.AddParagraph, WParagraph) 'Creates new group shape Dim groupShape As GroupShape = New GroupShape(document) 'Adds group shape to the paragraph. paragraph.ChildEntities.Add(groupShape) Dim shape As Shape = New Shape(document, AutoShapeType.RoundedRectangle) 'Sets height and width for shape shape.Height = 100 shape.Width = 150 'Sets horizontal and vertical position shape.HorizontalPosition = 72 shape.VerticalPosition = 72 'Set wrapping style for shape shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText 'Sets horizontal and vertical origin shape.HorizontalOrigin = HorizontalOrigin.Page shape.VerticalOrigin = VerticalOrigin.Page 'Adds the specified shape to group shape groupShape.Add(shape) Dim picture As WPicture = New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Sets wrapping style for picture picture.TextWrappingStyle = TextWrappingStyle.InFrontOfText 'Sets height and width for the image picture.Height = 100 picture.Width = 100 'Sets horizontal and vertical position picture.HorizontalPosition = 400 picture.VerticalPosition = 150 'Sets horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page picture.VerticalOrigin = VerticalOrigin.Page 'Adds the specified picture to group shape groupShape.Add(picture) 'Sets group shape rotation in degree groupShape.Rotation = 90 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets a Horizontal flipping of GroupShape. true indicates that a groupshape has been flipped horizontally; otherwise, false. This property returns True if the specified groupshape is flipped around the horizontal axis, and False if not. The following code example demonstrates how to gets or sets the horizontal flip to group shape. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Creates new group shape GroupShape groupShape = new GroupShape(document); //Adds group shape to the paragraph. paragraph.ChildEntities.Add(groupShape); //Creates new shape Shape shape = new Shape(document, AutoShapeType.RoundedRectangle); //Sets height and width for shape shape.Height = 100; shape.Width = 150; //Sets horizontal and vertical position shape.HorizontalPosition = 72; shape.VerticalPosition = 72; //Set wrapping style for shape shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText; //Sets horizontal and vertical origin shape.HorizontalOrigin = HorizontalOrigin.Page; shape.VerticalOrigin = VerticalOrigin.Page; //Adds the specified shape to group shape groupShape.Add(shape); //Creates new picture WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Sets wrapping style for picture picture.TextWrappingStyle = TextWrappingStyle.InFrontOfText; //Sets height and width for the image picture.Height = 100; picture.Width = 100; //Sets horizontal and vertical position picture.HorizontalPosition = 400; picture.VerticalPosition = 150; //Sets horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page; picture.VerticalOrigin = VerticalOrigin.Page; //Adds the specified picture to group shape groupShape.Add(picture); //Sets horizontal flip to the group shape groupShape.FlipHorizontal = true; //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As WParagraph = CType(section.AddParagraph, WParagraph) 'Creates new group shape Dim groupShape As GroupShape = New GroupShape(document) 'Adds group shape to the paragraph. paragraph.ChildEntities.Add(groupShape) Dim shape As Shape = New Shape(document, AutoShapeType.RoundedRectangle) 'Sets height and width for shape shape.Height = 100 shape.Width = 150 'Sets horizontal and vertical position shape.HorizontalPosition = 72 shape.VerticalPosition = 72 'Set wrapping style for shape shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText 'Sets horizontal and vertical origin shape.HorizontalOrigin = HorizontalOrigin.Page shape.VerticalOrigin = VerticalOrigin.Page 'Adds the specified shape to group shape groupShape.Add(shape) Dim picture As WPicture = New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Sets wrapping style for picture picture.TextWrappingStyle = TextWrappingStyle.InFrontOfText 'Sets height and width for the image picture.Height = 100 picture.Width = 100 'Sets horizontal and vertical position picture.HorizontalPosition = 400 picture.VerticalPosition = 150 'Sets horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page picture.VerticalOrigin = VerticalOrigin.Page 'Adds the specified picture to group shape groupShape.Add(picture) 'Sets horizontal flip to the group shape groupShape.FlipHorizontal = True 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets a Vertical flipping of GroupShape. true indicates that a groupshape has been flipped vertically; otherwise, false. This property returns True if the specified groupshape is flipped around the vertical axis, and False if not. The following code example demonstrates how to gets or sets the vertical flip to group shape. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Creates new group shape GroupShape groupShape = new GroupShape(document); //Adds group shape to the paragraph. paragraph.ChildEntities.Add(groupShape); //Creates new shape Shape shape = new Shape(document, AutoShapeType.RoundedRectangle); //Sets height and width for shape shape.Height = 100; shape.Width = 150; //Sets horizontal and vertical position shape.HorizontalPosition = 72; shape.VerticalPosition = 72; //Set wrapping style for shape shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText; //Sets horizontal and vertical origin shape.HorizontalOrigin = HorizontalOrigin.Page; shape.VerticalOrigin = VerticalOrigin.Page; //Adds the specified shape to group shape groupShape.Add(shape); //Creates new picture WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Sets wrapping style for picture picture.TextWrappingStyle = TextWrappingStyle.InFrontOfText; //Sets height and width for the image picture.Height = 100; picture.Width = 100; //Sets horizontal and vertical position picture.HorizontalPosition = 400; picture.VerticalPosition = 150; //Sets horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page; picture.VerticalOrigin = VerticalOrigin.Page; //Adds the specified picture to group shape groupShape.Add(picture); //Sets vertical flip to the group shape groupShape.FlipVertical = true; //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As WParagraph = CType(section.AddParagraph, WParagraph) 'Creates new group shape Dim groupShape As GroupShape = New GroupShape(document) 'Adds group shape to the paragraph. paragraph.ChildEntities.Add(groupShape) Dim shape As Shape = New Shape(document, AutoShapeType.RoundedRectangle) 'Sets height and width for shape shape.Height = 100 shape.Width = 150 'Sets horizontal and vertical position shape.HorizontalPosition = 72 shape.VerticalPosition = 72 'Set wrapping style for shape shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText 'Sets horizontal and vertical origin shape.HorizontalOrigin = HorizontalOrigin.Page shape.VerticalOrigin = VerticalOrigin.Page 'Adds the specified shape to group shape groupShape.Add(shape) Dim picture As WPicture = New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Sets wrapping style for picture picture.TextWrappingStyle = TextWrappingStyle.InFrontOfText 'Sets height and width for the image picture.Height = 100 picture.Width = 100 'Sets horizontal and vertical position picture.HorizontalPosition = 400 picture.VerticalPosition = 150 'Sets horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page picture.VerticalOrigin = VerticalOrigin.Page 'Adds the specified picture to group shape groupShape.Add(picture) 'Sets vertical flip to the group shape groupShape.FlipVertical = True 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets the Entity Type Gets or Sets the AutoShape type Gets or Sets the line format Flag to ensure Fill Style applied for shape inline Flag to ensure Line Style applied for shape inline Gets or Sets the shape style references Flag to ensure Effect Style applied for shape inline Gets/ sets Effect format of the shape Gets or sets a value indicating whether [is2007 shape]. true if [is2007 shape]; otherwise, false. Flag to ensure Fill Style applied for shape inline Gets or sets the fill effects for the shape. The instance. Flag to ensure Fill Style applied for shape inline Gets or Sets the X- value Gets or Sets 2007 unparsed streams Gets or Sets Y- value Gets or Sets the child extents X- value Gets or Sets child extents Y- value Gets or Sets the left position Gets or Sets the top position Gets the docx style properties. The docx style props. Represents the collection interface. Initializes a new instance of the class. The object. The The object. Initializes a new instance of the class. Initializes a new instance of the class. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Closes this instance. Gets the number of items in the collection. The integer that specifies the count of items. Gets the inner list. The inner list. Adds the specified to the collection. The instance. Update the group shape bounds and child shape bounds Removes a child shape at the specified index. The integer that represents the position of the child shape to remove. Removes all the child shapes in the group shape. Removes the specified child shape from the Group shape. The instance Gets the at the specified index The zero-based index of the entity to get. Returns the at the specified index Closes this instance. Compares the properies of effect Format. Gets the properties text for Word comparison Flag to identify the shadow effect Flag to identify the glow effect Flag to identify the reflection effect Flag to identify the soft edges effect Flag to state there is no soft edges Flag to identify the ThreeD Scene effect Flag to identify the ThreeD shape effects Flag to state the shape contains effect list Holds the shadow properties of the shape Holds the glow properties of the shape Holds the ThreeD properties of the shape Holds the reflection properties of the shape Holds the soft edge radius Collection to maintain the effect extensions Keys. Closes this instance. Check for the property key from the property collection Clones this instance. Compares the properies of the shadow format. Gets the properties text for Word comparison Holds the shadow Offset X Holds the shadow Offset X in choiceitem Holds the shadow Offset Y Holds the shadow Offset Y in choiceitem Holds the Shadow Secondary Offset X Holds the Shadow Secondary Offset Y Holds the Shadow Origin X Holds the Shadow Origin Y Holds the Shadow Matrix Holds the Horizontal Skew Angle Holds the Vertical Skew Angle Holds the Horizontal Scaling Factor Holds the Vertical Scaling Factor Either to rotate the shadow effect along with shape Holds the Direction angle Holds the Distance of shadow from the shape Holds the Blur radius of the shadow Holds the Shadow alignment Holds the shadow color Holds the shadow back color Holds the name of the shape for which the shadow effect has been applied Conveys the type of the shadow applied Flag to denote the shadow visiblity Holds the value of the shadow opacity Flag to denote the shadow transparency to be applied Initializes a new instance of the class. The shape base. Clones this instance. Compares the properies of the three D format. Gets the properties text for Word comparison Holds the value for the ThreeD Contour Width. Holds the value for the ThreeD Extrusion height. Tells about the ThreeD Material Type Holds the distance of the ThreeD effect from the shape's ground. Holds the value for the Bevel Bottom Height. Holds the value for the Bevel Bottom Width. Bevel Bottom Preset Type Holds the value for Bevel Top Height. Holds the value for the Bevel Top Width. Bevel Top Preset Type Holds the color of the contour. Holds the Contour opacity value Holds the Extrusion Color Holds the Extrusion Opacity Holds the value of Backdrop's Anchor X'axis Holds the value of Backdrop's Anchor Y'axis Holds the value of Backdrop's Anchor Z'axis Holds the value of Backdrop's Normal X'axis Holds the value of Backdrop's Normal Y'axis Holds the value of Backdrop's Normal Z'axis Holds the value of Backdrop's Up X'axis Holds the value of Backdrop's Up Y'axis Holds the value of Backdrop's Up Z'axis Holds the view value Camera preset type Holds the value for percentage Holds the value of camera rotaton X'axis Holds the value of camera rotaton Y'axis Holds the value of camera rotaton Z'axis LightRig type LigthRig Direction Holds the value of lightrig rotaton X'axis Holds the value of lightrig rotaton Y'axis Holds the value of lightrig rotaton Z'axis Brightness value for ThreeD effect Holds the value of color mode Holds the value for diffusity Holds the value of Edge Holds the value of Facet Fore Depth value Back Depth value Light Level value Secondary Light Level value LightRig secondary rotation x axis LightRig secondary rotation y axis LightRig secondary rotation z axis Rotation x axis Rotation y axis Rotation z axis Rotation Orientation angle Extrusion Plane type Extrusion Tyoe Extrusion Rendering mode Rotation angle x axis Rotation angle y axis Rotation Center x axis Rotation Center y axis Rotation center z axis Value of Shininess Skew Amount Skew Angle Value for Specularity View Point X axis View Point Y axis Rotation Z axis View Point Origin x axis View Point Origin Y axis Boolean flag for ThreeD Effect Visiblity Boolean flag for Light face Boolean flag for Light harsh Boolean flag for secondary light harsh Flag to lock the rotaion center Boolean flag to apply metal effect Boolean flag for auto rotation center Extrusion string To Convey the shape has back drop effect To Convey the shape has camera effect To Convey the shape has light rig effect To Convey the shape has bevel bottom To Convey the shape has bevel top To Convey the shape has contour color To Convey the shape has extrusion color ThreeD Effects properties ThreeD effects extensions. Specifies the types of auto shapes. The unknown type Rectangle. Rounded rectangle. Snip single corner rectangle. Snip same side corner rectangle. Snip diagonal corner rectangle. Snip and round single corner rectangle. Round single corner rectangle. Round same side corner rectangle. Round diagonal corner rectangle. Oval. Isosceles triangle. Right triangle. Parallelogram. Trapezoid. Diamond. Regular pentagon. Hexagon. Heptagon. Octagon. Decagon. Dodecagon. Pie. Chord. Teardrop. Frame. Half frame. L_Shape. Diagonal stripe. Cross. Plaque. Can. Cube. Bevel. Donut. "No" symbol. Block arc. Folded corner. Smiley face. Heart. Lightning bolt. Sun. Moon. Cloud. Arc. Double bracket. Double brace. Left bracket. Right bracket. Left brace. Right brace. Block arrow that points right. Block arrow that points left. Block arrow that points up. Block arrow that points down. Block arrow with arrowheads that point both left and right. Block arrow that points up and down. Block arrows that point up, down, left, and right. Block arrow with arrowheads that point left, right, and up. Block arrow that follows a curved 90-degree angle. Block arrow forming a U shape. Block arrow with arrowheads that point left and up. Block arrow that follows a sharp 90-degree angle. Points up by default. Block arrow that curves right. Block arrow that curves left. Block arrow that curves up. Block arrow that curves down. Block arrow that points right with stripes at the tail. Notched block arrow that points right. Pentagon. Chevron Callout with arrow that points right. Callout with arrow that points down. Callout with arrow that points left. Callout with arrow that points up. Callout with arrowheads that point both left and right. Callout with arrows that point up and down. Callout with arrows that point up, down, left, and right. Block arrow that follows a curved 180-degree angle. Math plus(+). Math minus(-). Math multiply(x). Math division. Math equal(=). Math not equal. Process flowchart symbol.. Alternate process flowchart symbol. Decision flowchart symbol. Data flowchart symbol. Predefined process flowchart symbol. Internal storage flowchart symbol. Document flowchart symbol. Multi-document flowchart symbol. Terminator flowchart symbol. Preparation flowchart symbol. Manual input flowchart symbol. Manual operation flowchart symbol. Connector flowchart symbol. Off-page connector flowchart symbol. Card flowchart symbol. Punched tape flowchart symbol. Summing junction flowchart symbol. "Or" flowchart symbol. Collate flowchart symbol. Sort flowchart symbol. Extract flowchart symbol. Merge flowchart symbol. Stored data flowchart symbol. Delay flowchart symbol. Sequential access storage flowchart symbol. Magnetic disk flowchart symbol. Direct access storage flowchart symbol. Display flowchart symbol. Explosion. Explosion. 4-point star. 5-point star. 6-point star. 7-point star. 8-point star. 10-point star. 12-point star. 16-point star. 24-point star. 32-point star. Ribbon banner with center area above ribbon ends. Ribbon banner with center area below ribbon ends. Ribbon banner that curves up. Ribbon banner that curves down. Vertical scroll. Horizontal scroll. Wave. Double wave. Rectangular callout. Rounded rectangle-shaped callout. Oval-shaped callout. Cloud callout. Callout with border and horizontal callout line. Callout with diagonal straight line. Callout with angled line. Callout with horizontal accent bar. Callout with diagonal callout line and accent bar. Callout with angled callout line and accent bar. Callout with horizontal line. Callout with no border and diagonal callout line. Callout with no border and angled callout line. Callout with border and horizontal accent bar. Callout with border, diagonal straight line, and accent bar. Callout with border, angled callout line, and accent bar. Line. Elbow connector. Curved connector. Straight line connector. Bent connector. Bent connector. Curved connector. Curved connector. Curved connector. Curved connector. Specifies the fill type. Fill is the same as the background. Gradient fill. Mixed fill. Patterned fill. Picture fill. Solid fill. Textured fill. No Fill. Specifies the blip transparency Specifies the type of line formats. Gradient format. None format. patterned format. Solid format. Specifies the fill pattern type used. 10% of the foreground color. 20% of the foreground color. 25% of the foreground color. 30% of the foreground color. 40% of the foreground color. 50% of the foreground color. 5% of the foreground color. 60% of the foreground color. 70% of the foreground color. 75% of the foreground color. 80% of the foreground color. 90% of the foreground color. Cross. Thick lines in the foreground color running from the top to the right-hand side of the shape. Thick horizontal lines in the foreground color. Thick lines in the foreground color running from the top to the left-hand side of the shape. Thick vertical lines in the foreground color. Dashed lines in the foreground color running from the top to the right-hand side of the shape. Dashed horizontal lines in the foreground color. Dashed lines in the foreground color running from the top to the left-hand side of the shape. Dashed vertical lines in the foreground color. Rectangular brick pattern running diagonally across the shape. Diagonal Cross Small angled shapes in the foreground color running in alternating rows down the shape. Dotted perpendicular lines in the foreground color running diagonally to form diamonds across the shape. Dotted perpendicular lines in the foreground color running horizontally and vertically to form grid lines across the shape. Downward Diagonal Horizontal Rectangular brick pattern running horizontally across the shape. Squares in alternating foreground/background colors. Large dots in the foreground color scattered across the shape. Solid, widely spaced perpendicular lines in the foreground color running horizontally and vertically to form grid lines across the shape. Thin lines in the foreground color running from the top to the right-hand side of the shape. Thin horizontal lines in the foreground color. Thin lines in the foreground color running from the top to the left-hand side of the shape. Thin vertical lines in the foreground color. Not supported. Narrowly spaced horizontal lines in the foreground color. Narrowly spaced vertical lines in the foreground color. Solid perpendicular lines in the foreground color running diagonally to form diamonds across the shape. Very thick solid lines in the foreground color running vertically, coupled with very thick lines and 40% of the foreground color running horizontally. Overlapping curved rectangles running diagonally across the shape. Small squares in alternating foreground/background colors. Small dots in the foreground color scattered across the shape. Solid, closely spaced perpendicular lines in the foreground color running horizontally and vertically to form grid lines across the shape. Diamond shapes in alternating foreground/background colors. Circles that use foreground and background colors to make them appear three-dimensional, oriented in rows across the shape. Trellis pattern in the foreground color. Upward Diagonal Vertical Wavy lines in the foreground color. Weave pattern in the foreground color running diagonally across the shape. Widely spaced lines in the foreground color running from the top to the right-hand side of the shape. Widely spaced lines in the foreground color running from the top to the left-hand side of the shape. Zigzag lines running horizontally across the shape. Specifies the texture alignment. Not Supported. Aligned at bottom. Aligned at bottom left. Aligned at bottom right. Aligned at center. Aligned at left. Aligned at right. Aligned at top. Aligned at top left. Aligned at top right. Specifies the style for a line. Single line. Not supported. Thick line with a thin line on each side. Thick line next to thin line. For horizontal lines, thick line is above thin line. For vertical lines, thick line is to the left of the thin line. Thick line next to thin line. For horizontal lines, thick line is below thin line. For vertical lines, thick line is to the right of the thin line. Two thin lines. Represents the fill format options for the in the Word document. The following code example demonstrates how to set the fill format to the shape in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into Word document WSection section = document.AddSection() as WSection; //Add a paragraph to created section WParagraph paragraph = section.AddParagraph() as WParagraph; string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Append the text to the created paragraph paragraph.AppendText(paraText); //Add a paragraph to created section paragraph = section.AddParagraph() as WParagraph; //Add the rectangle shape to the document Syncfusion.DocIO.DLS.Shape shape = paragraph.AppendShape(AutoShapeType.Rectangle, 200, 75); //Set wrapping type as inline shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.Inline; //Set the fillformat for the shape shape.FillFormat.Color = Color.AliceBlue; shape.FillFormat.Fill = true; shape.FillFormat.Transparency = 60; //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into Word document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add a paragraph to created section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add a paragraph to created section paragraph = TryCast(section.AddParagraph(), WParagraph) 'Add the rectangle shape to the document Dim shape As Syncfusion.DocIO.DLS.Shape = paragraph.AppendShape(AutoShapeType.Rectangle, 200, 75) 'Set wrapping type as inline shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.Inline 'Set the fillformat for the shape shape.FillFormat.Color = Color.AliceBlue shape.FillFormat.Fill = True shape.FillFormat.Transparency = 60 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of class. The to which the fill effects should be added. Initializes a new instance of class. The to which the fill effects should be added. Initializes a new instance of class. The to which the fill effects should be added. Initializes a new instance of class. The to which the fill effects should be added. Initializes a new instance of class. The to which the fill effects should be added. To maintain a FillFormat for picture Closes this instance. Closes this instance. Compare the properties of Fill Format True, if all the properties matches, else false Gets the fill format text for Word comparison Gets or sets the value indicates whether the filled attribute is default Gets or Sets the value indicates whether the fill color is default Gets or sets a value indicating whether to fill with color. True if need to fill with color; otherwise, false. Gets or sets the color to fill The specifies the fill color. Gets or sets the transparency value measured in percentage(%). The float that represents the transparency value. Gets or sets the contrast Gets or sets a value indicating whether fill use from group shape or not Initializes a new instance of the class. The shape base. Close the instances. Clones the blip format. Compares the proerties of blip formats True, if all the properties matches, else false Gets the blip format text for Word comparison Blip Threshold Blip inverse color Blip inverse opacity Alpha replacement amount Bevel Threshold value Flag to make the glow effect grow value for blur radius Flag to denote the alpha Denotes whether the preset color need to serialize first or not As per MS word behavior, if input document has DuotonePresetColor as first Then, the DuotonePresetColor should serialize first. Default value is false Color from value color to value color from opacity Color to opacity Hue value of blip Luminance value of blip Saturation value of blip Brightness value Contrast value of blip Tint Amount Tint Hue Duotone color Duotone Preset color Duotone opacity Collection of extension URI Image Effect of the blip picture Has to apply compression Blip has image properties Gets/Sets the blip rotation with shape object Image Record Stream for blip extensions Gets or sets the transparency value measured in percentage(%). The float that represents the transparency value. Gets or sets a value indicating whether the image color is Grayscale. true if image color is Grayscale; otherwise, false. This property is supported for VML picture alone. Gets or sets a value indicating whether the image color is Bilevel. true if image color is Bilevel; otherwise, false. This property is supported for VML picture alone. Sets the property key Get the PropertiesHash value. Disposes the instances used. Clones the instance. Compare properties of Image effect True, if all the properties matches, else false Gets the image effect text for Word comparison Sharpen Amount Color Temprature Saturation Brightness Value Contrast value Blur radius Cement Trasparency amount Cement cracking amount Chalk transparency amount Chalk Pressure criss cross transparency criss cross pressure cutout opacity amount Cutout shades Grain transparency Grain Size Glass opacity amount Glass Scaling amount Glow diffusity opacity Glow diffusity intensity Glow Edges opacity Glow edges smoothness Light screen opacity Light screen Grid Line drwaing opacity Drawing Pensil size Marker Transparency Marker Size Mosiaic Bubble Transparency Mosiaic Bubble Pressure Stroke Transparency stroke intensity Brush Transparency Brush Size Pastel Transparency Pastel Size Gray Scale Transparency Gray scale size Pencil Sketch Transparency Pencil Sketch Size Photocopy Transparency Photocopy size Plastic Wrap Transparency Plastic Wrap Smoothness Texturizer Transparency Texturizer Size Sponge Transparency Sponge brush size Collection of Foreground vertices Collection of background vertices Background removal rectangle Has the background removal effect Properties Collection Initializes a new instance of the class. The shape base. Compares the properies of the glow format. Gets the properties text for Word comparison Closes this instance. Clones this instance. Represents the line format options for the in the Word document. The following code example demonstrates how to set the line format to the shape in the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into Word document WSection section = document.AddSection() as WSection; //Add a paragraph to created section WParagraph paragraph = section.AddParagraph() as WParagraph; string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Append the text to the created paragraph paragraph.AppendText(paraText); //Add a paragraph to created section paragraph = section.AddParagraph() as WParagraph; //Add the rectangle shape to the document Syncfusion.DocIO.DLS.Shape shape = paragraph.AppendShape(AutoShapeType.Rectangle, 200, 75); //Set wrapping type as inline shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.Inline; //Set the line format for the shape shape.LineFormat.Line = true; shape.LineFormat.Color = Color.Red; shape.LineFormat.DashStyle = LineDashing.DashDot; shape.LineFormat.Style = Syncfusion.DocIO.DLS.LineStyle.ThickThin; shape.LineFormat.Weight = 3; shape.LineFormat.Transparency = 30; //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into Word document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add a paragraph to created section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add a paragraph to created section paragraph = TryCast(section.AddParagraph(), WParagraph) 'Add the rectangle shape to the document Dim shape As Syncfusion.DocIO.DLS.Shape = paragraph.AppendShape(AutoShapeType.Rectangle, 200, 75) 'Set wrapping type as inline shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.Inline 'Set the line format for the shape shape.LineFormat.Line = True shape.LineFormat.Color = Color.Red shape.LineFormat.DashStyle = LineDashing.DashDot shape.LineFormat.Style = Syncfusion.DocIO.DLS.LineStyle.ThickThin shape.LineFormat.Weight = 3 shape.LineFormat.Transparency = 30 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of class for the specified . The object. Initializes a new instance of class for the specified . The object. Initializes a new instance of class for the specified . The object. Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Sets the property value. The prop key. The value. Closes this instance. Check for the property key from the property collection Clones this instance. Compares the properies of line format. Gets the properties text for Word comparison Gets or sets the value indicating whether the outline of the shape should be drawn. The default is false. True if the outline should be drawn; otherwise, false. Properties Collection Gets or sets the value for the property with specified key. The key for the property. An object with the specific key. Gets or sets a for the outer line of the shape. The object that specifies line color. Gets or sets the style of the arrowhead at the beginning of the specified line. Gets or sets the for the outline of the shape. The member that specifies the line dashing style. Gets or sets the style of the arrowhead at the end of the specified line. Gets or sets the outline style for the shapes. The member that specifies the line style. Gets or sets the transparency value measured in percentage(%). The float that specifies the transparency value. Gets or sets a value for the line weight measured in points. The float that represents the line weight. Gets or Sets the value indicates whether the 2007 stroked property is defined or not Gets or sets the value indicates whether the "w" attribute in the "ln" tag is null in DOCX parsing. Gets or sets the miter join limit. The miter join limit. Key values Fields Closes this instance. Clones this instance. Compares the properies of the reflection format. Gets the properties text for Word comparison Reflection blur radius Specifies the direction to offset the shadow Specifies the how far to offset the shadow Specifies the start reflection opacity Specifies the start position of start opacity Specifies the end reflection opacity Specifies the end position of end opacity Specifies the fade direction of reflected shadow Specifies the angle of horizontal skew Specifies the angle of vertical skew Specifies the percentage of horizontal ratio Specifies the percentage of vertical ratio Specifies the if reflection rotates with shape Reflected shadow alignment Represents the shapes and it manipulations in the Word document. The following code example demonstrates how to add new shape to document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument("Template.docx"); //Add the section into Word document WSection section = document.AddSection() as WSection; //Add a paragraph to created section WParagraph paragraph = document.Sections[0].Paragraphs[0]; //Create a new shape Syncfusion.DocIO.DLS.Shape shape = new Syncfusion.DocIO.DLS.Shape(document, AutoShapeType.Rectangle); //Specify the shape formatting options shape.AlternativeText = "demo shape"; shape.FillFormat.Color = Color.LightBlue; shape.Height = 75; shape.Width = 100; shape.HorizontalAlignment = ShapeHorizontalAlignment.Left; shape.HorizontalOrigin = HorizontalOrigin.Margin; shape.LineFormat.Line = true; shape.LineFormat.Style = Syncfusion.DocIO.DLS.LineStyle.Single; shape.Name = "Rectangle"; shape.Title = "Rectangle shape demo"; shape.VerticalAlignment = ShapeVerticalAlignment.Center; shape.VerticalOrigin = VerticalOrigin.Page; shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.Square; string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Add the new paragraph to shape with some text shape.TextBody.AddParagraph().AppendText(paraText); //Add the shape to paragraph paragraph.ChildEntities.Add(shape); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument("Template.docx") 'Add the section into Word document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add a paragraph to created section Dim paragraph As WParagraph = document.Sections(0).Paragraphs(0) 'Create a new shape Dim shape As New Syncfusion.DocIO.DLS.Shape(document, AutoShapeType.Rectangle) 'Specify the shape formatting options shape.AlternativeText = "demo shape" shape.FillFormat.Color = Color.LightBlue shape.Height = 75 shape.Width = 100 shape.HorizontalAlignment = ShapeHorizontalAlignment.Left shape.HorizontalOrigin = HorizontalOrigin.Margin shape.LineFormat.Line = True shape.LineFormat.Style = Syncfusion.DocIO.DLS.LineStyle.[Single] shape.Name = "Rectangle" shape.Title = "Rectangle shape demo" shape.VerticalAlignment = ShapeVerticalAlignment.Center shape.VerticalOrigin = VerticalOrigin.Page shape.WrapFormat.TextWrappingStyle = TextWrappingStyle.Square Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Add the new paragraph to shape with some text shape.TextBody.AddParagraph().AppendText(paraText) 'Add the shape to paragraph paragraph.ChildEntities.Add(shape) 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Variable that specifies the shape type ID. Compares the current textbox with another textbox of another document. Gets the text box text for Word comparison Gets the properties text for Word comparison Initializes a new instance of class with the specified instance and the shape type. The instance. The type of the shape. Initializes the default values for Shape in VML structure. Detaches from owner. Executes when the entity is attached to the owner document. Creates a duplicate copy of this object. The reference of the newly created . Creates a duplicate copy of this object. The reference of the newly created . To get the color from theme item To get the percentage value from the given string Clones the relations. Applies the specified character format to the shape. The character format to be applied. Initializing LayoutInfo value to null Sets the width depends on relative width of shape. Sets the height depends on relative height of shape. Creates the layout information. Gets clipping bounds for shape's text body /// Checks whether shape's line width need to consider for shape client area calcualtion Gets the Guide List value of custom shape Gets the Av List value of custom shape Sets the Guide List value of custom shape Sets the Av List value of custom shape Implemented alternative method to improve the performance Gets the Shape object as Image Gets a VML Path points to draw. Gets or sets a value indicating whether [is2007 shape]. true if [is2007 shape]; otherwise, false. Get/Set Text content layouting bounds for shape Gets or sets the shape rotation in degree. The float that specifies the rotation value of the shape. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. The following code example demonstrates how to gets or sets the rotation value of rectangle shape in degree. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Adds new shape to the document Shape rectangle = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100); //Adds textbody contents to the shape paragraph = rectangle.TextBody.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("This text is in rounded rectangle shape"); //Sets rectangle shape rotation in degree rectangle.Rotation = 90; //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As WParagraph = CType(section.AddParagraph, WParagraph) 'Adds new shape to the document Dim rectangle As Shape = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100) 'Adds textbody contents to the shape paragraph = CType(rectangle.TextBody.AddParagraph, WParagraph) Dim text As IWTextRange = paragraph.AppendText("This text is in rounded rectangle shape") 'Sets rectangle shape rotation in degree rectangle.Rotation = 90 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets the for the shape. The instance that specifies the formatting options for text. Gets the docx style properties. The docx style props. Gets the image relations. The image relations. Gets the shape guide The shape guide. Gets the shape type of the current shape object. Read-only. The member that specifies the type of the shape. The shape type must represent an AutoShape other than a line or free form drawing. Gets or sets the text body for the shape. The that specifies the shape body contents. Gets or sets the line formatting options for outline of the shape. The instance. Gets or sets the fill effects for the shape. The instance. Gets/ sets Effect format of the shape Gets the type of the entity. The of the current item. Gets or sets a Horizontal flipping of Shape. true indicates that a shape has been flipped horizontally; otherwise, false. This property returns True if the specified shape is flipped around the horizontal axis, and False if not. The following code example demonstrates how to gets or sets the horizontal flip to rectangle shape. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Adds new shape to the document Shape rectangle = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100); //Adds textbody contents to the shape paragraph = rectangle.TextBody.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("This text is in rounded rectangle shape"); //Sets horizontal flip to the rectangle shape rectangle.FlipHorizontal = true; //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As WParagraph = CType(section.AddParagraph, WParagraph) 'Adds new shape to the document Dim rectangle As Shape = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100) 'Adds textbody contents to the shape paragraph = CType(rectangle.TextBody.AddParagraph, WParagraph) Dim text As IWTextRange = paragraph.AppendText("This text is in rounded rectangle shape") 'Sets horizontal flip to the rectangle shape rectangle.FlipHorizontal = True 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets a Vertical flipping of Shape. true indicates that a shape has been flipped vertically; otherwise, false. This property returns True if the specified shape is flipped around the vertical axis, and False if not. The following code example demonstrates how to gets or sets the vertical flip to rectangle shape. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Adds new shape to the document Shape rectangle = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100); //Adds textbody contents to the shape paragraph = rectangle.TextBody.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("This text is in rounded rectangle shape"); //Sets vertical flip to the rectangle shape rectangle.FlipVertical = true; //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As WParagraph = CType(section.AddParagraph, WParagraph) 'Adds new shape to the document Dim rectangle As Shape = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100) 'Adds textbody contents to the shape paragraph = CType(rectangle.TextBody.AddParagraph, WParagraph) Dim text As IWTextRange = paragraph.AppendText("This text is in rounded rectangle shape") 'Sets vertical flip to the rectangle shape rectangle.FlipVertical = True 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Flag to ensure Effect Style applied for shape inline Flag to ensure Line Style applied for shape inline Flag to ensure Fill Style applied for shape inline Flag to ensure Fill Style applied for shape inline Flag to ensure Fill Style applied for shape inline Gets the relations. The relations. Property to store the fallback picture of shape Gets or Sets the Custom Shape path list value Compares the properties of ShapeStyleReference. Gets the properties text for Word comparison Represents the text frame in the Shape. Member to hold the collection of properties values and its keys. Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Sets the property value. The prop key. The value. Initializes a new instance of class for the specified . The object. Compares the properties of text frame. Gets the properties text for Word comparison Gets or sets the flag for text frame. The member that specifies internal margin of text frame. Gets or sets the direction of the text in the Shape. The member that specifies the direction of text. Gets or sets the vertical alignment of the text. The member that specifies the text vertical alignment. Gets or sets the shape relative width percentage. Gets or sets the shape relative height percentage. Gets or sets the horizontal width origin value. The member that specifies the width origin value. Gets or sets the vertical height origin value. The member that specifies the height origin value. Gets the internal margin. The internal margin. Properties Collection Gets or sets the value for the property with specified key. The key for the property. An object with the specific key. Represents the functions that specify how text wraps around the object in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet"); //Add new shape to the document Shape rectangle = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100); //Set position for shape rectangle.VerticalPosition = 72; rectangle.HorizontalPosition = 72; //Set text wrapping style rectangle.WrapFormat.TextWrappingStyle = TextWrappingStyle.TopAndBottom; rectangle.WrapFormat.DistanceBottom = 10; rectangle.WrapFormat.DistanceLeft = 10; rectangle.WrapFormat.DistanceRight = 10; rectangle.WrapFormat.DistanceTop = 20; paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet") 'Add new shape to the document Dim rectangle As Shape = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100) 'Set position for shape rectangle.VerticalPosition = 72 rectangle.HorizontalPosition = 72 'Set text wrapping style rectangle.WrapFormat.TextWrappingStyle = TextWrappingStyle.TopAndBottom rectangle.WrapFormat.DistanceBottom = 10 rectangle.WrapFormat.DistanceLeft = 10 rectangle.WrapFormat.DistanceRight = 10 rectangle.WrapFormat.DistanceTop = 20 paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Sets the TextWrappingStyle,specific for parsers. TextWrapStyle Closes this instance. Compares the properties of wrap format. Gets the fill format text for Word comparison Gets or sets a value indicating whether a given shape can overlap other shapes. Gets or sets the distance (in points) between the document text and the bottom edge of the text-free area surrounding the specified shape. The float that specifies the distance between text and bottom edge of the shape. Gets or sets the distance (in points) between the document text and the left edge of the text-free area surrounding the specified shape. The float that specifies the distance between text and left edge of the shape. Gets or sets the distance (in points) between the document text and the right edge of the text-free area surrounding the specified shape. The float that specifies the distance between text and right edge of the shape. Gets or sets the distance (in points) between the document text and the top edge of the text-free area surrounding the specified shape. The float that specifies the distance between text and top edge of the shape. Gets or sets a value indicating whether the shape or chart should be preserved behind the text that surrounds the shape or chart. True if the shape or chart will be preserved behind the text; false if the shape or chart will be preserved in front of the text. Gets or sets the text wrapping type for the specified shape. The member that specifies the wrapping type. Gets or sets the text wrapping style for the specified shape. The member that specifies the text wrapping style. Gets or sets the wrap polygon. The wrap polygon. Helps to navigate between bookmarks in the Word document and manipulate its contents. Initializes a new instance of the class with the specified . The object. //Loads an existing Word document into DocIO instance WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Creates the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Moves the virtual cursor to the location before the end of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Gets the bookmark content as WordDocumentPart WordDocumentPart wordDocumentPart = bookmarkNavigator.GetContent(); //Saves the WordDocumentPart as separate Word document WordDocument newDocument = wordDocumentPart.GetAsWordDocument(); newDocument.Save("Result.docx", FormatType.Docx); //Releases the resources hold by WordDocument instance newDocument.Close(); document.Close(); 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Creates the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Moves the virtual cursor to the location before the end of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Gets the bookmark content as WordDocumentPart Dim wordDocumentPart As WordDocumentPart = bookmarkNavigator.GetContent() 'Saves the WordDocumentPart as separate Word document Dim newDocument As WordDocument = wordDocumentPart.GetAsWordDocument() newDocument.Save("Result.docx", FormatType.Docx) 'Releases the resources hold by WordDocument instance newDocument.Close() document.Close() Moves to the specified bookmark in the document. The specified bookmark name is not present in the Word document. The string that specifies the bookmark name. The following code example demonstrates how to move to specific bookmark in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content TextBodyPart part = bookmarkNavigator.GetBookmarkContent(); //Add the retrieved content into another new section document.AddSection(); foreach(TextBodyItem item in part.BodyItems) document.LastSection.Body.ChildEntities.Add(item); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content Dim part As TextBodyPart = bookmarkNavigator.GetBookmarkContent() 'Add the retrieved content into another new section document.AddSection() For Each item As TextBodyItem In part.BodyItems document.LastSection.Body.ChildEntities.Add(item) Next document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Moves to the start or end position of the specified bookmark in the document. The string that specifies the bookmark name. Set to true to move the navigator at the beginning of the bookmark; Set to false to move the navigator at the end of the bookmark. Set to true to move the navigator after the specified bookmark start or end position; Set to false to move the navigator before the specified bookmark start or end position. The specified bookmark name is not present in the Word document. The following code example demonstrates how to move to specific bookmark in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", true, false); //Get the bookmark content TextBodyPart part = bookmarkNavigator.GetBookmarkContent(); //Add the retrieved content into another new section document.AddSection(); foreach(TextBodyItem item in part.BodyItems) document.LastSection.Body.ChildEntities.Add(item); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", True, False) 'Get the bookmark content Dim part As TextBodyPart = bookmarkNavigator.GetBookmarkContent() 'Add the retrieved content into another new section document.AddSection() For Each item As TextBodyItem In part.BodyItems document.LastSection.Body.ChildEntities.Add(item) Next document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Inserts the specified text to current bookmark. The string that represents the text to be inserted. The object that represents the inserted text. This example shows how to insert a simple text using BookmarkNavigator. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Insert a new text before the bookmark end of the bookmark bookmarkNavigator.InsertText(" Northwind Database is a set of tables containing data fitted into predefined categories."); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Insert a new text before the bookmark end of the bookmark bookmarkNavigator.InsertText(" Northwind Database is a set of tables containing data fitted into predefined categories.") document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Inserts the specified text to current bookmark along with its formatting. The string that represents the text to be inserted. True if it is save formatting, otherwise false. The object that represents the inserted text. This example shows how to insert a simple text along with its formatting using BookmarkNavigator. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Insert a new text before the bookmark end of the bookmark bookmarkNavigator.InsertText(" Northwind Database is a set of tables containing data fitted into predefined categories.", true); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Insert a new text before the bookmark end of the bookmark bookmarkNavigator.InsertText(" Northwind Database is a set of tables containing data fitted into predefined categories.", True) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Inserts the specified to current bookmark. The to be inserted. The following code example demonstrates how to insert a table using BookmarkNavigator. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move to the virtual cursor before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", false, false); //Insert a new paragraph before the bookmark end IWParagraph paragraph = new WParagraph(document); paragraph.AppendText("Northwind Database Contains the following tables:"); bookmarkNavigator.InsertParagraph(paragraph); //Insert a new table before the bookmark end WTable table = new WTable(document); table.ResetCells(3, 2); table[0, 0].AddParagraph().AppendText("Suppliers"); table[0, 1].AddParagraph().AppendText("2"); table[1, 0].AddParagraph().AppendText("Customers"); table[1, 1].AddParagraph().AppendText("1"); table[2, 0].AddParagraph().AppendText("Employees"); table[2, 1].AddParagraph().AppendText("3"); bookmarkNavigator.InsertTable(table); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move to the virtual cursor before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", False, False) 'Insert a new paragraph before the bookmark end Dim paragraph As IWParagraph = New WParagraph(document) paragraph.AppendText("Northwind Database Contains the following tables:") bookmarkNavigator.InsertParagraph(paragraph) 'Insert a new table before the bookmark end Dim table As New WTable(document) table.ResetCells(3, 2) table(0, 0).AddParagraph().AppendText("Suppliers") table(0, 1).AddParagraph().AppendText("2") table(1, 0).AddParagraph().AppendText("Customers") table(1, 1).AddParagraph().AppendText("1") table(2, 0).AddParagraph().AppendText("Employees") table(2, 1).AddParagraph().AppendText("3") bookmarkNavigator.InsertTable(table) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Inserts the specified to current bookmark. The type of the paragraph item to be inserted. The object that represents the inserted item. The following code example demonstrates how to insert a paragraph item using BookmarkNavigator. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move to the virtual cursor after the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", false, true); //Insert a new picture after the bookmark end WPicture picture = bookmarkNavigator.InsertParagraphItem(ParagraphItemType.Picture) as WPicture; picture.LoadImage(Image.FromFile("Northwind.png")); picture.WidthScale = 50; picture.HeightScale = 50; document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move to the virtual cursor after the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", False, True) 'Insert a new picture after the bookmark end Dim picture As WPicture = TryCast(bookmarkNavigator.InsertParagraphItem(ParagraphItemType.Picture), WPicture) picture.LoadImage(Image.FromFile("Northwind.png")) picture.WidthScale = 50 picture.HeightScale = 50 document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Inserts the specified to current bookmark. The to be inserted. The following code example demonstrates how to insert a paragraph using BookmarkNavigator. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move to the virtual cursor after the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", false, true); //Insert a new paragraph before the bookmark start IWParagraph paragraph = new WParagraph(document); paragraph.AppendText("Northwind Database is a set of tables containing data fitted into predefined categories."); bookmarkNavigator.InsertParagraph(paragraph); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move to the virtual cursor after the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind", False, True) 'Insert a new paragraph before the bookmark start Dim paragraph As IWParagraph = New WParagraph(document) paragraph.AppendText("Northwind Database is a set of tables containing data fitted into predefined categories.") bookmarkNavigator.InsertParagraph(paragraph) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Inserts the specified to current bookmark. The to be inserted. The following code example demonstrates how to insert a text body part using BookmarkNavigator. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move to the virtual cursor before the bookmark end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content TextBodyPart textBodyPart = bookmarkNavigator.GetBookmarkContent(); document.AddSection(); IWParagraph paragraph = document.LastSection.AddParagraph(); paragraph.AppendText("Northwind Database is a set of tables containing data fitted into predefined categories."); //Add the new bookmark into Word document paragraph.AppendBookmarkStart("bm_empty"); paragraph.AppendBookmarkEnd("bm_empty"); //Move to the virtual cursor after the start location of the bookmark "bm_empty" bookmarkNavigator.MoveToBookmark("bm_empty", true, true); //Insert the text body part after the bookmark start bookmarkNavigator.InsertTextBodyPart(textBodyPart); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move to the virtual cursor before the bookmark end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content Dim textBodyPart As TextBodyPart = bookmarkNavigator.GetBookmarkContent() document.AddSection() Dim paragraph As IWParagraph = document.LastSection.AddParagraph() paragraph.AppendText("Northwind Database is a set of tables containing data fitted into predefined categories.") 'Add the new bookmark into Word document paragraph.AppendBookmarkStart("bm_empty") paragraph.AppendBookmarkEnd("bm_empty") 'Move to the virtual cursor after the start location of the bookmark "bm_empty" bookmarkNavigator.MoveToBookmark("bm_empty", True, True) 'Insert the text body part after the bookmark start bookmarkNavigator.InsertTextBodyPart(textBodyPart) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Returns the bookmark content as a , which represents the collection of body items if the bookmark start and bookmark end are preserved in a single section. The that represents the bookmark content. This example shows how to retrieve the specified bookmark content using GetBookmarkContent method in a Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content TextBodyPart part = bookmarkNavigator.GetBookmarkContent(); //Add the retrieved content into another new section document.AddSection(); foreach(TextBodyItem item in part.BodyItems) document.LastSection.Body.ChildEntities.Add(item); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content Dim part As TextBodyPart = bookmarkNavigator.GetBookmarkContent() 'Add the retrieved content into another new section document.AddSection() For Each item As TextBodyItem In part.BodyItems document.LastSection.Body.ChildEntities.Add(item) Next document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Gets the bookmark content as , which represents the collection of sections if the bookmark start and bookmark end are preserved in different sections . The that represents the bookmark content. This example shows how to retrieve the specified bookmark content using GetContent method in a Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document with bookmark "Northwind" whose start and end preserved in different section WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content as WordDocumentPart WordDocumentPart wordDocumentPart = bookmarkNavigator.GetContent(); //Save the WordDocumentPart as separate Word document WordDocument newDocument = wordDocumentPart.GetAsWordDocument(); newDocument.Save("Result.docx", FormatType.Docx); //Release the resources hold by WordDocument instance newDocument.Close(); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document with bookmark "Northwind" whose start and end preserved in different section Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content as WordDocumentPart Dim wordDocumentPart As WordDocumentPart = bookmarkNavigator.GetContent() 'Save the WordDocumentPart as separate Word document Dim newDocument As WordDocument = wordDocumentPart.GetAsWordDocument() newDocument.Save("Result.docx", FormatType.Docx) 'Release the resources hold by WordDocument instance newDocument.Close() document.Close() End Sub Deletes the bookmark content. True if its save formatting, otherwise false. This example shows how to remove the contents of a bookmark from Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark " Northwind " bookmarkNavigator.MoveToBookmark("Northwind"); //Delete bookmark content without deleting the format in the target document. bookmarkNavigator.DeleteBookmarkContent(false); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark " Northwind " bookmarkNavigator.MoveToBookmark("Northwind") 'Delete bookmark content without deleting the format in the target document. bookmarkNavigator.DeleteBookmarkContent(False) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Deletes the bookmark content and removes the empty paragraph after deletion. True if to save formatting; otherwise, false. True if to remove paragraph with bookmark start and end when it is empty after deletion; otherwise, false. This method will be removed in future version. As a work around to remove bookmarked paragraph, utilize current bookmark property of bookmark navigator to access the current bookmarked paragraph and then remove its index from its owner (Text Body) collection. Replaces the bookmark content with the specified . The to replace the bookmark contents. You cannot replace the multi section contents into a bookmark within table in Word documents. Use for loop instead of foreach loop for iterating through document elements when replacing the bookmark contents to avoid �collection modified exception�. Since there is chance for modification in document elements while replacing the bookmark contents. The following code example demonstrates how to replace a specified bookmark content in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move to the virtual cursor before the bookmark end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content TextBodyPart textBodyPart = bookmarkNavigator.GetBookmarkContent(); document.AddSection(); IWParagraph paragraph = document.LastSection.AddParagraph(); paragraph.AppendText("Northwind Database is a set of tables containing data fitted into predefined categories."); //Add the new bookmark into Word document paragraph.AppendBookmarkStart("bm_empty"); paragraph.AppendBookmarkEnd("bm_empty"); //Move to the virtual cursor before the end location of the bookmark "bm_empty" bookmarkNavigator.MoveToBookmark("bm_empty"); //Replace the bookmark content with text body part bookmarkNavigator.ReplaceBookmarkContent(textBodyPart); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move to the virtual cursor before the bookmark end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content Dim textBodyPart As TextBodyPart = bookmarkNavigator.GetBookmarkContent() document.AddSection() Dim paragraph As IWParagraph = document.LastSection.AddParagraph() paragraph.AppendText("Northwind Database is a set of tables containing data fitted into predefined categories.") 'Add the new bookmark into Word document paragraph.AppendBookmarkStart("bm_empty") paragraph.AppendBookmarkEnd("bm_empty") 'Move to the virtual cursor before the end location of the bookmark "bm_empty" bookmarkNavigator.MoveToBookmark("bm_empty") 'Replace the bookmark content with text body part bookmarkNavigator.ReplaceBookmarkContent(textBodyPart) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Replaces the content of the bookmark with the specified . The to replace the bookmark contents. You cannot replace the multi section contents into a bookmark within table in Word documents. Use for loop instead of foreach loop for iterating through document elements when replacing the bookmark contents to avoid �collection modified exception�. Since there is chance for modification in document elements while replacing the bookmark contents. This example shows how to replace a specified bookmark content using ReplaceContent method in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document with bookmark "Northwind" whose start and end preserved in different section WordDocument templateDocument = new WordDocument("Template.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(templateDocument); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content as WordDocumentPart WordDocumentPart wordDocumentPart = bookmarkNavigator.GetContent(); //Close the template document templateDocument.Close(); //Load the Word document with bookmark NorthwindDB WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "NorthwindDB" bookmarkNavigator.MoveToBookmark("NorthwindDB"); //Replace the bookmark content with word body part bookmarkNavigator.ReplaceContent(wordDocumentPart); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document with bookmark "Northwind" whose start and end preserved in different section Dim templateDocument As New WordDocument("Template.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(templateDocument) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content as WordDocumentPart Dim wordDocumentPart As WordDocumentPart = bookmarkNavigator.GetContent() 'Close the template document templateDocument.Close() 'Load the Word document with bookmark NorthwindDB Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark bookmarkNavigator = New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "NorthwindDB" bookmarkNavigator.MoveToBookmark("NorthwindDB") 'Replace the bookmark content with word body part bookmarkNavigator.ReplaceContent(wordDocumentPart) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Replace the content of the bookmark with the specified Document. Replaces the content of the bookmark with the specified text and formatting. The string that specifies the text. True if to save formatting, otherwise false. The following code example demonstrates how to replace a specified bookmark content with simple text along with its formatting. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); document.AddSection(); IWParagraph paragraph = document.LastSection.AddParagraph(); //Add the new bookmark into Word document paragraph.AppendBookmarkStart("bm_empty"); paragraph.AppendBookmarkEnd("bm_empty"); //Move to the virtual cursor before the end location of the bookmark "bm_empty" bookmarkNavigator.MoveToBookmark("bm_empty"); //Replace the bookmark content with text body part bookmarkNavigator.ReplaceBookmarkContent(" Northwind Database is a set of tables containing data fitted into predefined categories.", true); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) document.AddSection() Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add the new bookmark into Word document paragraph.AppendBookmarkStart("bm_empty") paragraph.AppendBookmarkEnd("bm_empty") 'Move to the virtual cursor before the end location of the bookmark "bm_empty" bookmarkNavigator.MoveToBookmark("bm_empty") 'Replace the bookmark content with text body part bookmarkNavigator.ReplaceBookmarkContent(" Northwind Database is a set of tables containing data fitted into predefined categories.", True) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Replace bookmark item particular index,which is before performing replace bookmark content Current bookmark name Bookmark index in Document.Bookmarks collection, which is before performing replace bookmark content Replace the word document part when bookmark item inside paragraph The word document part Deletes the bookmark content. if it is save formatting, set to true. if remove the empty paragraph, set to true. if replace bookmark content, set to true. thrown when the current bookmark is null Delete the in between section from bookmark start owner section to bookmark end owner section Bookmark start section index Bookmark end section index Delete bookmark content inside different cell Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Bookmark content comes table after paragraph,if it is table bookmark content pass endcell set to true when performing replcae operation thrown when performing replacing operation, bookmark starts in one tabel and bookmark ends in another table partially Delete the bookmark content of different cell while executing mail merge. Creates bookmark and maintain in same index in document collection. Paragraph where to insert bookmark start Paragraph where to insert bookmark end Index where to insert bookmark in document collection Bookmark start Column first value Column last value Checks whether bookmark encloses the table. Bookmark start table Bookmark end table Bookmark start Bookmark end Deletes the textbody from the bookmark start in a cell and bookmark end in the nested table of same cell. Represents a Represents a cell of bookmark start. Represents a table of bookmark end. Represents a row index of bookmark end in the nested table. Delete the bookmark content inside two different table rows Bookmark start owner table Bookmark end owner table Bookmark start owner row index Bookmark end owner row index Checks tehe two different table position properties are same Bookmark start owner table Bookmars end table owner table trueIf the two table properties are same. else false Delete the bookmark content inside table after paragraph. Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Delete the table rows inside bookmark start and bookmark end Bookmark start owner row index Bookmark end owner row index BookmarkTable When the table contains bookmark start/end and its corresponding bookmark start/end is outside the table, then remove the bookmark start/end and place it in previous paragraph. Delete the table rows inside bookmark start and bookmark end Bookmark start owner row index Bookmark end owner row index BookmarkTable When the bookmark end is the last item in the last cell of the row, then remove the entire row. Else remove only the items upto the bookmark end. To check whether the nested bookmark end is outside of the current bookmark Nested bookmark start paragraph Nested bookmark end paragraph Nested bookmark Current bookmark end index Returns true if the nested bookmark end is within the current bookmark Delete bookmark content inside paragraph after table. Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Is replcae bookmark content, set to true thrown when performing replace operation, bookmark starts before the table and bookmark ends in table partially Get the paragraph to insert the bookmark start and bookmark end Bookmark start owner textbody Bookmark end owner textbody Bookmark owner paragraph Bookmark owner paragraph index Bookmark start Bookmark end Set to truewhen the bookmark content inside same section Set to true when the bookmark content inside different section Delete the bookmark content inside table Table which is having bookmark content Bookmark strat owner row index Bookmark end owner row index Bookmark start cell index Bookmark end cell index Deletes the cell paragraph child items from its owner paragraph Tabel cell last paragraph Delete bookmark content inside different section paragraph items/single section paragraph items. if it is save formatting, set to true. If replace operation set to true. Removes the field in the bookmark for following cases Field start or field end is out of the bookmark Entire field is within the bookmark The paragraph which contains the current bookmark The index next to the bookmark start Merge start section text body items to end textbody Start text body Deletes the bodyitems after the bookmark start owner item. Bookmark start owner index Bookmark end owner index Bookmark start owner textbody Bookmark start next item index If the bookmark content preserved in single section set to true Ensures whether the items present in between the specified bookmark start and current bookmark start. Delete the Bookmarks inside the current bookmark region from the paragraph.. If the bookmark content inside different section, combine bookmark end owner section to Sections collection Bookmark end owner paragraph index Bookmark end owner text body When true ,if the bookmark end entity is first item of it's owner paragraph Gets the owner section Entity To check the bookmark end entity is first item of it's owner paragraph Bookmark end owner paragraph Current bookmark end Bookmark end previous item index To check the bookmark end entity is first item of it's owner table Bookmark end row index Bookmark end table index bookmark end paragraph index Bookmark end entity Returns true, if the bookmark end is the first item of table Set the current bookmark position when the bookmark content inside paragraph Bookmark start owner paragraph Bookmark end owner paragraph Start text body Current bookmark start Current bookmark end Bookmark start owner paragraph next index Set to true when bookmark end in next section first paragraph first item Set to ,true when perform replcae operation Current bookmark index in document bookmarks collection Set Bookmark position when bookmark content inside different table rows Bookmark start owner table Bookmark end owner table Bookmark start owner textbody Bookmark end owner textbody Current bookmark index in document bookmarks collection Delete the paragraph items which are present before bookmark end entity Bookmark end owner paragraph Current bookmark end Moves the source paragraph child items to the destination paragraph child items Replaces the current bookmark start and end into necessary paragraph Paragraph Current bookmark index in document bookmarks collection Replace all the worddocument content into single table WordDocumentPart content TextBodyPart content thrown when performing replacing operation bookmark starts and ends in a single table and the document part is having more than one section Checks the current state of navigator. Inserts the text range to current position The text. if it is save formatting, set to true. if it is Replaced content, set to true. TextRange Applies character formatting of the paragraph on text range. Inserts the body item. The item. Gets or sets the Word document of this object. The object. Gets the current bookmark. The current object. Gets/Sets the cursor position truemoves the cursor to the beginning of the bookmark. falsemoves the cursor to the end of the bookmark Gets/Sets the cursor position truemoves the cursor to be after the bookmark start or end position. falsemoves the cursor to be before the bookmark start or end position. Gets or sets a value indicating whether [remove empty paragraph]. true if [remove empty paragraph]; otherwise, false. Gets the current bookmark item which can be a or . Read-only. The that specifies whether it is or . Return the index to insert the item into the paragraph Represents a collection of items. Represents a collection of DLS entities. Represents required functionality for serialization by XDLSReader/Writer. Used for collections/lists implementation Collection must creates and adds new empty item. Gets the name of the tag item. The name of the tag item. Gets the count. The count. Initializes a new instance of the class. Collection must creates and adds new empty item. Clones to other collection. The coll. Gets name of xml tag Creates the item. The reader. Gets name of xml tag Represents the entities collections. Represents base interface for DLS collections. Gets the number of items in collection. The integer represents the count of the items. Gets the at the specified index. The zero-based index of the entity to get The at the specified index The index is not valid index in the Initializes a new instance of the class. The doc. Initializes a new instance of the class. The doc. The owner. Adds the specified entity to the collection. The to be added to the collection. The zero-based index of the . Thrown when paragraph is added to CheckBox and Picture content control. Clears the existing maximum preferred width information for a table row or cell if it exists. The entity to check for maximum preferred width information. Checks whether the content control supports bookmarks to add in it. Represernts or instance. Returns true, if it is valid type of content control to add bookmark; otherwise retuens false. Checks whether the entity can have paragraph. True if the owner of this entity is CheckBox,ComboBox,Drop-down and Picture content control. Get the bookmarkend index if it preserve after the the Paragraph/Table/Cell/Row end mark Removes all items from the collection. Determines whether an entity is in the collection. The to be found in the collection. True if it contains the specified entity, otherwise false. Returns the zero-based index of the specified entity. The to which the index to be found. The zero-based index of the specified entity. Inserts a entity into the collection at the specified index. The integer that specifies the index to insert the entity. The to be inserted. Update the index of the entity. Update start from next of these index entity Decide whether is it add or remove operation. Update the index of the entity. Update start from next of these index entity Decide whether is it add or remove operation. Removes the entity from the collection. The to be removed. Removes the entity at the specified index from the collection. The index of the entity to be removed. The index is not valid in the . Updates the document collections while removing the text body items from the document. Entity to be removed from the document. Checks whether the entity is a renderable item or not. Entity to check remderable or not True,if the entity is renderable else false. Updates the document collections while removing the text body items from the shape. Entity to be removed from the document. Remove and unlink revision from the entity while removing. Remove and unlink revision from the format base while removing the entity. Updates track changes revision while adding the entity. Updates track changes revision by iterating the section while adding the entity. Updates track changes revision by iterating the body item while adding the entity. Updates track changes revision by iterating the paragraph item while adding the entity. Updates track changes revision by iterating the para items while adding the entity. Updates track changes revision by iterating the body while adding the entity. Updates track changes revision by iterating the table while adding the entity. Updates track changes revision of para item while adding the entity. Checks the track change. The item. Updates track changes revision of paragraph while adding the entity. Gets Next sibling entity. The entity. Gets Previous sibling entity. The entity. Gets the index of the next or previous element. The index. The type. if it specifies next element, set to true. Removes items of specified type The type. Clones all items to destination collection. The destination collection. Occurs when all items are removed. Occurs when entity is inserted. The zero-based index to insert the entity. The to insert. Update the field range before it is removed Update the field separator and end to the field Add the field range to collection Occurs when entity is inserted. The zero-based index to insert the entity. The to insert. occurs when entity is removed. The zero-based index to remove the entity. Determines whether specified element type is correct. The entity. If the element type is correct, set to true. Called when [insert field]. The index. The entity. Called when [insert field complete]. The index. The entity. Determine whether the merge field need to be updated with field marks Update field marks for the Merge fields when add/insert into the paragraph Called when form field inserts - Performs insertion of bookmark start for the corresponding form field. Index Entity Updated index Checks the name of the form field. Name of the form field. Called after form field inserted - Inserts bookmark end for the corresponding form fields. Index Entity Updates the text from inline content control to the paragraph text. Paragraph to update the text. An to retrive text ranges. Gets the at the specified index. The zero-based index of the entity to get. The at the specified index. The index is not valid index in the . Gets the first item from the collection. The at the first index. Gets the last item from the collection. The at the last index. Gets a value indicating whether this is joined. If it is joined, set to true. Gets or sets a value indicating that the collection has wfield entity Gets the type of the elements present in the collection. The collection that contains the types of the elements. Specifies the item change entity type. Add entity type. Remove Entity type. Clear Entity type. Represents the method that will handle the collection changes. The type of action to be performed. The . Adds the specified handler. The handler. Removes the specified handler. The handler. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Sends the specified type. The type. The entity. Initializes a new instance of the class with the specified instance. The . Initializes a new instance of the class. The doc. Gets the name of xml tag The string that represents the xml tag name. Creates the item. The object. The . Gets the at the specified index. Gets the type of the elements present in the collection. Read-only. The collection that contains the types of the elements. Represents the collection of in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Get the bookmark instance with bookmark name Syncfusion.DocIO.DLS.Bookmark bookmark = document.Bookmarks["Northwind"]; //Access the bookmark start�s owner paragraph using bookmark and change its back color bookmark.BookmarkStart.OwnerParagraph.ParagraphFormat.BackColor = Color.AliceBlue; document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Get the bookmark instance with bookmark name Dim bookmark As Syncfusion.DocIO.DLS.Bookmark = document.Bookmarks("Northwind") 'Access the bookmark start�s owner paragraph using bookmark and change its back color bookmark.BookmarkStart.OwnerParagraph.ParagraphFormat.BackColor = Color.AliceBlue document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The document. Finds with specific name in the document. The string that represents the name of the bookmark to find. The with the specified name. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Get the bookmark instance using FindByName method of BookmarkCollection with bookmark name Bookmark bookmark = document.Bookmarks.FindByName("Northwind"); //Access the bookmark start�s owner paragraph using bookmark and change its back color bookmark.BookmarkStart.OwnerParagraph.ParagraphFormat.BackColor = Color.AliceBlue; document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Get the bookmark instance using FindByName method of BookmarkCollection with bookmark name Dim bookmark As Bookmark = document.Bookmarks.FindByName("Northwind") 'Access the bookmark start�s owner paragraph using bookmark and change its back color bookmark.BookmarkStart.OwnerParagraph.ParagraphFormat.BackColor = Color.AliceBlue document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Removes a bookmark at the specified index. The integer that represents the position of the bookmark to remove. The index is not valid in the . private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Remove the bookmark at the second index from Word document. document.Bookmarks.RemoveAt(1); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Remove the bookmark at the second index from Word document. document.Bookmarks.RemoveAt(1) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Removes the specified bookmark from the document. The to be removed. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Get the bookmark instance using FindByName method of BookmarkCollection with bookmark name Bookmark bookmark = document.Bookmarks.FindByName("Northwind"); //Remove the bookmark named "Northwind" from Word document. document.Bookmarks.Remove(bookmark); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Get the bookmark instance using FindByName method of BookmarkCollection with bookmark name Dim bookmark As Bookmark = document.Bookmarks.FindByName("Northwind") 'Remove the bookmark named "Northwind" from Word document. document.Bookmarks.Remove(bookmark) document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Removes all the bookmarks in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Remove all the bookmarks from Word document document.Bookmarks.Clear(); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Remove all the bookmarks from Word document document.Bookmarks.Clear() document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Adds Bookmark object to the collection. Attaches the bookmark start. The bookmark start. Sets BookmarkEnd for the bookmark specified by Name Gets the with the specified name. The string that represents the name of the bookmark in the document to get. The with the specified name. The specified bookmark name is not present in the document. Gets the at the specified index. The integer that represents the position of the bookmark in the document to get. The at the specified index. The index is not valid in the Represents the collection of in the Word document. Initializes a new instance of the class. The document. Finds with specific id in the document. The string that represents the id of the editable range to find. The with the specified id. Removes a editable range at the specified index. The integer that represents the position of the editable range to remove. Removes the specified editable range from the document. The to be removed. Adds editable range object to the collection. Represents a editable range to add in collection. Attaches the editable range start. Represents a editable range start. Sets editable raange end for the editabler range specified by id. Represents a editable range end. Gets the with the specified name. The string that represents the id of the editable range in the document to get. The with the specified id. Represents the collection of in the section of a Word document. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); foreach (WSection section in document.Sections) { //Populates the specified number of columns with specified spacing. if (section.Columns.Count > 0) section.Columns.Populate(2, 10); } //Add the section into Word document IWSection newSection = document.AddSection(); //Add the column into the section newSection.AddColumn(150, 20); //Add the column into the section newSection.AddColumn(150, 20); //Add a paragraph to created section IWParagraph paragraph = newSection.AddParagraph(); //Add a paragraph to created section paragraph = newSection.AddParagraph(); string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Append the text to the created paragraph paragraph.AppendText(paraText); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Add a paragraph to created section paragraph = newSection.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText(paraText); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") For Each section As WSection In document.Sections 'Populates the specified number of columns with specified spacing. If section.Columns.Count > 0 Then section.Columns.Populate(2, 10) End If Next 'Add the section into Word document Dim newSection As IWSection = document.AddSection() 'Add the column into the section newSection.AddColumn(150, 20) 'Add the column into the section newSection.AddColumn(150, 20) 'Add a paragraph to created section Dim paragraph As IWParagraph = newSection.AddParagraph() 'Add a paragraph to created section paragraph = newSection.AddParagraph() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Add a paragraph to created section paragraph = newSection.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The section. Adds object to the collection. The to be added. The zero-based index of the column. Populates the specified number of columns with specified spacing. The integer specifying the columns count. The float that specifies the spacing between columns. Adds object to the collection. The to be added. The bool that specifies whether the document is opened. The zero-based index of the column. Clones items to specified collection. The collection. Creates the item. The reader. The object. Gets name of xml tag The string that specifies the tag name. Gets the at the specified index. The zero-based index of the column in the collection. The at the specified index. Gets the owner section. The owner section. Represents the collection of in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Comment.docx"); //Iterate the comments in the Word document foreach (WComment comment in document.Comments) { //Modify the last paragraph text of an existing comment if it is added by "Peter" if (comment.Format.User == "Peter") comment.TextBody.LastParagraph.Text = "Modified Comment Content"; } document.Save("ModifiedComment.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Comment.docx") 'Iterate the comments in the Word document For Each comment As WComment In document.Comments 'Modify the last paragraph text of an existing comment if it is added by "Peter" If comment.Format.User = "Peter" Then comment.TextBody.LastParagraph.Text = "Modified Comment Content" End If Next document.Save("ModifiedComment.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The object. Returns the total number of comments in the document. Read-only. The integer that specifies the total number of in this . Removes the at specified index. The zero-based index of the comment to be removed. The following code example demonstrates how to remove the comment at specified index in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Comment.docx"); //Remove the second comment from a document document.Comments.RemoveAt(1); //Save and close the Word document document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Comment.docx") 'Remove the second comment from a document document.Comments.RemoveAt(1) 'Save and close the Word document document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Removes all the comments from the document. The following code example demonstrates how to remove all the comments from the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Comment.docx"); //Remove all the comments in a Word document document.Comments.Clear(); //Save and close the Word document document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Comment.docx") 'Remove all the comments in a Word document document.Comments.Clear() 'Save and close the Word document document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Adds the specified comment. Removes the specified Comment. The to be removed. The following code example demonstrates how to remove particular comment from the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Comment.docx"); //Get the second comment from a document. WComment comment = document.Comments[1]; //Remove comment from a document. document.Comments.Remove(comment); //Save and close the Word document document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Comment.docx") 'Get the second comment from a document. Dim comment As WComment = document.Comments(1) 'Remove comment from a document. document.Comments.Remove(comment) 'Save and close the Word document document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Sets the ParentParaId of the comment Gets the comment at specified index. Read-only. The zero-based index of the comment in the collection. The at the specified index. The index is not valid in the Initializes a new instance of the class. The object. Add the specified comment Gets the comment at specified index. Read-only. The zero-based index of the comment in the collection. The at the specified index. The index is not valid in the Represents the sort options for list. The type of the key. The type of the value. Represents the sort options for the list. Default capacity of internal buffers. Array which store keys in sorted order. Collection stores values. Size of collection. Version of collection data. Default comparer for keys. List of keys. List of values. Default constructor. Creates an empty list with the specified initial capacity. Initial capacity. When initialCapacity is less than zero. Creates an empty SortedList with the default initial capacity and specified comparer. The IComparer is used to determine whether two keys are equal. Creates an empty SortedList with the specified initial capacity and specified comparer. Initial capacity. The IComparer is used to determine whether two keys are equal. Copies the elements from the specified dictionary to a new list with the same initial capacity as the number of elements copied. The IDictionary to copy. Copies the elements from the specified dictionary to a new list with the same initial capacity as the number of elements copied and with the specified comparer. The IDictionary to copy. The IComparer to use to determine whether two keys are equal. When argument d is null. Returns a synchronized (thread-safe) wrapper for the SortedList. The SortedList to synchronize. A synchronized (thread-safe) wrapper for the SortedList. When list is null. Adds an element with the provided key and value to the list. The Object to use as the key of the element to add. The Object to use as the value of the element to add. When key is null. When list already contains specified key. Removes all elements from the collection. Creates a new object that is a copy of the current instance. Copy of the current instance. Clone current instance. Returns clone of current object. Determines whether the list contains an element with the specified key. Key of the element to search. True if list contains specified key. Determines whether the list contains an element with the specified key. Key of the element to search. True if list contains specified key. Determines whether the list contains the specified value. Value of the element to search. True if list contains specified value. Copies all the elements of the SortedListEx to the specified one-dimensional Array starting at the specified destination Array index. The one-dimensional Array that is the destination of the elements copied from the current list. The index in array at which copying begins. If specified array is null. If rank of the array is not 1 or there are not enough elements. If specified arrayIndex is less than zero. Gets the value at the specified index of the SortedListEx. The zero-based index of the value to get. The value at the specified index of the SortedListEx. When index is less than zero or greater than size of the list. Gets the key at the specified index of the SortedListEx. The zero-based index of the key to get. The key at the specified index of the SortedListEx. When index is less than zero or greater than size of the list. Gets the keys in the SortedListEx. An IList containing the keys in the SortedListEx. Gets the values in the SortedListEx. An IList containing the values in the SortedListEx. Returns the zero-based index of the specified key. The key to locate. The zero-based index of key, if key is found; otherwise, -1. If specified key is null. Returns the zero-based index of the first occurrence of the specified value. The value to locate (can be NULL). The zero-based index of the first occurrence of value, if value is found; otherwise, -1. Removes the element at the specified index. The zero-based index of the element to remove. When index is less than zero or greater than size of the list. Removes the element with the specified key from SortedListEx. The key of the element to remove. Replaces the value at the specific index. The zero-based index at which to save value. The Object to save into. Can be NULL. When index is less than zero or greater than size of the list. Sets the capacity to the actual number of elements. Returns an IEnumerator that can iterate through the SortedListEx. An IEnumerator for the SortedListEx. Returns an IEnumerator that can iterate through the SortedListEx. An IEnumerator for the SortedListEx. Inserts element with specified key and value at specified index. The zero-based index to insert element at. The key of the element to insert. The value of the element to insert. Ensures that the capacity of this instance is at least the specified value. The minimum capacity to ensure. Adds an element with the provided key and value to the object. The to use as the key of the element to add. The to use as the value of the element to add. Determines whether the object contains an element with the specified key. The key to locate in the object. if the contains an element with the key; otherwise, . Removes the element with the specified key from the object. The key of the element to remove. Returns the value associated with the specified key. Adds an item to the . The object to add to the . Determines whether the contains a specific value. The object to locate in the . if is found in the ; otherwise, . Copies the elements of the to an , starting at a particular index. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. Removes the first occurrence of a specific object from the . The object to remove from the . if was successfully removed from the ; otherwise, . This method also returns if is not found in the original . Capacity of internal buffers. Size of the collection. Read-only. List of keys. Read-only. List of values. Read-only. Returns True if list is readonly, False otherwise. Read-only. Returns True if collection has fixed size, False otherwise. Returns True if the collection is synchronized, False otherwise. Returns the object that can be used to synchronize access to the collection. Read-only. Gets or sets the value associated with the specified key. Gets or sets the value for the property with specified key. The key for the property. An object with the specific key. Supports cloning, which creates a new instance of a class with the same value as an existing instance. Creates a new object that is a copy of the current instance. A new object that is a copy of this instance. List for which is this enumerator. Key of the current element. Values of the current element. Index of current element. Starting index for the enumerator. Ending index for this enumerator. Version of collection data. True if current element is correct, False otherwise (before beginning or after end). Creates enumerator for specified list, starting from specified index and with specified count. List for which enumerator is being created. Starting index. Number of elements to enumerate. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Creates a new object that is a copy of the current instance. Copy of the current instance. Advances the enumerator to the next element of the collection. True if the enumerator was successfully advanced to the next element; False if the enumerator has passed the end of the collection. When the current version is not equal to the SortedListEx version. Sets the enumerator to its initial position, which is before the first element in the collection. When the current version is not equal to the SortedListEx version. Returns key of the current element. Read-only. When the current version is not equal to the SortedListEx version or if current is false. Return DictionaryEntry for the current element. When the current version is not equal to the SortedListEx version or if current is false. The current element in the collection. Read-only. If current is false. The current element in the collection. Read-only. If current is false. Returns value for the current element. When the current version is not equal to the SortedListEx version or if current is false. Index of current element. Version of collection data. List for which this collection was created. Creates KeyList for specified SortedListEx. TypedSortedListEx for which KeyList must be created. Adds an element with the provided key to the list. The Object to use as the key of the element to add. Removes all elements from the collection. Determines whether the list contains an element with the specified key. Key of the element to search. True if list contains specified key. Copies all the elements of the list to the specified one-dimensional Array starting at the specified destination Array index. The one-dimensional Array that is the destination of the elements copied from the current list. The index in array at which copying begins. If array is null or rank of the array is not 1. Copies all the elements of the list to the specified one-dimensional Array starting at the specified destination Array index. The one-dimensional Array that is the destination of the elements copied from the current list. The index in array at which copying begins. If array is null or rank of the array is not 1. Insert the value at the specific index. The zero-based index at which to save value. The Object to save into. Can be NULL. Returns an IEnumerator that can iterate through the list. An IEnumerator for the list. Returns an IEnumerator that can iterate through the list. An IEnumerator for the list. Returns the zero-based index of the specified key. The key to locate. The zero-based index of the key, if the key is found; otherwise, -1. Removes the element with the specified key from list. The key of the element to remove. Removes the element at the specified index from the list. The zero-based index of the element to remove. Size of the collection. Read-only. Returns True if list is readonly, False otherwise. Read-only. Returns True if collection has fixed size, False otherwise. Returns True if the collection is synchronized, False otherwise. Returns the object that can be used to synchronize access to the collection. Read-only. Gets or sets the key at the specified index. List for which this collection was created. Array that contain values. Creates ValueList for specified SortedListEx. List for which ValueList must be created. Re-read values from the list. Adds an element with the provided key to the list. Value to add. Removes all elements from the collection. Determines whether the list contains an element with the specified value. Value to search. True if list contains specified value. Copies all the elements of the list to the specified one-dimensional Array starting at the specified destination Array index. The one-dimensional Array that is the destination of the elements copied from the current list. The index in array at which copying begins. Copies all the elements of the list to the specified one-dimensional Array starting at the specified destination Array index. The one-dimensional Array that is the destination of the elements copied from the current list. The index in array at which copying begins. Insert the value at the specific index. The zero-based index at which to save value. The Object to save into. Can be NULL. Returns an IEnumerator that can iterate through the list. An IEnumerator for the list. Returns an IEnumerator that can iterate through the list. An IEnumerator for the list. Returns the zero-based index of the specified value. The value to locate. The zero-based index of the value, if the value is found, otherwise -1. Removes the specified value from list. The value to remove. Removes the element at the specified index from the list. The zero-based index of the element to remove. Size of the collection. Read-only. Returns True if list is readonly, False otherwise. Read-only. Returns True if collection has fixed size, False otherwise. Returns True if the collection is synchronized, False otherwise. Returns the object that can be used to synchronize access to the collection. Read-only. Gets or sets the value at the specified index. Initialiazes a new instance of class. Initializes a new instance of class with the specified comparer. The implementation to use when comparing elements. Initializes a new instance of class with the specified length. The length of the range to sort. Initializes a new instance of class from the existing dictionary collection. The to copy. Represents the sorting of dictionary collection. The type of the key. The type of the value. Represents a subset from the collection of specified type entities. Initializes a new instance of the class. The collection. The type. Removes all the entities from the collection. Closes this instance. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Adds the entity to the end of collection. The entity. Determines whether a entity is in the collection. The entity. Returns the zero-based index of the specified entity. The entity. Inserts a entity into the collection at the specified index. Removes the entity from the collection. Removes the entity at the specified index from the collection. The index. Gets the entity by its index. The zero-based index of the entity. The at the specified index. The index is not valid in the . Gets the base index. The index. Updates the count. Checks the type. Calls when in base collection changed items. The type. The entity. Clears the indexes. Gets the current document. Read-only. The object. Gets the owner of this . Ready-only. The which is the owner element. Gets the number of items in collection. The integer that represents the count of the items. Gets the at the specified index. The zero-based index of the entity to get. The at the specified index. The index is not valid index in the . Represents a internal enumerator for EntitySubSetCollection. Initializes a new instance of the class. The entities collection. The collection was modified after the enumerator was created. Sets the enumerator to its initial position, which is before the first element in the collection. The collection was modified after the enumerator was created. The enumerator is positioned before the first element of the collection or after the last element. A collection of objects that represent the fields in the document. Initializes a new instance of the class. The document. Finds object by specified name The Field value Removes a Field at the specified index. The index. Removes the specified field. The field. Removes all Fields from the document. Adds field objects to the collection. Inserts AutoNum Field in a collection in ascending order as per in the Word document. The both auto num and auto num legal field result is same. If the document has multiple auto num and auto num legal field then the result preserves continuously. So maintain the field in same collection to get the result as in the Word document. The WField Checks hierarchical index of current field with other hierarchical indexes The oldHierarchicalIndex The newHierarchicalIndex Gets the AutoNum FieldResult The field Checks whether the current field and previous field is in same paragraphitem. The Previous Field Index The current Field Index Returns True when both Field are inside the same paragaraphitem otherwise returns false Gets the number from roman (Convertion of roman to arabic) The Roman letter Number value Gets the Seperator code from the FieldCode in a Field using index of the field in the SortedAutoNumFields List array The Index of Field in the list Splited Seperator charactor Gets the NUmber Format from FieldCode using index of the field in the SortedAutoNumFields List array The Index of the Field Number Format Gets the number from alphabet (Convertion of alphabet to arabic) Gets the with the specified name. Gets the at the specified index. Gets or sets the AutoNum Fields. The Sorted AutoNum Fields. Gets or sets the AutoNum Fields Indexes. The Sorted AutoNum Fields indexes. Represents a collection of form fields. Initializes a new instance of the class. The text body. Returns value indicating whether the specified collection contains item with specified name. The string that specifies the name of the item to be found. True if the collection has the specified form field, otherwise false. Corrects the name. The old name. The new name. Adds the specified formField. The formField. Removes the specified formField. The formField. Populates this coollection of form fields from parent WTextBody. Populates from paragraph. The paragraph. Populates from table. The table. Gets form field by name. Name of the form field. Closes this instance. Gets the at the specified index. Read-only. The zero-based index of the form field to get. The at the specified index. The index is not valid in the . Gets the with specified name. Read-only. The string that specifies the form field name. The with the specified name. Gets dictionary with form field items. Initializes a new instance of the class. The doc. Adds the specified image. The image. Removes the specified image id. The image id. Clears this instance. Loads the image. The image bytes. Loads the meta file image. The image bytes. if set to true [is compressed]. Loads the image. The image bytes. Compresses the image bytes. The image bytes. Decompresses the image bytes. The compressed image. Gets the with the specified image id. Gets the owner document. The document. Represents a collections of list formatting for each levels in a list. Initializes a new instance of the class. The owner. Adds List level to collection. The level. Gets index of in the collection. The level. Removes all levels. Creates a new item. The object. The object. Returns the name of xml tag. The string that represents the tag name. Compares list levels with current list levels. Gets the at the specified index. Read-only. The zero-based index of the list level to get. The at the specified index. Represents the list levels of ListOverrideStyle. Initializes a new instance of the class. The doc. Adds List level into collection. Gets the level number. The level format. Determines whether the current list override style has specified level. The level number. true if the current list override style has specified level; otherwise, false. Clones itself. The collection. Gets name of xml tag Closes this instance. Compares the list override level formats with the current list override level formats The list override levels Gets the at the specified index. Gets the owner style. The owner style. Gets or sets the level index. The . Summary description for ListOverridesCollection. Represents a collection of objects. Represents a collection of objects. Adds the specified to collection. The to be added to the styles collection. The zero-based index of the added . The following code example demonstrates how to add style to the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word template WordDocument document = new WordDocument(inputFileName); //Access the styles collection which contains paragraph and character styles in Word document WParagraphStyle style = new WParagraphStyle(document); //Specify the style name. style.Name = "User_Defined_style"; //Specify the character properties for the style style.CharacterFormat.Bold = true; style.CharacterFormat.FontName = "Arial"; style.CharacterFormat.FontSize = 14; //Specify the paragraph properties for the style style.ParagraphFormat.BackColor = Color.LightGray; style.ParagraphFormat.AfterSpacing = 18f; style.ParagraphFormat.BeforeSpacing = 18f; StyleCollection styleCollection = document.Styles as StyleCollection; //Add the style to the document styles collection. styleCollection.Add(style); //Save and close the document document.Save(outputFileName, FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word template Dim document As New WordDocument(inputFileName) 'Access the styles collection which contains paragraph and character styles in Word document Dim style As New WParagraphStyle(document) 'Specify the style name. style.Name = "User_Defined_style" 'Specify the character properties for the style style.CharacterFormat.Bold = True style.CharacterFormat.FontName = "Arial" style.CharacterFormat.FontSize = 14 'Specify the paragraph properties for the style style.ParagraphFormat.BackColor = Color.LightGray style.ParagraphFormat.AfterSpacing = 18F style.ParagraphFormat.BeforeSpacing = 18F Dim styleCollection As StyleCollection = TryCast(document.Styles, StyleCollection) 'Add the style to the document styles collection. styleCollection.Add(style) 'Save and close the document document.Save(outputFileName, FormatType.Docx) document.Close() End Sub Finds a first style in the collection with specified style name. The string value that represents the name of the style to be found. The object of specified name The style name is not valid in the The following example illustrates how to find a style by its name and modify its character and paragraph formats. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word template WordDocument document = new WordDocument(inputFileName); //Access the styles collection which contains paragraph and character styles in Word document IStyleCollection styleCollection = document.Styles; //Find the style with the name "Heading 1" WParagraphStyle heading1ParagraphStyle = styleCollection.FindByName("Heading 1") as WParagraphStyle; //Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue; //Change the first line indent of Paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36; document.Save(outputFileName, FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word template Dim document As New WordDocument(inputFileName) 'Access the styles collection which contains paragraph and character styles in Word document Dim styleCollection As IStyleCollection = document.Styles 'Find the style with the name "Heading 1" Dim heading1ParagraphStyle As WParagraphStyle = TryCast(styleCollection.FindByName("Heading 1"), WParagraphStyle) 'Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue 'Change the first line indent of paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36 document.Save(outputFileName, FormatType.Docx) document.Close() End Sub Finds a style in the collection specified by the style name and style type. The string value that represents the name of the style to be found. The of the specified style. The object with the specified name. The style name is not valid in the The following example illustrates how to find a style by its name and its type. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word template WordDocument document = new WordDocument(inputFileName); //Access the styles collection which contains paragraph and character styles in Word document IStyleCollection styleCollection = document.Styles; //Find the style with the name "Heading 1" WParagraphStyle heading1ParagraphStyle = styleCollection.FindByName("Heading 1", StyleType.ParagraphStyle) as WParagraphStyle; //Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue; //Change the first line indent of Paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36; document.Save(outputFileName, FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word template Dim document As New WordDocument(inputFileName) 'Access the styles collection which contains paragraph and character styles in Word document Dim styleCollection As IStyleCollection = document.Styles 'Find the style with the name "Heading 1" Dim heading1ParagraphStyle As WParagraphStyle = TryCast(styleCollection.FindByName("Heading 1", StyleType.ParagraphStyle), WParagraphStyle) 'Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue 'Change the first line indent of Paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36 document.Save(outputFileName, FormatType.Docx) document.Close() End Sub Finds a style specified by its style Id. The integer that represents the Id of the style. The object of specified Id The style Id is not valid in the Gets the at the specified index. The zero-based index of the style to get The at the specified index The index is not valid index in the Gets or sets a value indicating whether the stylesheet has style at 13th index True, if the stylesheet has style at 13th index(other than empty style), otherwise false Reserved styles are applicable only for *.doc format Gets or sets a value indicating whether the stylesheet has style at 14th index True, if the stylesheet has style at 14th index(other than empty style), otherwise false Reserved styles are applicable only for *.doc format Gets or sets the name of the style at 13th index in the stylesheet The string that represents the name of the style. Reserved styles are applicable only for *.doc format Gets or sets the name of the style at 14th index in the stylesheet The string that represents the name of the style. Reserved styles are applicable only for *.doc format Represents the style name of the style present at the fixed index 13 in the stylesheet Reserved styles are applicable only for *.doc format Represents the style name of the style present at the fixed index 14 in the stylesheet Reserved styles are applicable only for *.doc format Initializes a new instance of the class. The doc. Adds the specified to collection. The to be added to the styles collection. The zero-based index of the added . The following code example demonstrates how to add style to the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word template WordDocument document = new WordDocument("Template.docx"); //Access the styles collection which contains paragraph and character styles in Word document WParagraphStyle style = new WParagraphStyle(document); //Specify the style name. style.Name = "User_Defined_style"; //Specify the character properties for the style style.CharacterFormat.Bold = true; style.CharacterFormat.FontName = "Arial"; style.CharacterFormat.FontSize = 14; //Specify the paragraph properties for the style style.ParagraphFormat.BackColor = Color.LightGray; style.ParagraphFormat.AfterSpacing = 18f; style.ParagraphFormat.BeforeSpacing = 18f; StyleCollection styleCollection = document.Styles as StyleCollection; //Add the style to the document styles collection. styleCollection.Add(style); //Save and close the document document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word template Dim document As New WordDocument(inputFileName) 'Access the styles collection which contains paragraph and character styles in Word document Dim style As New WParagraphStyle(document) 'Specify the style name. style.Name = "User_Defined_style" 'Specify the character properties for the style style.CharacterFormat.Bold = True style.CharacterFormat.FontName = "Arial" style.CharacterFormat.FontSize = 14 'Specify the paragraph properties for the style style.ParagraphFormat.BackColor = Color.LightGray style.ParagraphFormat.AfterSpacing = 18F style.ParagraphFormat.BeforeSpacing = 18F Dim styleCollection As StyleCollection = TryCast(document.Styles, StyleCollection) 'Add the style to the document styles collection. styleCollection.Add(style) 'Save and close the document document.Save(outputFileName, FormatType.Docx) document.Close() End Sub Finds a first style in the collection with specified style name. The string value that represents the name of the style to be found. The object of specified name The style name is not valid in the The following example illustrates how to find a style by its name and modify its character and paragraph formats. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word template WordDocument document = new WordDocument("Template.docx"); //Access the styles collection which contains paragraph and character styles in Word document IStyleCollection styleCollection = document.Styles; //Find the style with the name "Heading 1" WParagraphStyle heading1ParagraphStyle = styleCollection.FindByName("Heading 1") as WParagraphStyle; //Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue; //Change the first line indent of Paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36; document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word template Dim document As New WordDocument(inputFileName) 'Access the styles collection which contains paragraph and character styles in Word document Dim styleCollection As IStyleCollection = document.Styles 'Find the style with the name "Heading 1" Dim heading1ParagraphStyle As WParagraphStyle = TryCast(styleCollection.FindByName("Heading 1"), WParagraphStyle) 'Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue 'Change the first line indent of paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36 document.Save(outputFileName, FormatType.Docx) document.Close() End Sub Finds a style in the collection specified by the style name and style type. The string value that represents the name of the style to be found. The of the specified style. The object with the specified name. The style name is not valid in the The following example illustrates how to find a style by its name and its type. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word template WordDocument document = new WordDocument("Template.docx"); //Access the styles collection which contains paragraph and character styles in Word document IStyleCollection styleCollection = document.Styles; //Find the style with the name "Heading 1" WParagraphStyle heading1ParagraphStyle = styleCollection.FindByName("Heading 1", StyleType.ParagraphStyle) as WParagraphStyle; //Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue; //Change the first line indent of Paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36; document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word template Dim document As New WordDocument(inputFileName) 'Access the styles collection which contains paragraph and character styles in Word document Dim styleCollection As IStyleCollection = document.Styles 'Find the style with the name "Heading 1" Dim heading1ParagraphStyle As WParagraphStyle = TryCast(styleCollection.FindByName("Heading 1", StyleType.ParagraphStyle), WParagraphStyle) 'Change the text color of style "Heading 1" as DarkBlue heading1ParagraphStyle.CharacterFormat.TextColor = Color.DarkBlue 'Change the first line indent of Paragraph as 36 points heading1ParagraphStyle.ParagraphFormat.FirstLineIndent = 36 document.Save(outputFileName, FormatType.Docx) document.Close() End Sub Finds a style in the collection specified by the style name and style type. The string value that represents the name of the style to be found. The of the specified style. The collection to hold the styles starts with the specified style name. The object with the specified name and style type. The style name is not valid in the Finds a style specified by its style Id. The integer that represents the Id of the style. The object of specified Id The style Id is not valid in the Clones to other collection. The collection. Remove this style from the Word document. Updates the style name when it is empty. Current style Check whether the same name exist in document or not. Current style name Finds the style with specified style name. The styles. The name. Finds the style with specified style name. The styles. The name. Finds the style with specified style id. The styles. The name. Finds the style with specified style name. The styles. The name. Type of the style. Finds a style in the collection specified by the style name and style type. The . The string value that represents the name of the style to be found. The of the specified style. The collection to hold the styles starts with the specified style name. The object with the specified name and style type. The style name is not valid in the Finds the style with specified style name. The styles. The name. Type of the style. Creates the item. The object. The object. Returns the name of xml tag. The string that specifies the tag name. Gets the at the specified index. The zero-based index of the style to get The at the specified index The index is not valid index in the Gets or sets a value indicating whether the stylesheet has style at 13th index True, if the stylesheet has style at 13th index(other than empty style), otherwise false Reserved styles are applicable only for *.doc format Gets or sets a value indicating whether the stylesheet has style at 14th index True, if the stylesheet has style at 14th index(other than empty style), otherwise false Reserved styles are applicable only for *.doc format Gets or sets the name of the style at 13th index in the stylesheet The string that represents the name of the style. Reserved styles are applicable only for *.doc format Gets or sets the name of the style at 14th index in the stylesheet The string that represents the name of the style. Reserved styles are applicable only for *.doc format Initializes a new instance of the class. The doc. Adds the List Override Style to collection. Finds Style by name Gets name of xml tag Compares the current list override style with the list override style collection The list override style to compare Gets the equivalent list override style from the list override style collection The list override style to compare Gets List level by index. Represents the collection of list styles. Initializes a new instance of the class. The doc. Adds the specified list style to the collection. The to be added to the collection. The zero-based index of the added style. Finds the list style with the specified name from the collection. The string that specifies the name of the list style to get from the collection. The with the specified name. Creates the item. The reader. Gets name of xml tag Compares current list style with list style collection Gets the equivalent list style from list style collection Compares current list style ListID with list style collection ListID True if the listStyle and the liststyles in the document collection has same ListID Gets the at the specified index. Read-only. The zero-based index of the list style to get from the collection. The at the specified index. Represents the collection of . Initializes a new instance of the class with the specified instance. The instance. Initializes a new instance of the class with the owner instance. The owner. Initializes a new instance of the class with the instance. The owner. Moves paragraph items from the source collection to the destination collection. The destination collection where the items will be moved. A flag indicating whether the last inline content control should be removed. Clones the items to new collection. The items. Unsafe method for removes item at index. The index. Unsafe method for adds the item. The item. Occurs when entity is inserted. The zero-based index to insert the entity. The to insert. Occurs when entity is removed. The zero-based index to remove the entity. Occurs when all items are removed. Closes this instance. Creates new item. The object. The instance. Returns the name of xml tag. The string that represents the xml tag name. Get Current widget Gets the minimum and maximum word width of current paragraph Represents minimum word width in paragraph Represents maximum word width in paragraph Measure the minimum and maximum word width Updates the maximum and minimum word width of paragraph based on calculated width >Existing minimum word width in paragraph Existing maximum word width in paragraph Calculated width Gets the length of the text till the delimeter Represents the matches of position of delimeter Represents the current searching word in paragraph Represents whole paragraph text Represents start index from where to read to get the next word Gets the at the specified index from the collection. Read-only. The zero-based index of the paragraph item to get from the collection. The at the specified index. Gets the owner paragraph of this paragraph item. Read-only. The owner paragraph. Gets the type of the elements present in the collection. The collection that contains the types of the elements. Represents a collection of entities. Initializes a new instance of the class. The doc. The owner. Initializes a new instance of the class. Clones the items to new collection. The items. Contains the text body items. Lasts the index of the paragraph item. Gets the items. The items. Represents the collection of in the Word document. Accepts all the tracked changes in a document or range. The revision marks are removed, and the changes are incorporated into the document. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //get all the revisions from the revision collection and accepts all. document.Revisions.AcceptAll(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Get all the revision from the revision collection and accepts all. document.Revisions.AcceptAll() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Rejects all the tracked changes in a range. The revision marks are removed, leaving the original text intact. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //get all the revisions from the revision collection and reject all. document.Revisions.RejectAll(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Get all the revisions from the revision collection and reject all. document.Revisions.RejectAll() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Adds the specified revision into the collection. The revision. Removes the specified revision from the collection. The revision. Clones the revisions to new collection. The new revision collection Initializes a new instance of the class with the specified instance. The instance. Clears the object. Gets the at the specified index. The integer that represents the position of the revision in the document to get. The at the specified index. The index is not valid in the //Loads an existing Word document WordDocument document = new WordDocument("Template.docx"); //Gets the revision from the revision collections Revision revision = document.Revisions[0]; //If the revision is formatting type of revision, then accept it if (revision.RevisionType == RevisionType.Formatting) revision.Accept(); //Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Loads an existing Word document Dim document As WordDocument = New WordDocument("Template.docx") 'Gets the revision from the revision collections Dim rev As Revision = document.Revisions(0) 'If the revision is formatting type of revision, then accept it If rev.RevisionType Is RevisionType.Formatting Then rev.Accept() 'Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Represents the collection of text for each shape object (textbox, rectangle, etc.). Initializes a new instance of the class. Add the specified text box to text collection of shape object with the specified shape Id. The integer that specifie the shape Id. The text box to be added to the collection. Returns the textbox with the specified shape Id. The integer that specifies the shape Id. Closes this instance. Represents a collection of in the paragraph. The following code illustrates the how to add and remove tabs from the . private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add tab at position 0; paragraph.ParagraphFormat.Tabs.AddTab(); //Add tab stop at position 11 Tab firstTab = paragraph.ParagraphFormat.Tabs.AddTab(11); //Add tab stop at position 62, with tab justification and tab leader. paragraph.ParagraphFormat.Tabs.AddTab(62, TabJustification.Left, TabLeader.Single); paragraph.AppendText("This sample\t illustrates the use of tabs in the paragraph. Tabs\t can be inserted or removed from the paragraph."); //Remove tab stop from the collection paragraph.ParagraphFormat.Tabs.RemoveByTabPosition(11); //Remove tab at index 0; paragraph.ParagraphFormat.Tabs.RemoveAt(0); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add tab at position 0; paragraph.ParagraphFormat.Tabs.AddTab() 'Add tab stop at position 11 Dim firstTab As Tab = paragraph.ParagraphFormat.Tabs.AddTab(11) 'Add tab stop at position 62, with tab justification and tab leader. paragraph.ParagraphFormat.Tabs.AddTab(62, TabJustification.Left, TabLeader.[Single]) paragraph.AppendText("This sample" & vbTab & " illustrates the use of tabs in the paragraph. Tabs" & vbTab & " can be inserted or removed from the paragraph.") 'Remove tab stop from the collection paragraph.ParagraphFormat.Tabs.RemoveByTabPosition(11) 'Remove tab at index 0; paragraph.ParagraphFormat.Tabs.RemoveAt(0) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Initializes a new instance of the class. Adds a new tab at the position 0. The newly added object. Adds the tab at the specified position with the tab justification and tab leader. The position of the tab. The type of tab justification. The type of tab leader. The newly added object. Adds the tab at the specified position. The position of the tab. The newly added object. Removes all the tabs from the tab collection. Removes the tab at the specified index from the tab collection. The zero-based index of the tab to be removed. The index is not valid in the . Removes the tab present at the specified position from the tab collection. The position of the tab to be removed. Adds the tab. The tab. Creates the item. The object. The object. Returns the name of xml tag. The string that specifies the tag name. Compare Tabs Updates the tabs in source formatting Updates the tabs in source formatting Gets the given tab position is available in the current Tabs collection Sorts the tab position of the current Tabs collection Gets the at the specified index. Read-only. The zero-based index of the tab. The instance. The index is not valid in the . Gets or sets a value indicating whether to cancel OnChange event. If it specifies to cancel on change event, set to true. Represents the collection of in the Word document. Removes a at the specified index. The zero-based index of the to remove. private void Button1_Click(System.Object sender, System.EventArgs e) { //open a template document WordDocument document = new WordDocument("Textbox.docx"); //Remove the textbox at index one. document.TextBoxes.RemoveAt(1); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'open a template document Dim document As New WordDocument("Textbox.docx") 'Remove the textbox at index one. document.TextBoxes.RemoveAt(1) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Removes all the textboxes from the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //open a template document WordDocument document = new WordDocument("Textbox.docx"); //Removes the textboxes from the document document.TextBoxes.Clear(); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'open a template document Dim document As New WordDocument("Textbox.docx") 'Removes the textboxes from the document document.TextBoxes.Clear() 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Adds the specified textbox. The textbox. Removes the specified textbox. The textbox. Gets the at the specified index from the . The zero-based index to get the . The at the specified index. The index is not valid in the . Represents a collection of in the . private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); //Add new paragraph section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row into table WTableRow row = table.AddRow(); //Create a new cell WTableCell cell = new WTableCell(document); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Item"); //Add the cell to the cells collection. row.Cells.Add(cell); int index = row.Cells.IndexOf(cell); //Create a new cell cell = new WTableCell(document); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Price($)"); //Add the cell to the cells collection. row.Cells.Insert(index + 1, cell); //Add the second row into table row = table.AddRow(true, false); //Add the first cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("50"); //Add the third row into table row = table.AddRow(true, false); //Add the first cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Orange"); //Add the second cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("30"); //Add the third cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Banana"); //Removes the specified cell. row.Cells.Remove(cell); //Save and close the document document.Save("Table.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() 'Add new paragraph section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row into table Dim row As WTableRow = table.AddRow() 'Create a new cell Dim cell As New WTableCell(document) 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Item") 'Add the cell to the cells collection. row.Cells.Add(cell) Dim index As Integer = row.Cells.IndexOf(cell) 'Create a new cell cell = New WTableCell(document) 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Price($)") 'Add the cell to the cells collection. row.Cells.Insert(index + 1, cell) 'Add the second row into table row = table.AddRow(True, False) 'Add the first cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("50") 'Add the third row into table row = table.AddRow(True, False) 'Add the first cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Orange") 'Add the second cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("30") 'Add the third cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Banana") 'Removes the specified cell. row.Cells.Remove(cell) 'Save and close the document document.Save("Table.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class with the specified instance. The to has this cell collection. Adds the specified to the . The to be added. The zero-based index of the cell. The number of cells must be between 1 and 63. Removes all the items from the collection. Inserts a specified at the specified index in collection. The zero-based index to insert the cell. The to be inserted. Returns the index of a specified in the collection. The to find the index. The zero-based index of the specified cell. Removes the specified from the collection. The to be removed from the collection. Removes the at the specified index from the collection. The zero-based index of the cell. Removes the cell bookmark. The cell. Moves the bookmark start from the current cell to next cell. Moves the bookmark end from the current cell to previous cell. Returns the name of the xml tag. The string that specifies the tag name. Creates a new cell. The instance. The instance. Clones all cells to destination collection. The destination collection. Called when cell inserted to cell collection. The index. The cell format. Called when cell removed from cell collection. The index. Gets the at the specified index. The zero-based index of the to get. The at the specified index. The index is not valid in the . Gets the type of the elements present in the collection. The collection that contains the types of the elements. Represent a collection of objects. Initializes a new instance of the class. The doc. Adds the item. The text. Removes DropDownItems by index. The index. Clears this instance. Adds the item. Clones items to. The destination collection. Creates the item. The reader. Gets name of xml tag Closes this instance. Gets the at the specified index. Represents a collection of objects. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument("Template.docx"); //Find the specified text from the document TextSelection selection = document.Find("paragraph", false, false); WTextRange range = selection.GetAsOneRange(); //Get its owner paragraph WParagraph paragraph = range.OwnerParagraph; WTextBody textbody = paragraph.OwnerTextBody; //Get the collection of paragraphs in the section WParagraphCollection collection = (WParagraphCollection)textbody.Paragraphs; //Get the index of the paragraph int index = collection.IndexOf(range.OwnerParagraph); paragraph = new WParagraph(document); paragraph.AppendText("hello world"); //Insert new item collection.Insert(index + 1, paragraph); //Removes paragraph at index zero collection.RemoveAt(0); //Save and close the paragraph. document.Save("Result.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument("Template.docx") 'Find the specified text from the document Dim selection As TextSelection = document.Find("paragraph", False, False) Dim range As WTextRange = selection.GetAsOneRange() 'Get its owner paragraph Dim paragraph As WParagraph = range.OwnerParagraph Dim textbody As WTextBody = paragraph.OwnerTextBody 'Get the collection of paragraphs in the section Dim collection As WParagraphCollection = DirectCast(textbody.Paragraphs, WParagraphCollection) 'Get the index of the paragraph Dim index As Integer = collection.IndexOf(range.OwnerParagraph) paragraph = New WParagraph(document) paragraph.AppendText("hello world") 'Insert new item collection.Insert(index - 1, paragraph) 'Removes paragraph at index zero collection.RemoveAt(0) 'Save and close the paragraph. document.Save("Result.docx") document.Close() End Sub Represents a collection of . Adds a paragraph to the end of collection. The paragraph. Inserts a paragraph into collection at the specified index. The index. The paragraph. Returns the zero-based index of the specified paragraph. The paragraph. Removes the paragraph at the specified index from the collection. The index. Gets the at the specified index. Initializes a new instance of the class with the specified collection of text body items. The collection of text body items. Adds a paragraph to the collection. The paragraph to be added. The zero-based index of the added paragraph. Determines whether the contains a specified paragraph. The paragraph to be found. True if paragraph is found; otherwise, false. Inserts the specified paragraph into collection at the specified index. The integer that specifies the index. The paragraph to be inserted. Returns the zero-based index of the specified paragraph. The paragraph to which the index to be found. The zero-based index of the paragraph. Removes the specified paragraph from the collection. The paragraph to be removed from the collection. Removes the paragraph at the specified index from the collection. The index of the paragraph to be removed. Gets the at the specified index. The zero-based index of the paragraph to get from the collection. The instance. The index is not valid in the . Gets the owner of the collection. The owner text body. Represents a collection of objects. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Get the rows collection from table WRowCollection rowCollection = table.Rows; //Add the first row into table WTableRow row = new WTableRow(document); //Add the first cell into first row WTableCell cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Item"); //Add the second cell into first row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Price($)"); //Add row to the collection rowCollection.Add(row); //Add the second row into table row = new WTableRow(document); //Add the first cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("50"); //Insert row at index 1 rowCollection.Insert(1, row); //Add the third row into table row = new WTableRow(document); //Add the first cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Orange"); //Add the second cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("30"); //Insert row rowCollection.Insert(2, row); //Remove row at index 0. rowCollection.RemoveAt(0); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Get the rows collection from table Dim rowCollection As WRowCollection = table.Rows 'Add the first row into table Dim row As New WTableRow(document) 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Item") 'Add the second cell into first row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Price($)") 'Add row to the collection rowCollection.Add(row) 'Add the second row into table row = New WTableRow(document) 'Add the first cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("50") 'Insert row at index 1 rowCollection.Insert(1, row) 'Add the third row into table row = New WTableRow(document) 'Add the first cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Orange") 'Add the second cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("30") 'Insert row rowCollection.Insert(2, row) 'Remove row at index 0. rowCollection.RemoveAt(0) document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class with the specified instance. The instance. Adds the specified table row to the collection. The row. Inserts the specified table row at the specified index in the collection. The index. The row. Returns the index of the specified row in the collection. The row. Removes the specified row from the collection. The row. Gets the name of xml tag. The string that specifies the tag name. Creates new item. The instance. The instance. Gets the table row at the specified index. The zero-based index of the row to get from the collection. The at the specified index. The index is not valid in the . Gets the type of the elements present in the collection. The collection that contains the types of the elements. Represents a collection of . Represents a collection of . Adds a new to end of document. The to be added to the collection. The zero-based index of the Returns the zero-based index of the specified section. The object. The zero-based index of the first occurrence of item Gets the at the specified index. The zero-based index of the section to get The at the specified index The index is not valid index in the Initializes a new instance of the class. The instance. Initializes a new instance of the class. Adds a new to end of document. The to be added to the collection. The zero-based index of the Returns the zero-based index of the specified section. The object. The zero-based index of the first occurrence of item Gets the text. Creates the item. The object. The object which can be casted as . Gets name of xml tag The string that represents the section tag name. Gets the at the specified index. The zero-based index of the section to get The at the specified index The index is not valid index in the Gets the type of the elements present in the collection. The collection that contains the types of the elements. Represents a collection of objects. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the tables collection WTableCollection tablecollection = document.Sections[0].Tables as WTableCollection; //Create new table WTable table = new WTable(document); table.ResetCells(2,2); //Add table to the collection tablecollection.Add(table); //Get the index of the added table int index = tablecollection.IndexOf(table); //Insert another table at next index table = new WTable(document); table.ResetCells(3, 3); tablecollection.Insert(index + 1, table); //Remove the table at index 0 tablecollection.RemoveAt(0); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the tables collection Dim tablecollection As WTableCollection = TryCast(document.Sections(0).Tables, WTableCollection) 'Create new table Dim table As New WTable(document) table.ResetCells(2, 2) 'Add table to the collection tablecollection.Add(table) 'Get the index of the added table Dim index As Integer = tablecollection.IndexOf(table) 'Insert another table at next index table = New WTable(document) table.ResetCells(3, 3) tablecollection.Insert(index + 1, table) 'Remove the table at index 0 tablecollection.RemoveAt(0) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Represents a collection of . Adds a table to end of text body. The object to be added. The zero-based index of the table. Returns the index of a table in the collection. The to which the index to be find. The zero-based index of the table. Determines whether the contains a specific table. The object to be found. True if table is found, otherwise false. Gets the at the specified index. Initializes a new instance of the class with the specified instance. The collection of body items. Adds the specified table to the end of text body. The to be added. The zero-based index of the table. Determines whether the contains the specified table. The object to be found. True if table is found, otherwise false. Returns the index of the specified table in the collection. The to which the index to be found. The zero-based index of the table. Inserts the specified table into collection at the specified index. The zero-based index for the table to insert. The to be inserted. The zero-based index of the item inserted. The index is not valid within the . Removes the specified table from the collection. The to be removed from the collection. Removes the table at the specified index from the collection. The zero-based index of the table to be removed. The index is not valid within the Gets the at the specified index. The zero-based index to get the table. The at the specified index. The index is not valid in the . Gets the owner of the collection. Initializes a new instance of the class. Adds the columns in the collection Adds the columns in the collection True if the GridAfter value is greater than 0; else false Updates the preferred width for each columns in a table grid. Gets the previous column width. Returns the index of the specified column. Returns the index of the specified offset value. Determines whether an coulmn is in the collection. Inserts a coulmn into the collection at the specified index. Removes the coulmn from the collection. Resets the table columns. Creates a duplicate copy of the table column. Auto Fits the columns. Gets the total width. The width type to sum. Returns a value that indicates whether the specified value is not a number () or it evaluates to negative or positive infinity. A float-precision floating-point number. true if evaluates to or d evaluates to or . Update grid column widths based for fixed layout. Checks whether to resize the column based on the cell maximum preferred width and maximum word width. The table. The table columns. The table owner width. The column width list. True if the column resize based on maximum word width else False. Calculate the width for each columns based on the cell maximum preferred width and maximum word width. Total column width. The table columns. The maximum cell preferred width list. Recalculate percentage table column widths. Current table Current table columns Sum of maximum word width of table Current table width Checks whether grid corrupted point width type table exceeds the table width. Resize the point width table to its table width based in maximum word width and maximum cell preferred width of columns. The table columns Maximum cell preferred width of columns Sum of maximum word width Table width Sum of maximum cell preferred width of columns Checks the whether the table width is point and is need to resize columns based on maximum word width and cell preferred width Current table Current table columns Client width of table Maximum cell count of a table True, if the table width is point and is need to resize columns based on maximum word width and cell preferred width, else false Checks whether Preferred width is lesser than Maximum Word Width and calculates cell width based on cell maximum word width Current Table Table columns(grid) Table Width List containing calculated column width Resize the table columns based on table cell preferred width and maximum word width which exceed client width Checks whether the table with percentage width type uses the maximum word width as column width. Current table Table columns(grid) Table client width Check whether the point width table need to be resized according to the cell preferred width Current table Maximum cell count in the table Table columns List containing calculated column width Total cell preferred width Table width True, if the point width table is need to resized according to the calculated column width Check whether the calculated column width is enough to fit the table width. Checks whether the table needs to resize as per maximum word width of the table even though if table exceeds the table width Current table Table columns Table client width True, if the table needs to resize as per maximum word width of the table even though if table exceeds the table width else false Check whether the auto table need to resize as per percentage cell preferred width Current Table Row index containing the preferred cell width as percentage Table columns Table owner width True, if the table needs to resize as per percentage cell preferred width; else, false Check whether the table has any row containing all cell preferred width type as percentage Current table Table columns Table owner width List of rows containing all cell preferred width type as percentage Resize the column based on the percentage cell preferred width Table columns Row index containing percentage preferred width for all cells Current table Table owner width Check whether the table need to be resized according to the cell preferred width Current table Table columns Table owner width Total cell preferred width List containing calculated column width Maximum cell count in the table True, if table is need to resized according to the calculated column width Check whether the max word width is greater than the cell preferred width in the list Table columns List containing max cell preferred width of each column Total cell preferred width Table owner width True, if the max word width less than calculated column width; else, false Resize the table according to the calculated column width Table columns List containing calculated column width Check whether the auto width type table need to resize based on maximum para width Current table Table columns Table owner width Total table column width True, if the auto width table columns need to resize based on maximum para width else false Set the column preferred width with maximum para width Table columns Checks whether the column maximum para width exceeds preferred width Table owner width Table columns True ifthe column preferred width is lesser than MaximumParaWidth else false Change the column preferred width based on maximum para width table columns Total max para width Table owner width Changes the column preferred width with maximum word width table columns Checks whether the nested table need to recalculate or not The nested table Then nested table columns The nested table client width The total column width of the nested table. The nested table width. Checks whether the nested table is shrink to fit the client's width. The nested table to be checked. The owner table of the nested table. The total column width of the nested table. The width of the owner cell. True if the nested table is shrink to fit the client's width; otherwise, false. Checks whether the nested table uses the maximum word width as column width. Current table Current table columns Current table client width Owner table of current table True, if nested percentage table uses maximum word width else false. Checks whether the columns has enough width to store maximum word width Current table columns True, if column not has enough width to store maximum word width else false. Check the whether table width is auto and it uses the cell preferred width. Checks whether calculatedWidth list value enough to store maximum word width. Get a list containing maximum preferred width or cell format cell width Current table Maximum cell count Total maximum cell preferred width List of maximum preferred width for each column Check whether the auto table uses its nested table width Current table Table columns Maximum cell count True, if the auto table uses its nested table width; else, false Check whether the table should use the cell preferred width Outermost table Table columns Maximum cell count True, if the table should use the cell preferred width; else, false Check whether the nested table should use owner width Current table Table columns Maximum cell count True, if the nested table should use owner width; else, false Check whether the owner table contains left or right paddings Owner cell True, if the owner table has left or right paddings greater than 0; else false Check whether the rows in the list have same preferred width for all cells List containing row index Current table True, if all the rows in the list contains same preferred width values for all cells; else, false Expand the columns based on maximum para width Table columns Checks whether all column preferred width is equal. The table columns True if all column preferred width equal else false Checks whether the table created through HTML document need to resize the column size Table Table columns Table owner width Sum of columns maximum word width Remaining space to expand Checks whether setting spacings, paddings and border line width inside column, doesn't exceed the preferred table width Expand the columns based on factor of maximum Word width Gets the cell width. Updates the end offset of the each column based on the calculated width. Validate and update the preferredwidth of the cells for column spanned cells. Gets the Document instance Gets the WTableColumn based on its index value Initializes a new instance of the class. Clones the current column. Releases all managed and unmanaged resources. Gets or Sets the preferred width of the column. Gets or Sets the end offset of the column. Gets or Sets the minimum word width of the column. Gets or Sets the minimum word width of the column. Gets or Sets the minimum width of the column. A flag which denotes whether column have maximum word width from any cell. Gets or Sets the Maximum Paragraph width of the column. Gets or sets the column has minimum width or not Gets or sets the column has minimum or maximum word width or not Gets or sets the column has maximum word width or not Gets or Sets the minimum word width of the column. Gets or Sets the minimum word width of the column. Gets or Sets the minimum width of the column. Gets or Sets the Maximum Paragraph width of the column. Represents a collection of objects. Represents a collection of . Adds a textbox to the collection. The text box. Gets the at the specified index. Initializes a new instance of the class with the specified instance. The instance. Adds the specified textbox to the collection. The text box to be added. The zero-based index of the text box. Creates a new item. The object. The object. Gets the name of xml tag. The string that specifies the tag name. Gets the at the specified index. Read-only. The zero-based index of the text box to get from the collection. The text box at the specified index. The index is not valid in the . Gets the type of the elements present in the collection. The collection that contains the types of the elements. Collection of main textboxes Collection of header/footer textboxes Field stack. Stores bookmark offsets for each comment By means of WordWriter writes WordDocument to doc The writer. The document. Must be called before doc building Writes the Footnote/Endnote separator stories. Writes the separator story body items The section. Inserts the watermark. The paragraphs. Type of the header. Returns First Paragraph in the given text body Gets the first TBL paragraph. The table. Write textbox body to document Collection of document's textboxes Textbox type ( main or header/footer) Writes the footnotes body. Writes the annotations body. Writes the endnotes body. Write textbody for header/footer and main textboxes Writes header/footer to wordwriter Writes the sub document text. The writer. The body. Writes the SDT block. The SDT block. if set to true [is table body]. Checks the next item in table. if it is table body, set to true. The paragraphs. Index of the item. Serialize special characters for bidirectional override. Writes the list pictures. The paragraph. The item. Writes the paragraph item. The paragraph item. The paragraph. Write Absolute tab Write empty paragraphs (needed for watermark). Writes the text. The text. Writes the text chunks. The text. if it is a safe text, set to true. Begin the field writting. Writes the form field. The field. Builds WordWriter doc from WordDocument Update the table borders for HTML input document table. The current table Update the table borders for HTML input document table. The table border Sets the table cell mark Writes the table props. The writer. The row. The table. Builds WordWriter doc from WordDocument Writes the embed body. The text. The shape id. Checks whether the picture is in shape field. The picture. Convert the Picture into InLineShape Builds WordWriter doc from WordDocument Builds WordWriter doc from WordDocument Builds WordWriter doc from WordDocument Writes the break. The doc break. The paragraph. Write textbox item to document; Prepares the text box collection. The text box item. Checks the shape for cloning. Clones shape container if escher doesn't have container for current shape item. The shape item. Writes the field mark and field text. The field mark. Writes the field separator. Writes the field end. Writes the comment. The comment. Writes the footnote. The footnote. Writes the Field Without Field separator for TC Entry,TOA entry,Private,Index Entry and RefDoc The field code. Writes the comment mark. The comment mark. Writes the OLE object. The OLE object. Adds the list pictures. Addings the pictures to ListPictures. The list format. Writes style of paragraph to WordWriter Updates the default format. Writes the document properties. Writes the document default fonts. Write background effect to document. Writes the picture background. The back container. The old back container. The background. The escher. Noes the background. Writes the commented items. The comment. Counts the comment offset. The comment. Gets character style index by character style name. Name of the char style. Writes the page break after. The current paragraph. The break type. Determines whether the page break need to be skipped based on given entity owner. Entity true, if present inside TextBox/FootNote/EndNote/Header/Footer Writes the list properties. The list format. The writer. Processes the empty list. The list format. The writer. Processes the list. The list format. The writer. Removes the list Single Property Modifier Record Array. Writes the empty list. Set sprmPIlfo value in collection of word styles Index of the list format. The list level number. The writer. Get list format from ListStyleCollection by lisStyleName. ListStyleName StyleSheet List format Updates the list in style. The writer. The style. Resets the lists. Gets the list picture. The list picture. Gets the last paragraph of the document The last paragraph. Gets the comment collection. The comment collection. Gets the footnote collection. The footnote collection. Gets the endnote collection. The endnote collection. Gets the header/footer text box collection. The HF text box collection. Gets the text box collection. The text box collection. Gets the comment offsets. The comment offsets. Represents a utility class for comparing two Word documents. Initializes a new instance of the class. The doc. Convert the image bytes as hash string Convert image bytes as Hash Compare images between two documents and maintain matched and umatched information Converts stream to bytes Compare streams and return true if they are same. Compare two bytes and return true if they are same. Gets the string of the Word document word document Add all items in the Word document to respective collections Word document Add all items in the text body to respective collections text body As per MS Word behavior, items in paragraph not compare with items inside table. So, when maintain collection of items (like chart, field etc.,), it doesn't traverse into nested body (table, textbox, shape, comment and other) Iterates the paragraph and adds the Inline content control in the InlineContentControl collection Travese till the field end After comparing the document, remove the items from the collection. Insert the unmatched items from the revised document to the original document Check whether there is no renderable items before bookmark end in the paragraph True if there is no renderable items before the bookmark end, else false Check whether the items before the index are renderable item Add BlockContentControl to the document part start and end Insert a section to the original document. Apply insertion revision for the body item between the start index to the end index Apply delete revision for unmatched items before the matched index Checks whether all the paragraph items in a paragraph before the specified position are deleted or not. The original document paragraph. The index of the current paragraph item in the original document paragraph. Returns true if any paragraph item before the specified position is not deleted; otherwise, returns false. Apply delete revision for the first section Apply delete revision for the body item between the start index to the end index Move the current position to the next body item Delete the unmatched items in the original document. The items before the matched table. Original document instance Matched table Dispose the collection Gets the images. The images. Gets the images. The images. Maintain collection of Block content controls in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of Inline content controls in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of Shapes in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of group shapes in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of pictures in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of text box in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of chart in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of fields in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of mathML in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of OLE object in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of table of contents in body. When iterating section, it maintain items of section.body alone and not nested body Flag to indicate whether the image bytes of both documents are compared or not. Maintain collection of chart in body. When iterating section, it maintain items of section.body alone and not nested body Maintain collection of revised document list styles. Constants used for comparison. Ascii character assigned for table Ascii character assigned for row Ascii character assigned for cell Ascii character assigned for block content control Ascii character assigned for inline content control Ascii character assigned for picture Ascii character assigned for shape Ascii character assigned for picture Ascii character assigned for Chart Ascii character assigned for Symbol Ascii character assigned for Break Ascii character assigned for mathml Represents the implementation for converting Word document to Word XML file. Initializes a new instance of the class. Converts DLS XML to Word ML file. The to be converted to DLS XML file. The string that specifies the path to Word ML. Corrects the defect in dls-xml. Clones the sections. Clones the section. The node. The count. The index. Clones the paragraph. The node. Clones the items. The node. Clones the built-in properties. Modifies the picture. The node. Reads the binary element. The node. Reads the image. The node. Gets or sets the name of the bookmark. A String that represents the name of the bookmark. Gets or sets the bookmark ID. A String that represents the ID of the bookmark. Adds new bookmark to the end of the . The to be added to the end of the . The index at which the has been added. Adds the new bookmark. A String that represents the name of the bookmark. The integer that specifies the zero-based index of the newly added bookmark. Gets the ID of the specified bookmark by name. Read-only. Initializes a new instance of the class. Initializes a new instance of the class. The width. Gets or sets the width. The width. Adds the specified grid. The grid. Adds the specified width. The width. Gets the min. The end. Gets the collection count. The start. The end. Adds the specified gridlist. The gridlist. Initializes a new instance of the class. Parces the specified table. The table. Saves this instance. Parces the table grid. Adds the row. The row. Instance members Defines if current collection contains style. The name. if it is a list name, set to true. Closes this instance. Gets AdapterListHelper object. Get the collection of list styles and their id's. Get the collection of list format override indexes and appropriate list format override styles. Default key value for placeable header Initialize the specified doc. The doc. Reads the text body. The reader. The text body. Ends the of text body. The reader. Type of the chunk. Reads the chunk before. The reader. Reads the chunk. The reader. The headerFooter. Read the custom footnote marker Current word reader Splitted text length Startting position of splitted text Reads the table before. The reader. The prepare table info. Ensures the lower table. The level. Type of the chunk. Ensures the upper table. The level. Type of the chunk. Updates the GridAfter value for the each row in a table Appends the table row. Appends the table cell. Finalize current part of read process The reader. Appends bookmark. Name of the bookmark. if it is a bookmark start, set to true. if it is a cell group BKMK, set to true. Reads the text. The reader. Add the required text to in its owner paragraph Current word reader Text need to be added If the text need to be added from foot note splitted text, set to true otherwisefalse Adds the text range. The reader. The text. Reads the paragraph end. The reader. Reads the symbol. The reader. Reads the current page number. The reader. Reads the table cell. The reader. Reads the table row. The reader. Updates the paddings value as Zero when the Paddings releated sprm not in the PAPX sprm list Determines whether to split adjacent table rows. The previous row SPRMS. The current row SPRMS. true if split adjacent table rows; otherwise, false. Compares the array. The buffer1. The buffer2. Reads the annotation. The reader. Reads the footnote. The reader. Reads the break. The reader. Type of the break. Reads the document end. The reader. Reads the shape. The reader. The headerFooter. Determines whether currently reading shape field result item. Field separator. Read textbox. The reader. The File Shape Address. Reads picture shape. Read the image cropping positions Get the picture crop values Checks the text embed. The shape. Implemented alternative method to improve the performance Reads inline images. Adds the Metafile header wherthe image is Wmf image Calculates the checksum value Adds the item. The item. The para. Reads field separator. Reads field end. Updates the valid field type. Inserts the start field. The reader. Read Reads list format. Reads the character format. The reader. The character format. Reads the paragraph format. The reader. The paragraph. Updates the paragraph style. The paragraph. The reader. Reads the table row format. The reader. The table. Check and update the revision details of the paragraph item. The paragraph item. Check and update the revision details at the end of each paragraph. The paragraph. Processes the commented text. The reader. The paragraph. Closes this instance. Gets the current paragraph. The current paragraph. Gets current field. Updates the specified reader. The reader. The prev level. Sets the null. Appends the one row to table. Reads the specified reader. The reader. The word doc. Reads the style sheet. The reader. Get Style name based on Built-in style id Reads the background. Reads the section format. The reader. The sec. Reads Built in Document Properties reader Reads DOPDescriptor data. The reader. Defines if specified subdocument exists in the documnt. The reader. Type of the ws. Closes this instance. Ends the of text body. The reader. Type of the chunk. Reads the annotation. Reads the footnote. The reader. Implemented alternative method to improve the performance Determines whether the footnote / endnote marker refers multiple footnotes / end notes Reads shape objects The reader. The File Shape Address. Checks the text embed. The shape. Reads text body for autoshape. Processes the commented text. The reader. The paragraph. Splits the comm text. The paragraph. The start text pos. The split pos. Updates the comment marks. The comment. Parses the list picture. Checks the watermark. The section. Reads subdocument. Current type of header/footer. Header/footer textbox adapter Sets the separator body. The text body. The index. WTextBody. Closes this instance. Read textbox. The reader. The file shape address structure Read Reads text body for autoshape. Checks the text embed. The shape. Removes the last paragraphs in headers / footers. The section. Removes Last paragraph in separator stories Gets the text box adapter. The text box adapter. Reads the specified reader. The reader. Gets the next comment. Adds the comment. The reader. Defines end of text body for annotations. Closes this instance. Reads the comment format. The reader. The comment format. Gets the current comment. The current comment. Gets the comments. The comments. Array of footnotes Current footnote Index of current footnote/endnote in collection of footnotes. Number of footnotes/endnotes in document Initialize FootnoteAdapter Closes this instance. Initialize EndnoteAdapter. Currently used textbox. Number of textboxes in document. Type of textbox Index of textbox in sequence of textboxes. Collection of textboxes Reads textboxes Closes this instance. Defines end of textbox Add textbox to internal textbox collection. Reads the text box shape. The File Shape Address. The skip position origins. Gets textbox for autoshape by spid. String constants Zip archive used to compress the EPub file Word document to be converted Holds the files to add their names in package file and stream in archive Holds the navigation point and reference for EPub TOC Name of the XHTML file Holds the unique identifier (GUID) Refers to the title of the document Refers to the author of the document Holds the last navigation level Refers to the playOrder in the NCX file. Refers to the cover image Constructor Converts Word to EPub and saves it in disk Name of the file to save Input word document Converts Word to EPub and saves it as stream File stream to save Input word document Converts word document. Input word document Saves the EPub in disk File name to save Saves the EPub as stream File stream to save Writes Container.xml Writes EPub document organization as navigation file Generates TOC (Table of Contents) HTML file for navigation in Kindle Writes bookmark to .NCX (navigation file) to enable TOC in EPub Heading level and id Navigation text XmlWriter Writes EPub document information as package file Name of the embedded file Generates XHTML and adds it to archive Generates Cover page html if any cover page image is provided. Saves the used fonts in the document Gets the title of the document Writes MIME type of EPub Returns the MIMETYPE for embedded files File extenstion MIMETYPE of the file Gets or sets the cover image Gets or sets the file name WinAPi functions. To prevent construction of a class, we make a private constructor. The GetDC function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen. Handle to the window whose DC is to be retrieved If the function succeeds, the return value is a handle to the DC for the specified window's client area. Selects an object into the specified device context (DC). The new object replaces the previous object of the same type. Handle to the DC. Handle to the object to be selected. If the selected object is not a region and the function succeeds, the return value is a handle to the object being replaced. Deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid. Handle to a logical pen, brush, font, bitmap, region, or palette. If the function succeeds, the return value is nonzero. Retrieves font metric data for a TrueType font. Handle to the device context. Specifies the name of a font metric table from which the font data is to be retrieved Specifies the offset from the beginning of the font metric table to the location where the function should begin retrieving information. Pointer to a buffer that receives the font information. Specifies the length in bytes of the information to be retrieved If the function succeeds, the return value is the number of bytes returned. The CreateDC function creates a device context (DC) for a device using the specified name. Driver name. Device name. Not used; should be NULL. Optional printer data. If the function succeeds, the return value is the handle to a DC for the specified device. The DeleteDC function deletes the specified device context (DC). Handle to the device context. If the function succeeds, the return value is nonzero. The default implementation of IHtmlConverter. Defines methods to add the Html string to document . Appends the html string to without style at specified index The to which the string is to be added. The HTML string. The zero-based index of the paragraph to insert the html string. The zero-based index of the paragraph item to insert the html string. Appends the Html string to with style at specified index The to which the Html string is to be added. The Html string. The zero-based index of the paragraph to insert the html string. The zero-based index of the paragraph item to insert the html string. The object that specifies the style for the Html string The object that specifies the list style for the Html string Determines whether the specified Html string is valid. The Html string. The member specifies the type to validate the Html string. True if the specified Html string is valid, otherwise false. Determines whether the specified Html string is valid. The Html string. The member specifies the type to validate the Html string. The string that specifies the exception message. True if the specified Html string is valid, otherwise false. Appends the Html string to with style at specified index The to which the Html string is to be added. The Html string. The zero-based index of the paragraph to insert the html string. The zero-based index of the paragraph item to insert the html string. The object that specifies the style for the Html string The object that specifies the list style for the Html string Appends the html string to without style at specified index The to which the string is to be added. The HTML string. The zero-based index of the paragraph to insert the html string. The zero-based index of the paragraph item to insert the html string. Parses the Body style. The node. Apply Page margins and background color Apply Page border Set Next style for the pararaph style Parse body attributes Parse child entities of text body and removes last line break from the paragraph Determines whether the specified Html string is valid. The Html string. The member specifies the type to validate the Html string. True if the specified Html string is valid, otherwise false. Determines whether the specified Html string is valid. The Html string. The member specifies the type to validate the Html string. The string that specifies the exception message. True if the specified Html string is valid, otherwise false. Replace constants by Unicode Replace HtmlSpecialCharacter's EntityNames by EntityNumbers Replace HtmlSymbol's EntityNames by EntityNumbers Replace HtmlCharacter's EntityNames by EntityNumbers Replace HtmlMathSymbol's EntityNames by EntityNumbers Replace HtmlGreekLetter's EntityNames by EntityNumbers Replace Html Other EntityNames by EntityNumbers Replace ampersand by Unicode Character. The HTML. Get the positions of ampersand. The HTML. Ampersand. Loads the XHTML. The HTML. Load XHTML Prepares the HTML string. The HTML string. The schema. Remove Xml and DocType element from html start Insert DocType elemnet and html start element based on XHTMLValidationType Gets the document title Document title value Traverses the child nodes. The nodes. Traverse text within the tag Check wether the text is tab or not Add the new paragraph to textBody Applies the paragraph format. Checks whether the paragraph need to be added Remove white spaces at the begining of paragraph Adds the new paragraph. Determine whether the Node is in Div Parses paragraph tags Checks whether this is a first sibling of the parent node Parses the tags. The node. Parse the FormFields to the Paragraph parses the checkbox size. Insert the form field to the Current Paragraph Called when form field inserts - Performs insertion of bookmark start for the corresponding form field. Index Entity Updated index Parse the child Entities for the DropDownItems Gets the attribute value. The node. Name of the attr. Check whether the tag is empty tag Parse heading tag Specifies the process when a blockquote tag starts Specifies the process when a blockquote tag ends Specifies the process when a div tag starts Div node Specifies the process when a div tag ends Specifies the process when a table tag ends Specifies the process when a table tag starts Calculates cell width of nested table based on preferred width Nested Table Client Width of owner cell COnverting Hyperlink in html to Doc Hyperlink node Traverse child nodes of the Hyperlink Field Apply Hyperlink style Parses image attribute Parses the Image style. The attr. The Picture. Writes the image. The node. Gets the image for partial trust mode. The source. The pic. Reads the fully. The input. Reads the image file. The image location. Get Image Try downloading the image again with the given credentials Appends the HTML text. The para. The text node. Update List left indent stack Apply Font size specified in font tag Sets the list mode. if set to true is bulleted. The node. Writes the paragraph. Checks whether the current format is heading style. Applies the paragraph style. Applies the paragraph format. Adjust left indent value for list Check whether the bottom margin need to be preserved Check whether the Top margin need to be preserved Checks whether the node is last node within division Check whether the specified attribute defined inline Apply list formatting Get List Pattrn type Apply Paragraph border Apply the current div formt to the paragraph. Applies the formatting. The tr. Apply the current div format to the character format of the textrange Ensures the style. The node. Extract the value alone without units The Value Parses the style. The node. Checks whether the Border format is default or not. Returns True, if the border is detault (has default values), other wise returen false. Get foramt Parses the tab justification. The justification value. Parses the tab leader. The leader value. Get text format. Text format The attribute. The value. Parse line height Get the color value The values of the specified style attribute. Index of the RGB string The color. Get Color value Get Font Name Gets the Font attribute values The values of font attribute. Text format Calculate the font size Value specifying font size The font size Checks whether the value is font size Value to check True if the value specifies font size, otherwise false. Parse Border Parse Border Checks whether the value is a border width Calculate border width Three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by repeating each digit twice. RGB hexadecimal characters. Seperate param value with its unit Leaves the style. if the style is present, set to true. Updates the paragraph's format. The node. Adds the style. Updates the height or width of the image if height or width is not specified in file level. The picture. Gets the attribute value. The node. Name of the attr. Gets the style attribute value Convert the paramValue to bool value Converts the size. The param value. Gets the number before. The val. The end. Called when [validation]. The sender. The instance containing the event data. Builds the list style. Name of the style. The xml node. Creates a list level Gets the type of the list style. The node. Gets the list style type from container. The node. Update bullet char for list level The list level no. The node. The list level. Creates the list style. create the list Override style. Prepares the list start. The start. Determines whether is end of level. The xml node. true if [is end of level] [the specified node]; otherwise, false. Determines whether is start of level. The node. true if [is start of level] [the specified node]; otherwise, false. Determines whether the specified node is inner list. The xml node. true if [is inner list] [the specified node]; otherwise, false. Parses the table. supported - table\tr\td construction - table or cell must have a width in pixel The node. Apply the current div formt to the Table Parses the table rows. The xml node. Get Owner table Parses the cell attrs. The node. The cell. The span helper. The borders. Parses the cell style. The attr. The cell. The borders. Apply borders Apply border type and line width Apply table border Apply cell border Parse border line width Parse border style Parse border color Parses the row attrs. The row node. The row. Update Hidden property of the row based on parent node Parses the table format. The node. The borders. Parses the table style. The attr. The span helper. Set table width from table style attributes Value from width attribute Value from max-width attribute Parse table properties Text format. Parse table border Parses the Row style. The attr. The row. Apply table border Toes the points. The param value. Gets the vertical alignment The param value. Get HorizontalAlignment Roman number to arabic number. The number. Inits this convertor. Parses the CSS style. The node. Parses the CSS style. The node. Finds the CSS style Item. Finds the ID selector from CSS style. Finds the Class selector form CSS style Assign CSS style for cell Finds the descendant selector from CSS style. Finds the element selector from CSS style. Finds the Child selector from CSS style. Applies the CSS style. Parse the CSS textformat values Traverse the comment Insert the field begin Parse the field separator Parse the FieldEnd Parse the field code if span style is mso-field-code Parse the field text Need to replace newline character Implemented alternative method to improve the performance Gets or sets a value indicating whether previous item is field start true if the instance is field start ; otherwise, false. Gets or sets a value indicating whether it is from mso-field-code style true if it is ; otherwise, false. Gets or sets a value indicating whether the table has style. true if table has style; otherwise, false. Gets or sets a value indicating whether the row has style. true if row has style; otherwise, false. Gets or sets a value indicating whether the cell has style. true if cell has style; otherwise, false. Gets the CSS style property Get client width of the html textbody Get and set the base path Gets the field stack. The field stack. Gets the current field. The current field. Gets the current format. The current format. Gets the current para. The current para. Gets the lfo stack. lfoName . Gets the list stack. The list stack. Gets the current list style. The current list style. Resets the curr column. Updates the table grid. The cell. Nexts the column. Gets the table grid from table grid collection Updates the table. The table. Calculates the cell width by summing the width of spanned columns Update Row span Gets/Sets the collection of row grid for a table Specifies the text style. Specifies the Borders Initialize the formatting properties Clones this instance. Determines whether the specified property key has value. Set the values for the properties Gets or sets a value indicating whether to break lines on word or character level. By default line breaks on word level. true if line breaks on word level; otherwise, false. Gets/ Sets whether white space need to be preserved Gets or sets the LocalIdASCII values. Gets/ Sets Hidden property of text Gets/ Sets All Caps Gets or sets a value indicating whether the text has small caps formatting Gets/Sets visited Link color Gets/Sets PageBreakBefore Gets/Sets PageBreakAfter Gets/Set Linespacing rule Get or set a value to represents custom tab stop postion Get or set a value to represents custom tab leader Get or set a value to represents custom tab alignment Get or set a value to represents current tab width Get or set a value to represents whether the element has line of block text Get or set a value indicating whether the element contains Non breaking white space characters Get or set a boolean indicating whether the current span element is list tab Get or set a value that represents the list number width Get or set a value that represents the list padding left value Specifies Bold format. Specifies Italic format. Specifies Underline format. Specifies Strike format. Specifies font color of the text. Specifies back color of the text. Specifies the font family. Specifies the font size. Specifies the line height. Specifies whether the line height is Normal or not Specifies the text alignment. Specifies the left margin. Specifies the Text indent. Specifies the Right margin Specifies the Top margin Specifies the Bottom margin Specifies Superscript/SubScript Gets/Sets scaling Variable specifies the color value. Variable specifies the width value. Variable specifies the style value. Variable specifies the Top color value. Variable specifies the bottom color. Variable specifies the left color value. Variable specifies the right color value. Variable specifies the TopStyle. Variable specifies the BottomStyle. Variable specifies the LeftStyle. Variable specifies the RightStyle. Variable specifies the TopWidth. Variable specifies BottomWidth. Variable specifies LeftWidth. Variable specifies RightWidth. Variable specifies BottomSpace. Variable specifies TopSpace. Variable specifies LeftSpace. Variable specifies RightSpace. Initializes a new instance of the class. The parent. Gets the CSS style item dispose the CSS style Get and set the CSS style collection The list style collection. Closes this instance. Get and set the CSS style name. The style name. Get and set the CSS style type The style type. Gets the properties hash value. The properties hash. Gets the important properties hash value. The important properties hash. Get and set the properties hash value. The properties hash. Get and set the important properties hash value. The important properties hash. Defines CSS selector style type. Defines style type as none. Defines style type as element selector. Defines style type as id selector. Defines style type as class selector. Defines style type as grouping selector. Defines style type as descendant selector. Defines style type as child selector. Defines style type as adjacent sibling selector. Defines style type as general sibling selector. Defines text format. Defines important text format. Represents the conversion implementation of Word document as HTML file. This class, its properties and methods are not supported in Silverlight, Windows Phone, Universal, Universal Windows Platform and Xamarin applications. The following code example demonstrates how to convert Word to HTML file. private void Button1_Click(System.Object sender, System.EventArgs e) { //Loads an existing document WordDocument document = new WordDocument("Template.docx"); HTMLExport export = new HTMLExport(); //The images in the input document will be copied to this folder document.SaveOptions.HtmlExportImagesFolder = @"D:\Data\"; //The headers and footers in the input will be exported document.SaveOptions.HtmlExportHeadersFooters = true; //Export the text form fields as editable document.SaveOptions.HtmlExportTextInputFormFieldAsText = false; //Set the style sheet type document.SaveOptions.HtmlExportCssStyleSheetType = CssStyleSheetType.External; //Set name for style sheet document.SaveOptions.HtmlExportCssStyleSheetFileName = "UserDefinedFileName.css"; //Set the use absolute path as true export.UseAbsolutePath = true; //Save the document as html file export.SaveAsXhtml(document, "WordtoHtml.html"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Loads an existing document Dim document As New WordDocument("Template.docx") Dim export As New HTMLExport() 'The images in the input document will be copied to this folder document.SaveOptions.HtmlExportImagesFolder = "D:\Data\" 'The headers and footers in the input will be exported document.SaveOptions.HtmlExportHeadersFooters = True 'Export the text form fields as editable document.SaveOptions.HtmlExportTextInputFormFieldAsText = False 'Set the style sheet type document.SaveOptions.HtmlExportCssStyleSheetType = CssStyleSheetType.External 'Set name for style sheet document.SaveOptions.HtmlExportCssStyleSheetFileName = "UserDefinedFileName.css" 'Set the use absolute path as true export.UseAbsolutePath = True; 'Save the document as html file export.SaveAsXhtml(document, "WordtoHtml.html") document.Close() End Sub Cache files as stream Has navigation id OEB header and footer Auto incrementing pointer for navigation point Holds heading styles Holds the name and data of stylesheets Bookmark collection for TOC Footnote Reference Attribute string Holds the name and data of image files Saves the Word document as XHTML file. The to be saved as html. The string that specifies the name to save the html file. The following code example demonstrates how to convert Word to XHTML file. //Loads an existing document WordDocument document = new WordDocument("Template.docx"); HTMLExport export = new HTMLExport(); //Save the document as Xhtml file export.SaveAsXhtml(document, "WordtoXHtml.html"); document.Close(); 'Loads an existing document Dim document As New WordDocument("Template.docx") Dim export As New HTMLExport() 'Save the document as Xhtml file export.SaveAsXhtml(document, "WordtoXHtml.html") document.Close() Saves the Word document as XHTML file with specified encoding. The to be saved as html. The string that specifies the name to save the html file. The character encoding to use. The following code example demonstrates how to convert Word to XHTML file with specified encoding. //Loads an existing document WordDocument document = new WordDocument("Template.docx"); HTMLExport export = new HTMLExport(); //Save the document as Xhtml file export.SaveAsXhtml(document, "WordtoXHtml.html", Encoding.Unicode); document.Close(); 'Loads an existing document Dim document As New WordDocument("Template.docx") Dim export As New HTMLExport() 'Save the document as Xhtml file export.SaveAsXhtml(document, "WordtoXHtml.html", Encoding.Unicode) document.Close() Saves as XHTML. Word document to convert Stream to save True if XHTML is created for EPub format Saves the Word document as XHTML file in a stream. The to be saved as html. The to save the html file. The following code example demonstrates how to convert Word to XHTML file in a stream. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds new text to the paragraph paragraph.AppendText("Hello World!"); HTMLExport export = new HTMLExport(); MemoryStream stream = new MemoryStream(); //Save the document as Xhtml file export.SaveAsXhtml(document, stream); document.Close(); 'Creates a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds new text to the paragraph paragraph.AppendText("Hello World!") Dim export As New HTMLExport() Dim stream As New MemoryStream() 'Save the document as Xhtml file export.SaveAsXhtml(document, stream) document.Close() Saves the Word document as XHTML file in a stream with specified encoding. The to be saved as html. The to save the html file. The character encoding to use. The following code example demonstrates how to convert Word to XHTML file in a stream with specified encoding. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds new text to the paragraph paragraph.AppendText("Hello World!"); HTMLExport export = new HTMLExport(); MemoryStream stream = new MemoryStream(); //Save the document as Xhtml file export.SaveAsXhtml(document, stream, Encoding.Unicode); document.Close(); 'Creates a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds new text to the paragraph paragraph.AppendText("Hello World!") Dim export As New HTMLExport() Dim stream As New MemoryStream() 'Save the document as Xhtml file export.SaveAsXhtml(document, stream, Encoding.Unicode) document.Close() Writes the XHTML. The doc. Name of the CSS file. Closes this instance. Writes body Add the trial version message Writes the background image. The pic. Writes the style sheet. The doc. Name of the CSS file. Append style sheet Appends the line. The sb. The textline. Writes page break before in a span. Writes the section. The sec. Writes the footnotes. The sec. Write text body Writes the body item. The body item. Writes the paragraph. The paragraph. Decides whether current field items should be skipped or not. Current paragraph item. Decides whether the currently writing hyperlink field results. Returns true if field stack contains Hyperlinke field. Writes the paragraph items. The para items. To combine the text in the subsequent textranges whether it has same character format Write break As per MS word behavior, to preserve line break properly Checks whether the break is last renderable items True if break is last renderable item else false Writes the text box. The text box. Writes the footnote. The w footnote. Write footnote span Writes the footnote attributes. Writes the form field. The field. Writes the paragraph or list. The paragraph. Checks whether the list value should write as paragrapgh or not If m_document.SaveOptions.HTMLExportWithWordCompatiblity is enabled and listformat pattern type is bullet, then list should written as simple paragraph ListFormat True if the list value should written as paragraph else False Ensure within Division Write style attribute for paragraph Adds the decoration style of the text range to inline style of the paragraph Check whether the style is heading style Write List Gets the CharacterFormat of the list Copys Character formatting Ensure whether the style is already defined and appends the style accordingly Removes duplicate style attribute entry Name of the style Current style validated style Write list start tag Gets StartAt Value for current list level Preserve List as paragraph tag Write prefix value for List Write tab space for list Get list character for Epub Convert Arabic to Roman Get Prefix value Writes the bookmark. The bookmark start. Checks whether the para has only bookmarks and the current writing bookmark start is last bookmark start of para child entites The current writing bookmark start True if the para has only bookmarks and current writing bookmark start is last bookmark start of paragrapgh else false Writes the field. The w field. Pushes the field to FieldStack. Insert Field Begin Write the field mark Writes the hyperlink. The hyperlink. Writes the image. The pic. Writes the text range. The w text range. Get the current layouted custom tab Get the current tab style Get the current tab leader text Get the current tab width Write the string which contains tab in between letter split the text whether it contains control character tab Write the tab text instead of "\t" with tab leader based on it width Write the list follow text Write the prefix list tab text Writes the table. The w table. Check whether the table has misaligned cells Write grid before cell Apply default table grid style for the table Get the bottom border for the Vertically merged cell Get the right border for horizontally merged cell Writes the row of offsets. The offsets. Writes the span attributes. The col offsets. The row offset. The cell. Gets the rowspan. The cell. Gets the cell by offset. The w table row. The row offset. Calculates the columns. The table. Gets the colspan. The col offsets. The row offset. The p. Gets the colspan. The cell. Writes the cell attributes. The cell. Writes the table attributes. The table. Check whether the border attribute need to preserve Write table border Get table border style Write table cell spacing Write table width Write table alignment Gets the table alignment Writes the row attributes. The row. Gets the paddings. The paddings. Gets the paddings. The paddings. Get cell padding from table Gets the style. The format. Checks with Texture and returns the Background color of the cell Gets the cell background. The format. Gets the color value. The fore color value. The back color value. The percent. Gets the borders style. The cell borders. The row borders. The string builder. The owner cell. Gets the row border. The borders. The cell. The side. Gets the border style. The cell border. The row border. The string builder. The side. Get table border style based on table border Get Cell border color based on table border s Get border color Get Cell border width based on table border Get line width based on border style Gets the style. The format. check whether the paragraph contains contextualspacing property or not. Get the paragraph from table. Get character format style Get character format style Gets the HTML equivalent colors for highlight colors in Word document Sets the size of the checkBox. The style. The checkBox. Size of the checkBox. Gets the color in Hex format Color Hex value Gets the borders style. The borders. Gets the border style. The prefix. The border. The sb. Converts border style to html border style. The style. Converts border style to html border style.(For Paragraph border similar to MS Word) The style. Encodes the name. The name. Checks the valid symbols. The name. converting metafile image to bitmap Processes the image. The picture. The image path. Writes the empty paragraph. The characterformat format. Writes the text. The text. Get tab Text of which contains 15 non breaking white space and single normal white space Replace empty space with non-breaking space Returns the string with style names (according to their hierarchy) which are applied on paragraph. Close the list Paragraph level Number /// Paragraph Write the End element Difference Writes the type of the list. The type. Gets the level numer. The list format. Gets the list start value. The format. Gets the List start at value Ensures the level restart. The format. if set to true full restart is performed. Returns the Percentage of Color for the TextureStyle Gets the list format for paragraph. The paragraph. Gets the outline level Sort the document Behind Wrap Style floating items based on its Z-Index and swap the z-index values. Creates Navigation point The paragraph Checks if heading style is present in the document Style name True if the style is heading style; false otherwise Replaces special character Input text Replaced text Returns the heading level of the style Style Name Heading level Gets new navigation point id Id Gets or sets the value indicating whether to use the absolute path. True if absolute path is specified, otherwise false. Gets the lists. The lists. Gets the Behind wrap style floating items. The lists. Gets the current field. The current field. Gets the previous field. The previous field. Gets the footnotes. The footnotes. Gets the field stack. The field stack. Gets the endnotes. The endnotes. Gets or sets whether to cache files as stream. Gets or sets whether to create navigation point Gets or sets if the OEB header / footer is created Gets the stylesheets to be embedded in document Gets the images to be embedded in document Returns the bookmarks used to create TOC Get or set the value indicating the paragraph has tab Get or set the current line width Get or set the default tab width Get the drawing context Get or set the layouted tab list Get or set the value indicating the paragraph has tab Instance of FloatApproxComparer class. Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. The first object to compare. The second object to compare. Value Condition Less than zero is less than . Zero equals . Greater than zero is greater than . Neither nor implements the interface.-or- and are of different types and neither one can handle comparisons with the other. Converts markdown DOM to DocIO DOM Convert markdown to Word DOM. Word document Markdown document Convert markdown to Word DOM. Apply the paragraph style for code block Applies Md paragraph list style to the Wparagraph as list. Current block element Convert the mark down inline items to corresponding word element. Convert md hyperlink to word hyperlink element and append it to the given word paragraph. Convert md picture to word picture and append it to the given word paragraph. Convert md table to word table element. Convert Mark down text range to Word text range with text range character styles applied. word paragraph Replaces the '\\' character with given character from the text. processed text Gets the table column text alignment based on markdown table column Alignment. Horizontal Alignment type Add Fenced code style in the Word document. Apply Md paragraph style to the WParagraph. Get list pattern type based on the list level. List pattern type Closes this instance. Represents the Rtf lexer. Initializes a new instance of the class. The instance. Reads the Next token from the stream Reads the Next token from the stream Reads control word Reads Document element Closes this instance. Implemented alternative method to improve the performance Gets and Sets the imagebytes Gets and Sets CommentRange start id Gets/Sets Rtf table type Gets/Sets Rtf token type Specifies the flags/options for the unmanaged call to the GDI+ method Metafile.EmfToWmfBits(). Parse each token from the rtf Remove the text formats from stack which were added due to nested RTF document. Check whether this current group contains pn list related tokens retrun the bool value current object of group class Check whether this current group contains "ls" or "ilvl" or "pnlvlbody" token retrun the bool value current object of group class Initializes the default compatibility options. Closes this instance. Add font to the font table collection Add color to the color table Add styles to the style table collection Check whether the style is present in the document Parse Control start Gets whether the group is a nested group Parse group start Parse Group End Parses the drawing tokens after detecting the shape type. Parses the drawing tokens after detecting the picture. Moves the body items into the shape. Parse group end within field group Ensure whether the end of field sub group(field instruction and field end) Ensure field group end Write Form field properties Remove Delimiter space from the document text Identify whether the token is a picture token Parse document element Check whether the current text format is default text format or not. Encode the string with its code page. Gets encoding information for the corresponding code page. Gets encoding information for the corresponding code page. Reset the text range fill color to empty. Character format Set field code and formatting to text range. Parse field group Parse TOC field Parse unknown field Append Textrange Replace Wfield object with WMergeField object Apply field properties Parse the form fields destination control words Parse Image bytes Parse custom document properties Parse built-in document properties Gets the field type Get the formatting string Apply the drop down field specific properties Apply the textform field specific properties Apply the checkbox specific properties Apply the common formfield properties Check whether the current picture/shape need to be skipped or added Append Picture to the current paragraph Get the rotation angle for picture. Represents the angle of rotation Get the buffer size for initialize the rtf reader position for read the upcoming contents. Represent the size of the buffer return the position which needs to be readed by a reader Get Image bytes from the token Apply picture Formatting Sets AutoShapeType based on rtf because the value of rtf and our AutoShapeType enum values or different. Apply Shape Formatting Apply TextBox Formatting Apply the text box formats to shape Copy paragraph formatting Parse control word from the rtf file Skip the group. Read the corresponding bulletin character. Parse list table Parse list level start Copy Character formatting Copy base list style to overrided list style Parse pagenumbering of the section Parse line numbering of the section Parse font table Reset the list font to default font. Checks whether the paragraph exist in shape result or not. Parse Formatting controls Parse the Frame X and Y positions for the paragraph The value of the property True if negative value, else false. True if X value, else false. The position value Reset the paragraph formatting Reset Borders Reset Border Reset the character format Get equal column width of the section Parse special characters Check whether the accent character need to be omitted Get Texture style Parse listtext start Parse paragraph end Parse paragraph start Parse section start Copy Section formatting Parse row Start Parse Row End Parse Cell boundary Gets the text wrap around. The positioning. Parses Accented character Get the code page for the current Font character set Determines whether current code page is single byte encoding. true if [is single byte]; otherwise, false. Get Font Character Set Determine Whether the code page is supported for Encoding Get the code page is supported for Encoding Set the default value of the paragraph format Process the table information based on the levels Ensure the lower level tables Current paragraph level Ensure the upper level tables Currentl paragraph level Apply list formatting Apply Section formatting Parse the shape and textbox related tokens Set the Default values for Shape in Text Box If the shape is True in text Box then textbox need to set this value Get the TextBox LineStyle to TextBox shape Line Style Sets the rotation value of a shape Adds the shadow distance and direction Add the Adjust Values for each shape Adds the required values into the stack before reading the another shape Adds the required values into the stack before reading the shape textbody. Clears the values in previous textbody. Resets the m_pictureOrShapeStack after reading the shape textbody. Resets the required values after reading the shape textbody. Parse picture token Get Int Value Parse Vertical alignment of the page Parse outline levels Parse Borders Appply cell formatting Apply Row formatting Apply cell border Adds the new paragraph to the current section Update Paragraph Tabs collection Update tabs with type as clear from BaseFormat to direct paragraph formatting Add new section to the current document Extract the Twips value from the token Extract the Quater point value from the token Sort Tab Collection based on Tab position Seperate Token keyword from the token Value Checks and get the alternate or default font index Current Textformat Current Character format Returns the font index value Check whether the property value is same as in its paragraph style Para style character format Property key Property value in text format True, if the para style and text format value of the current property is same Copy Textformating to the character format Apply font for the current paragraph Apply font color for the current text Implemented alternative method to improve the performance Sets the parsed element flag. The token. Sets the shape elements flag. The shape type value. Gets/Sets the value indicating whether the stylesheet group is started. Gets/Sets the value indicating whether need to create new list style for PN list style numbering. Gets/Sets the value indicating when the current section contains sectd tag. Get's or set's the Default code page of the document Get's or set's the Default font index value Checks whether the control word is destination control word Gets whether the group is form field group Gets whether the group is field group Gets the current paragraph level Gets the previous paragraph level Gets the current TextBody Gets the current para. The current para. Gets and Sets the current column Gets the current section Gets and sets the current list style Gets and sets the current list override style Gets the current comment. The current comment. Gets the comments id list. The comments id list. Holds the text which enclosed by the comment tags The comments id list. Holds the collection of Comment along with its ID The comments id list. Gets and Sets the current list level Gets and Sets the current Rtf font Gets and sets the current color table Gets and Sets the current table Gets and Sets the current row Gets and Sets the current cell Gets and Sets the current cell format Gets/Sets the current row format Gets/Sets the current tab format Hold the shape property value temporarily until find the shapeType token Initialize the Values Text format class Specifies Vertical position of the Character Specifies scaling percentage of the Character. Specifies the character spacing of the text Specifies Bold format. Specifies Italic format. Specifies Underline format. Specifies Strike format. Specifies DoubleStrike format. Specifies Emboss format. Specifies Engrave format. Specifies SubSuperscript Format Specifies font color of the text. Specifies back color of the text. Specifies fore color of the text. Specifies Hightlight color of the text. Specifies the font family. Specifies the font size. Specifies the text alignment. Specifies the text style. Clones this instance. Gets or sets the ASCII locale id . The ASCII locale id . Gets or sets the far east locale id . The far east locale id . character spacing of the text Gets or sets the complex script locale id . The far east locale id . Specifies Vertical position of the Character Specifies scaling percentage of the Character Specifies Highlight color of the Text Section Format class Gets/sets the bin in which the first page of the section will be printed Gets/sets the bin in which the other pages of the section will be printed Picture format class Shape Format Class Returns the Size of shape Gets the Size of Shape Represents the group for RTF document. Get Groups's object from the childElements collection Set Groups's object into collection Represents token for RTF document Gets/Sets the value of token Gets/Sets the value of token Represents the form fields information represents the value of ffname token Represents the value of ffhelptext Represents the value of ffstattext Represents the field type w.r.t the value of the fftypeN Represents the value of ffrecalcN Represents the value of ffentrymcr Represents the value of ffexitmcr Represents the value of ffprotN Represents the value of ffhpsN Represents the checkbox type specified by the token ffsizeN Represents the value of ffdeftext Represents the value of ffformat Represents the value of ffmaxlenN Represents the collection of values of ffl control word Represents the value of ffhaslistboxN Represents the value of ffres Respresents the value of ffdefres Respresents the value of ffdefres for check box Gets/Sets the checked status of the check box Gets or sets Gets or sets the maximum number of character allowed in text form field. Gets or sets the string format Gets or sets the default text for the textform field Gets or sets the checkbox size type (Auto/Exactly) Gets or sets the checkbox size. This size will be reflected only when the checkbox size is of Exactly type Gets or sets the value which protects this form field Gets or sets the Macro name to execute upon exit into this form fie Gets or sets the Macro name to execute upon entry into this form fie Gets or ets the form field name. Gets or sets the help text string. Gets or sets the boolean value which represents whether the field should be calculated on exit or not Gets or sets the status line text Gets or sets the formfield type. Clones this instance. Get/Set the alternate font name to use if the font specified in the font table is not available. Gets and Sets the tab position Gets and Sets the justification for the tab Gets and sets the tab leader Gets and Sets the Red component value Gets and Sets the green component value Gets and Sets the blue component value Represents the details for the table representation based on the paragraph level. Updates the specified reader. The reader. The prev level. Represents the Rtf reader. Initializes a new instance of the class. The instance. Read a single character Reads the image bytes from the stream Closes this instance. Gets the Rtf data Gets the encoding. Gets and Sets the current position in data buffer. Gets and Sets the data buffer length Converts dls document into rtf format Collection of font table entries - to avoid serialization of duplicate font entries in fonttbl Writes document to the file specified by filename Name of the file. The document. Writers WordDocument to the specified stream. The stream. The document. Gets the RTF text. The document. Writes the body of document. Build the document page informations. Builds the default styles. Builds the sections. Builds the background. Builds the section. The section. Builds the section body items. The section body item collection. Builds the body items. The body item collection. Builds the headers and footers. The headers footers. Gets the watermark for each headers. Builds the header footer. The name. The body item collection. Builds the paragraph. The paragraph. Compare the list format of paragraph Check whether the previous paragraph has fieldend Builds the paragraph end. The paragraph. Write sect token. The Memory Stream. Builds the character format. The character format. Gets the RTF control word for paragraph alignment. Builds the paragraph format. The p format. if it is append style, set to true. Builds the paragraph format. The p format. if it is append style, set to true. Builds the paragraph spacing. The paragraph format. The style paragraph format. Builds the spacing. The attribute. The value. Builds the auto spacing. The value. if it has spacing, set to true. Builds the line spacing. The paragraph format. Builds the texture style. The texture style. Builds the section properties. The section. Builds the page setup. The page setup. Builds the page number style. The page number style. Builds the columns. The column collection. Builds the underline style. The under line style. The string builder. Builds all tab from tab collection. The tab collection. Builds the paragraph borders. The paragraph format. Builds the page borders. The borders. Builds the border. The border. Builds the border style. The border style. Builds the style sheet. Builds the style. The style. Builds the style. Name of the style. Builds the text border. The border. Builds the frame property. The paragraph format. Builds the paragraph list id. The paragraph. The paragraph format. Builds the table. The table. Builds the table row. The table row. Builds the Table row property. The table row. Builds the Table cell property. The table cell format. Builds the Table row borders. The borders. Builds the Table cell borders. The cell. The cell borders. The row borders. Builds the table cell. The table cell. Builds the padding. The paddings. if set to true [is row]. Builds the vertical alignment. The alignment. Checks the cell borders. The table cell. Type of the border. Builds the paragraph item. The paragraph item. Builds the symbol. The symbol. Builds the footnote/endnote. The footnote. Builds the footnote property. The footnote. Builds the endnote property. Builds the field mark. The field mark. Builds the field. The field. Inserts the line break. The Break. Builds the text range. The text range. Inserts the Bookmark end. The bookmark end. Inserts the Bookmark start. The bookmark start. Builds the toc field. The toc. Builds the picture. The picture. Builds the shape image. The picture. Builds the Inline Image. The picture. Builds the shape image. The shape. Write the Basic Shape Tokens Write the Shape Position tokens Write Shape Object Type tokens Write Shape Horizontal Line tokens Write Shape Line tokens Write Shape Fill tokens Gets the RTF AutoShape Color Write Shape Adjust Values tokens Write Shape Shadow tokens Gets Offset X and Y if the parsing done in docx Write Shape 3D tokens If the document parsed from docx then the adjust value format is different So convert the docx adjust values to rtf adjust values for each shape. Builds the extrusion from plane. Builds the extrusion from plane. Determine whether the image is WMF format Builds the picture property. The picture. Builds the metafile properties. The picture. Gets the RTF image. The image. Use the EmfToWmfBits function in the GDI+ specification to convert a Enhanced Metafile to a Windows Metafile A handle to the Enhanced Metafile to be converted The size of the buffer used to store the Windows Metafile bits returned An array of bytes used to hold the Windows Metafile bits returned The mapping mode of the image. This control uses MM_ANISOTROPIC. Flags used to specify the format of the Windows Metafile returned Deletes an enhanced-format metafile or an enhanced-format metafile handle. A handle to an enhanced metafile. If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Builds the wrapping style. The wrapping style. The wrapping type. Builds the wrapping type. The text wrapping type. Builds the shape property. Name of the property. The property value. Sets AutoShapeType based on rtf because the value of rtf and our AutoShapeType enum values or different. Sets Linestyle based on rtf because the value of rtf and our Linestyle enum values or different. Builds the layout in cell token. The value that represents whether a picture in a table is displayed inside or outside the table. Builds the horizontal alignment. The shape horizontal alignm. Builds the vertical alignment. The shape vertical alignm. Build textbox visible or not Builds the horizontal position. The horizontal position. Builds the vertical position. The vertical position. Builds the shape position. The horizontal position. The vertical position. The shape width * shape horizontal scale. The shape height * shape vertical scale. Builds the text box. The text box. Build textbox position related tokens. Build textbox fill related tokens. Build TextBox Line Related Tokens Builds the text flow in text box Builds the text box wrapping style The text wrapping style Builds the text box line style. The line style. Builds the shape lines. The line color. The line dashing. Width of the line. Builds the shape fill. The color. Builds the gradient variant. The gradient variant. Appends the list styles to list table. The list styles. Builds the list level. The list level. Updates the list numbering prefix. The prefix. Builds the level text. The list level. Builds the level numbers. The list level. Gets the level text length. The level text. Gets the level text. The list level. whether numberSuffix need to be added or not based on level numbers Builds the level formatting. The type of number. Appends the override list style. Builds the list text for paragraph. The para. Builds the list text for paragraph. The list level. Gets the List start value. The list format. Builds the List letter symbol. The list format. Determines whether the specified text is changed. The text. true if the specified text is changed; otherwise, false. Checks the number prefix. The number prefix. true if [is complex list] [the specified prefix]; otherwise, false. Builds the picture watermark body. The pic watermark. Builds the text watermark body ( property ). The text watermark. Builds the default watermark property. Builds the text form field. The text field. Builds the check box. The check box. Builds the drop down field. The drop down field. Builds the form fields. The form field. Builds the comment mark. The c mark. Builds the comment. The comment. Builds the Commnet items. The comment. Checks whether there are no or empty items between the comment range Comment to check True, if the comment has non empty string between comment range start and end, Otherwise return False Sets the color value. The character format. Color The base character format. Color The option key. The value. Builds Highlight color with name The color. The value. Builds color with name The color. The value. Checks the section for footnotes/endnotes. Builds field type. The type. Gets the color of the RTF format shape. The color. Gets the color of the RTF format shape. The color. Writes the elements. The param. Generate next font id. if set to true [is bidi]. Gets the next id. Gets the next color id. Check whether the font entries exists in the font table Appends the font to the FonrString. The font id. The format. Appends the color to the ColorString. The color. The attribute string. Writes the font names. The character format. Writes the font name bidi. The character format. Writes the paragraph end. The para. Prepares the text. The text. Replace unicode characters. The text. Builds the text range. The character format. The text. Writes the field end. The field mark. Gets the owner section. The entity. Inits the cell end pos. Gets the document lists ids. The lists ids. Gets the list override array. The list override ar. Gets the styles. The styles. Gets the style numb. The style numb. Gets the lists. The lists. Gets the comment ids. The comment ids. Gets the color table. The color table. Row borders Right border Left border Top border Bottom border Represents the parser for MS Word 2010 generated document. Reads the specified document path. The document path. The Word document. Reads the Word ML from filename The file name. Instance of Word document. Read the Word 2003Xml document The document stream. Instance of Word document. Read and skip white spaces. Reads FlatOPC document from the stream. Stream to read data from. Reads the specified data stream. The document stream. Instance of Word document. Reads the Word ML stream The document stream. Instance of Word document. Gets the decrypted document stream. The stream. The doc. Reads the word document The Word Document Update the main document path Get the path by its content type The extension. Get the content type of extension The extension. Get Format Type based AppVersion. The document. Updates the document format type. The document. Parse the document and its relations Check and sort the xml parts as per Rid partcontainer having customXml Binds the custom XML data into Content controls. PartContainer. Parse the meta data properties in custom xml part. Sets the xPath from the list of content control The custom xml part container The inline content control The block content control The cell content control Checks whether the custom XML parts contain a "Props" part. The container of custom xml parts. True if a "Props" part is found; otherwise false. Maps the content to the content control Reset the resultant text to the cell content control The xml part container The cell content control Resets the cell content controls. Cell controls. Root element. Reset the resultant text to the block content control The xml part container The block content control for which the text to be mapped Resets the block content controls. Block controls. Root element. Sets the resultant builtin property value to the content control Reset the resultant text to the inline content control The xml part container The inline content control for which the text to be mapped Resets the inline content controls. Inline controls. Root element. Gets the list path from params Gets the list path Gets the index from the node path Gets the resultant child node from the child nodes Check whether the current node is from a valid parent. Checks whether the current node has expected attributes as mentioned in Xpath Returns the result text for the cell content control Returns the result text for the block content control Get the attributes of the xpath Extract the correct date format. Checks and converted the binded xml text into proper date time format. Binded xml text. True if the binded xml text is in specified date time format; otherwise false. If the content from WordML is empty, then set 5 spaces as default Determines whether the paragraph items in paragraph is empty paragraph returns true if paragraph is empty Determines whether the paragraph is empty paragraph returns true if paragraph is empty Get the 5 empty spaces from WordML Converts the WordML format into text. The inline content control. Mapped text of the content control. Maps the WordML to block content control The block content control. The text body that contains the items need to be added to the content control. Converts the WordML format into text. The block content control. Mapped text of the content control. Converts the WordML format into text. The cell content control. Mapped text of the content control. Checks whether the text is WordML format document. Mapped text of the content control. True if text is WordML format, otherwise false. Sets the mapped cell to the cell content control The table cell The resultant mapped text Sets the mapped picture to the block content control Sets the mapped picture to the inline content control Sets the mapped text to the cell content control Set the default picture and check if the picture is default or not. Set the default height and width and default picture to the content control. Check whether the picture is default redX picture. Updates the base64 image in the picture content control. Sets the mapped paragraph to the block content control The block content control The resultant mapped text Checks whether the document has glossary document Checks whether need to map placeholder from glossary document to content control Checks whether need to map Databinding Value from glossary document to content control Parse glossary document and map the place holder text Clear the items in block content control except the last paragraph Mapped the paragraphs in docpart to content control Parse docpart in glossary document Check whether content control need to preserve five non breaking space as place holder text Copy the formattings from content control to text range. Sets the mapped text to the inline content control The inline content control The resultant mapped text Replaces the break chars from text. Text to replace with break chars. The text. Replaces the break chars as soft breaks. Text to replace with break chars. The text. Clears the parsed image from package. Name of the image. Name of the container. Parse the theme xml part Theme part stream Parse the theme elements XmlReader Parse the Format Scheme Parse the Effect style Scheme Parse the Effect style list of themes scheme Gets the shape property value Parse the Shape ThreeD properties(sp3d). Parse the Scene ThreeD properties(scene3d) Parse the camera settings Parse the light rig Gets the Light rig direction Parse the ThreeD rotation effects Parse the ThreeD back drops Parse the Effect list items Parse the fill style list Parses the color transform. The reader. The parent element. Color of the theme. The opacity. Parses the theme element gradient fill of the Fill Style List. The reader. The gradient fill. Parses the theme elements gradient stop. The reader. The gradient fill. Parse the Line Style Scheme Parse the Line Style Theme part stream Parse the Font Scheme Theme part stream Parse the Scheme Color Theme part stream Gets the name of the base font. The reader. if it is major, set to true. Extract the DocProperties part Docx package Parses the vba project. The stream. Parses the vba project signature. The stream. Parses the vba project signature agile. The stream. Parses the vba data. The stream. Parses the macro data. The reader. Parses the doc events. The reader. Parses the font table. The stream. Parses the fonts of Word 2003 XML document. The reader. Update Font Table Parse the Word 2003 Xml font details The reader The fontName Parses the font details. The reader. The fontName. Get Bytes from string Parse the document The document.xml stream Check whether the current table could merge with its previous table or not. check whether the previous table row's IsHeader property true of false. True if IsHeader property is true, otherwise false. Parse the document body The Xml reader The entity A flag represents true if the body to parse is nested body element, false if it is normal body element. Parses a block content control. The XML reader containing the block content control. The entity to add block content control. Performs post-processing tasks for a block content control. The block content control to post-process. Check the postParaItemsCollection has other than Bookmark And Editables Ranges True, if postParaItemsCollection has other than Bookmark And Editables Ranges otherwise False Update the nested paragraph child entities to the previous paragraph. Nested paragraph instance Modify the object model of StructureDocumentTagBlock whether the paragraph in the SDTContent has section break Add the paragraph to the corresponding textbody Add the post paraItems to the paragraph The paragraph Adds the bookmarks to the alternate chunk bookmark collection. The alternate chunk. Parse the pargraph element Xml reader The paragraph object Parse the nested paragraphs Xml reader Outer paragraph items collection Parses a nested table inside a paragraph. The xml reader. The outer paragraph items collection. Moves the paragraph items before the nested table to the first paragraph inside the table. The collection of paragraph items to be moved. The first paragraph inside the table where the items will be moved. A boolean indicating whether the nested table is inside an inline content control. Apply the directional override to the character format Update insert/delete content control revision. The revision type. ParagraphItem Collection. Parses the comment. The reader. Parses the 2003 format comment. The reader. Parse the comments part (comments.xml) Parses the comment start. The reader. The paragraph. Parses the comment end. The reader. The paragraph. Update comments stack The id of the specific comment Updates the commented items. The item. Parses the comments extended The reader Parse the comment extended The reader Parse the table The XmlReader The Table Parse the table The XmlReader The Table Check the grid span of the table and update the grid span if it is same for all columns Current table Checks whether the gridafter need to consider for update table grid Update the table cell width if width was not specified and type was none or auto. The Table Parse the table row The Xml reader The table row Add the AlternateChunk to textbody. tablecell Parse Structure document tag cell Parse structure document tag cell content Parses Structure document tag row content Reader StructureDocumentTagRow WTable Parse the table cell The xml reader The table cell Parse the table cell properties (CellFormat) The Xml reader The table cell return true if row's first cell width was not defined and type was none or auto. return true if cells width types are none or auto and width 0. Parses the change cell format Parse the cell shadings The xmlreader The table cell Parse the cell vertical Merge Parse the cell horizontal Merge Parse the cell vertical alignment The Xmlreader Parse the text direction of the cell from Word2003. The xmlreader The CellFormat Parse the text direction of the cell. The xmlreader The CellFormat Parse the cell Width Updates the width of the cell. The cell. Updates the width of the cell. The cell. The grid span. Update the cell width based on revision value grid span The current cell The revision value of grid span Parse the Table row properties The xml reader The table row. Parses the change row format Gets the attribute value. The reader. Name of the attribute. The attribute namespace. Parse the table row height The xmlreader The table row Applies table properties on table row. The table row The table Updates the table borders. The XML table format. Parse the table properties The xmlreader The entity Parses the change table properties The xmlreader The table Converts the string to its corresponding Integer value Converts the string to its corresponding Integer value Parses the table title. The reader. The table. Parses the table description. The reader. The table. Parses the table look. The reader. The table. Gets the bool value. The value. Get th Gets the table look value. The reader. The name. Parse the table margins Parse the table margins Get the corresponding paddings wrt the entity The entity The paddings Parse the table justification Parses the table absolute positioning. The reader. The table. Parses the tables' vertical relation. The positioning. The position. Parses the table vertical relation. The positioning. The position. Parses the table absolute horizontal positioning. The positioning. The position. Parses the tables' absolute horizontal positioning. The positioning. The position. Parse the table shadings The xml reader The row format Parse the table layout element The xmlreader The rowformat Parse the table style element The xmlreader The table Get the corresponding row format based on the entity The entity Parse the table grid element The xml reader The table Add a table to the corresponding the textbody Parse the Hyperlink The xml reader The paragraph element Returns true if it is called from picture hyperlink. Get the relation The relation id Parses the hyperlink text. The reader. The paragraph Parse the Field Simple The xml reader The paragraph Get the particular bookmark name by its ID from BookmarkInfo collection The bookmark id. The bookmark name Removes the particular bookmark name by its ID from BookmarkInfo collection The bookmark id. Parses the bookmark end. The reader. The para items. Checks whether the paraItems has renderable items or not True If para items has no renderable item else False Parse the bookmark end element The xml reader The entity Checks whether the bookmark end is added to the collection if previous element is alternate chunk. The bookmark end. Then bookmark name. The entity. The attribute value. true if bookmark end is added; otherwise, false. Gets the paragraph which contains end. The cell. Gets the paragraph which contains end. The cell. Parse the bookmark start element The xml reader The paragraph Parse the move range end when it exists between paragraph,table,table row, cell. Parses the editable range end. The reader. The para items. Parse the editable range end element The xml reader The entity Gets a based on the bookmark or editable range specified in text body. Represents a textbody item contains reference mark. Returns a contains bookmark or editable range. Gets the paragraph based on the bookmark or editablerange specified in the text body Represents a textbody item contains reference mark. A flag which denotes whether reference mark is after a table. Returns a where the bookmark or editable range is specified. Gets the owner paragraph of mathametical eqautions. Parse the editable range start element The xml reader The paragraph Create the character format for the current text range. Parse the run element The xml reader The paragraph Bool to ensure whether the parsing call from text body parsing Parse the run element The xml reader The paragraph Returns whether isEmptyElement condition is checked or not Checks whether choice item added into paragraph items. Gets the Shape line fill type The shape Parses the Absolute tabs The xml reader Parse the field mark element The xml reader The entity Check whether ffData element is present as field mark child elements Check whether Oleobject is present for skipping in Word 2003 XML Process the Field mark seperator The paragraph Process the field mark end Insert the begin - field mark Update the type of unknow field. Current field. Current field mark. Appends PAGE field for "pgNum" element into paragraph items. Paragraph item collection Parse the form field's data The xml reader The entity Parse the form fields The xml reader The Form field. Parses the drop down form field. The xml reader. The dropdown Form field Parses the textform field. The xml reader. The textForm field Parses the text format. The format. Parses the type of the text formfield. The type. Parses the check box. The xml reader. The Checkbox. Gets the form field object. The node. Parse the Footnote/Endnote part from Word2003. the reader is Footnote Parse the Footnote.xml / Endnote.xml part Bool flag to denote footnote or endnote The table row. Parses the footnote endnote. The reader. Gets the footnote by ID. if it is footnote, set to true. The id. Parses the footnote entnote symbol. The reader. The footnote. Moves to next line. The reader. Parse the objects Check whether the field result is from link field or not Parse the ole object Parse the ole objects picture wrapping style. Parse the ole data Gets the OLE part. The OLE id. Gets the OLE link path. The id. Determines whether the container is the native data. The type. true if the container is the native data; otherwise, false. Check whether the mentioned node exists or not Parses the shape The xml reader The Paragraph Items The Drawing stream. Memory Stream The choice shape Check whether the shape is VML custom shape or not The Shapetype The shape stream Parses the Extrusion Effect(TheeD effect in 2007 format document) Gets the Extrusion value The value Gets the Extrusion Axis The Effect Format The attribute value Attribute name Parse shape 2007 shadow effect The Shape The Shadow Stream Gets the shadow offsets Parse the Fill offsets Gets the point value. Gets the shadow type. Shadow Type Parses the Xml Relations. The Shape The shape stream Parses the Xml Relations. The Shape The shape stream Prases the Group shape Group shape stream Parse the shape Shape Stream The drawing stream. Parses 2007 Shapes The xml reader The Shape Parse 2007 Group Shape Parse 2007 Group shape items The xml reader The Shape Updates the AutoShapeType for child shapes. Parse 2007 Group shape items The xml reader Parses Textbox Wrap Style The xml reader The Shape. Parse the TextBox The xml reader The Shape Parse the TextBox The xml reader The Shape Parses 2007 shape Fill effect The reader. The Shape Parses 2007 shape Fill effect The reader. The Shape Parses 2007 shape Fill effect The reader. The Shape Parses the 2007 shape fill transparency The opacity value. Gets the angle The angle value. Parses the 2007 gradient fill The reader. The Gradient Fill. Parses the focus position for the gradient fill of the shape the Table row properties The xml reader The Gradient Fill. To parse 2007 shape textbody content To Get the textbox's style To Get the shape/textbox's text direction To parse stroke effect of 2007 shape The reader The shape To parse stroke effect of 2007 shape The reader The shape Parse 2007 shape properties The reader Group shape Parse 2007 shape properties The reader Child shape To parser line shape properties The xml reader Group shape To parser line shape properties The xml reader Child shape To parse Horizontal rule The xml reader The group shape To parse 2007 shave effects The reader The group shape To parse 2007 shave effects The xml reader The child shape To Apply 2007 shape properties Group shape The property name The property value To Apply 2007 shape properties Child shape The property name The value Parse drawing properties of the shape Get the base entity Parses the text watermark. The node. The ent. Read the text watermark properties. Parses the text watermark position. The reader. The water. Parse text watermark positions. Parses the size of the font name and. The reader. The ent. The shape H. The shape W. Reads the specified attribute value from the stream. The stream. The element name. The attribute name. The namespace. The flag to read empty string. Returns the specified attribute value. To find the element by its value Parses the picture shape from stream. The shape stream. Parses the picture shape from reader. The reader. The entity. Read the binData element string which contain Image in base 64 fomrat Sets the brightness value for the image from float value ranges. The picture. The float value. Sets the brightness value for the image. The picture. The decimal value. Sets the contrast value for the image from float value ranges. The picture. The float value. Sets the contrast value for the image. The picture. The decimal value. Gets the crop value Parses the stroke props. The reader. The shape. Gets the line join style. The line join style. Parses the shape border. The reader. The border. Gets the shape border style. The boder style. Parses the pic shape props. The reader. The ent. Parses the pic shape style Sort the shape style attributes as per Microsoft Word order Parses the pic shape props. The pic. Name of the prop. The prop val. Parse Text Box Properties Parse the Text Box Wrapping Style Parses the fill effect. The reader. The Textbox. Parses the gradient fill. The reader. The background. Parses the color of the gradient. The reader. The background. Parses the gradient style. The reader. The gradient. Parses the shading variant. The focus. Parses the pattern fill. The reader. The background. Parses the picture fill. The reader. The textbox. Type of the fill. Parses the wrap Type. The Wrap type Parses the wrap style. The reader. The textbox. Parses the type of the wrap. Type of the wrap. Parses the content of the textbox. The reader. The entity. Parses the text box style. The reader. The textbox. Parses the internal margins of textbox. The reader. The textbox. Parses the internal margins of textbox. The reader. The textbox. Gets the textbox margin. The margin. Gets the textbox margin. The margin. Parses the dash style. The dash style. Parses the line style. The line style. Gets the point value. Gets the point value. Parse the text box wrapping mode Current text box wrapping type Parse TextBox Graphics data Parse the drawing object Parse Shape Parse the custGeom of custom shape Sets the reader position to custGeom Parse the path list of custom shape Parse the custom shape pathLst elements Parse the path2D point of custom shape Parse common properties of chart and shpae Parse the horizontal position properties parse the vertical position element (positionV) Parse the wrapping type Parses the wrap polygon. The reader. The entity. Unexpected xml tag + reader.LocalName Parse chart Parse Chart relations Parses chart data and relations Checks whether external file is Excel sheet. Gets the extension string Parse themes collection of document to workbook themes collection for parsing colors of chart Sets the category range of chart Parses the graphic data of shape. The reader. The picture. Parse graphic data of group shape Parse the preset material type. Parse the Graphic Frame in Group shape Node as stream Group shape Child group shape Parse nested group shape The xml reader The Child group shape Generate child shape id Parse child group shape properties The xml reader The child group shape Parses the Effect format of the auto shape. Parses the Effect format of the auto shape. Parses the Effect format of the auto shape. Parse the Reflection Effect Parse the shadow Effect. Parse shadow attributes Parses the styles of graphic data. The reader. The shape. Parse child shape style items The xml reader The child shape Parses the graphic data. The reader. The picture. Parses the Blip image The reader. Fill Format. Gets the Blip image values Parses the Duotone colors. The reader. The parent element. The opacity. Parse the Blip Extension List Parse blip image properties Read the SVG image data. Parse the Image layer Parse the Image Effect Parse the Image Effect items Gets the Image Effect Value Parse the Background removal rectange of blip picture Parse the Color change child element of the blip To Get the shape/textbox's text direction To Parse the line format of the shape To Parse the line format of the shape Parse the Image Hyperlink Reader Paragraph Download image from url Url Image Get the Svg Image data from the particular location. Parse Xml paragraph item Parse Image relation of the group shape The group shape The ID Parse image relation of the child shape The child shape The ID Parses the image relation. The XML para item. The id. Get the relationship ids present within the XmlparaItem stream Find the Z-Index value in xml paragraph item Xml paragraph item stream Xml paragraph item Parses the shape hyperlinks id. Parse the picture Parse the picture properties Parses the graphic data. The reader. The picture. Parses the picture data. The reader. The picture. Parses the picture data. The reader. The picture. Parses the visual shape props. The reader. The picture. Unexpected xml tag + reader.LocalName Parses the visual shape props. The reader. The picture. Parses the visual shape props. The reader. The picture. Gets the Border Width Border Width Method to process effect extent element. the xml reader shape base Gets the line cap style. The line cap. Parses the line props. The reader. The shape. Gets the line end. The line end. Gets the end width of the line. End width of the line. Gets the end length of the line. End length of the line. Sets the language value Gets the flip orientation. The flip. Gets the flip orientation. The flip. Gets the type of the gradient shade. The shade. Parses the gradient fill. The reader. The gradient fill. Parses the gradient stop. The reader. The gradient fill. Parses the path gradient. The reader. The path gradient. Parses the color. The reader. The parent element. The opacity. Gets the color of the system. The reader. Gets the color of the scheme. The reader. Parses the color transform. The reader. The parent element. Color of the theme. The opacity. Parses the color transform. The reader. Color of the theme. Gets the percentage. The value. Parse the wrapping type Parse the horizontal position properties Gets the horizontal alignment. The align. Gets the horizontal origin. The origin. parse the vertical position element (positionV) Get the vertical alignment. The alignment. Get the vertical alignment of the Text in TextBox. The alignment. Get the vertical Origin of the height in TextBox. Get the horizontal Origin of the width in TextBox. Get the vertical origin. The origin. Check whether the element is Picture or unsupported element Check whether the chart is valid chart Current stream If the chart is 2016 and is not waterfall then returns false else returns true Parse the break item Parse the symbol The xml reader The paragraph Create a text range object Parse the run text Parsing the nested table. The XmlReader instance used to read XML. The entity representing the owner text body to insert the table into. The local name of the table. Indicates whether the isEmptyElement condition has already been checked. Move the text before the nested table to the first paragraph inside the table. Parsing the nested body inside running text. Reader to read xml. Trueif body is first nested body, otherwise false Gets the nested text. The reader. Represents flag, if there is another body inside running text. The paragraph items. True, if nested run properties otherwise false. True, if isEmptyElement is already checked otherwise false. The reader local name. Gets the nested text. The reader. Represents flag, if there is another body inside running text. The paragraph items. True, if nested run properties otherwise false. The reader local name. Skip the current element in reading Rotates the text. The text. Modify the text Parse document background Add the AlternateChunk to textbody. The entity. Parses the Alternate chunk. The entity. The AlternateChunk. Parse structure document tag block Parse SDT content Parse structure document tag block Maps the databinding value for picture content control Parse SDT end character format Parse SDT content Parse SDT properties Parse Doc Part Obj Parse Doc part obj and Doc part List child entities. Parse SDT Dropdown list Parse SDT combo box Parse SDT Date Get calender type Get storage format type. Parses MathML element. XML reader Paragraph items Parse the control properties of MathML elements. Parse math run element Parse Document Relations Parse FontTable Relations Parses the relations. The xml reader. The relations collection. Parse the custom document properties XmlReader for custom.xml Updates the text, that cannot be represented in Xml as defined by XML 1.0 specification. Parse the core properties XmlReader for core.xml Parse the extended properties XmlReader for app.xml Parses the list. The format. Parse the document properties from Word 2003 XML document XmlReader for DocumentProperties Parse the custom document properties from Word 2003 XML document XmlReader for CustomDocumentProperties Parses the list. The format. The reader. Finds the list style. The style. Parses the list format. The reader. The format. Update list style for numId which is not having specific abstract numbering definition NumID value Current listformat Get Base style name of the list format Parse the numberings The xml reader Updates the list styles which has numStyleLink attribute. Updates the AbstractListStyleNames value with newly added list. Finds the list style with when the parameter match with style StyleLink property. Parse Word 2003 xml numberings reader Parse Word 2003 xml numberings reader Parse the Num element of the numberings The xml reader Get the abstract number id based nsid. Parse the level override attrbutes Parse the level override Parse the abstract numbering element Parse the abstrat list styles The xml reader list style Parse the list level The xml reader The list level Parses the legacy properties. The reader. The level. Get the corresponding the follow char follow character as string returns the level follow character Get the justification value Justification value of type string returns the justification value Parse the list level text Gets the corresponding list pattern for the string value The list pattern value returns the corresponding list pattern Updates the type of the list style. The list style. Updates the name of the list style. The list style. Parses the picture bullet The reader Process the picture style The picture Picture size Parses the size. The part string. Parse/Get the picture relationship id parse and return the pitcure bullet style. Parse the style part Parse the styles of Word 2003 XML document xml reader Updates the base styles. Updates the list in styles. Updates the name of the link style. Counts the occurrences of value. The dictionary. Parse the document style Parse the style properties The reader The style object Add StyleNameID into the StyleNameId collection Creates the style. Type of the style. Parse the latent styles Parse the document defaults formattings Gets the character format of style. The style Gets the paragraph format of style. The style Parses the conditional formatting style properties. The reader The style Gets conditional formatting code. The styleType Parses the table style table properties. The reader The props Parses the table style row properties. The reader The props Parses the table style cell properties. The reader The props Parses the shading of table style table properties. The reader The props Parses the shading of table style cell properties. The reader The props Parse the run properties/Character formattings Updates the author name and time information for the inserted or deleted revision text Update the revision author information. To get the font size To validate for the Numeric values alone in font size Parses the ligatures. The reader. The char format. Parses the number form. The reader. The char format. Parses the number spacing. The reader. The char format. Parses the stylistic set. The reader. The char format. Parses the cfe layout. The reader. Gets the stylistic set. The value. Parse the border Get the border style for the corresponding string value String value that represents the border style The border Get the multiplier to find the border line width Parse the shading elements of run properties Returns the textureStyle for the corresponding string value textureStyle Returns the textureStyle for the corresponding string value Parse the vertAlign property of run properties (superscript or subscript) Parse the emphasis of run properties. xml reader character format Parse the animation text effect Xml reader Character format Parse the underline format of run properties. xml reader character format Parse the underline format of run properties. Parse thr fonts specified on the run properties. Check whether langauage has been defined or not. Change first letter of string to uppercase. Parse the highlight of the character format Parse the default paragraph properties Parses the size of the frame. The reader. The para format. Parses the frame anchor. The reader. The paragraph format. Parses the frame position. The reader. The paragraph format. Parse the Frame X and Y positions for the paragraph Position value True if X value, else false. Paragraph format instance Parses the tab justification. The alignment. Parses the tab leader. The leader. Checks the track change. The item. Create move range revision. Gets and updates the insert or delete revision. Parses the border. The reader. The borders. Parses the border. The reader. The borders. Parse the paragraph spacings Parse the line spacing of paragraph format Parse the paragraph indentation. The xml reader The paragraph format Parse the justification Parse the justification Parse the text alignment of the paragraph XML reader Paragraph format Parse the textbox tight wrap option of the paragraph. XML reader Paragraph format Parse the shading. Gets theme color Parse the section properties The XmlReader The section Parse the section formatting change. Parse the Header/Footer. reader To Parse Header/Footer headerfooter reader type isHeader Parses the header footer. The hf. The part. The type. if it is header, set to true. Parses the footnote and endnote property. The reader. Boolean value specifies whether the element is Footnote or Endnote. Parses the footnote endnote number start. The reader. if it is footnote, set to true. Parses the2003 footnote endnote number format. The reader. if it is footnote, set to true. Parses the footnote endnote number format. The reader. if it is footnote, set to true. Parses the footnote endnote number restart. The reader. if it is footnote, set to true. Parses the footnote and endnote property. The reader. Boolean value specifies whether the element is Footnote or Endnote. Parses the footnote endnote number start. The reader. if it is footnote, set to true. Parses the 2003 footnote endnote number format. The reader. if it is footnote, set to true. Parses the footnote endnote number format. The reader. if it is footnote, set to true. Parses the footnote endnote number restart. The reader. if it is footnote, set to true. Parse 2003 Page Number Style Parse 2003 Chapter Number separator Parse Chapter Number separator Parse Page Number Style Parses the type and number start of the page. The sec. The reader. Parse 2003 Text flow direction The reader The ent Parses the text direction. The reader. The ent. Parses the line numbering. The reader. The sec. Parse the vertical alignment of the page. The reader The section Parses the grid. The reader. The section. Parses the page borders. The reader. The section. Parses the columns. The reader. The sec. Parses the equal column. The sec. The reader. Parses the column. The reader. The entity. Parses the page margins. The reader. The section. Gets the margin value. The reader. Name of the attribute. Parses the size of the page. The reader. The section. Parses the size of the page. Parses the type of the section. The sec. The type. Parses the type of the section. The sec. The type. Parses the settings relations. The stream. Initialize word 2010 specific Compatiblity Settings Parse the Mailmerge setting. Parse CheckErrors from MailMerge settings. Parse Destination from MailMerge settings. Parse Mailmerge Datatype from MailMerge settings. Parse main document type from MailMerge settings. Parses the webSettings.xml file. Represents a to read websettings.xml file. Parses the Compatibilty Option. The reader. Parses the compat Node. The reader. Parses the compat Node of Word 2003 XML. The reader. Parses the CompatSetting Node. The reader. Parses the document variables. The reader. replaces hexadecimal values with equivalent string Text Parses the type of the protect. The reader. Parses the view type. The reader. Adds the item. The item. The para. Adds to paragraph. The item. The para. Adds the OLE object. The OLE object. The para. Gets the image id. The image id. if set to true [is header footer]. if set to true [is pic bullet]. Loads the image data. The picture. The image relation id. if set to true [is header footer]. if set to true [is picture bullet]. Gets the image bytes. Name of the image. Gets the image. The image id. if it is a header/footer, set to true. Gets the bytes from. The part. Gets part name from the file name. File name Part name Finds the part. The part container. Name of the part. Gets the HF relation. The name. Gets the diagram stream HF relation. Parses the float val. The value. Returns the boolean value from the current node Returns the boolean value from the current node Gets the boolean value from the current node. The reader. The name space. Returns xml element value. XmlReader to get value from. Xml element value. Parses the color. The color. Gets the color of the gradient. The color. Gets the hexadecimal color. The color. Gets the HTML color. The color. Gets the float value from element attribute. The reader. Name of the attr. The attr NS. Skip whitespaces and moves the reader to the next node. The xml reader Closes this instance. Implemented alternative method to improve the performance Gets the chart relations Gets/sets the value indicating whether the chart is in footnote Gets/sets the value indicating whether the chart is in endnote Gets/sets the value indicating whether the chart is in comments Gets/Sets the value indicating whether the document is Word 2003 ML. Gets/Sets the value indicating whether the document is Strict. Gets the image ids. The image ids. Gets the image data of the Svg Images. Gets the block content control collection. Gets the inline content control collection. Gets the cell content control collection. Gets the comment collection. The comment stack. Gets the Alternate Chunk if it preserve Table Row Gets the Post paraItems and preserve after the Paragraph/Table/Cell/Row end mark Gets the comments stack. The comments stack. Gets the current comment. The current comment. Gets the field stack. The field stack. Gets the current field. The current field. Gets the footnote by id. The footnote. Gets the endnote by id. The endnote. Gets the collection of override list style names. The over list style names. Gets the abstract list styles. The abstract list styles. Gets the collection of picture bullet. The picture bullet. Gets the collection of document relations. The document relations. Gets the collection of font table relations. The font table relations. Gets the settings relations. The settings relations. Represents the external hyperlink Gets the bookmark names collection. The name of the bookmark. Represents the HeaderFooter relations. The headers footers rel. Gets the collection of base style names. The base style names. Gets the collection of style name and id. The style name id. Gets the link style names. The link style names. Gets the AppVersion. The AppVersion. Gets the auto shape helper. The auto shape helper. Gets/sets the value indicates whether the SDTContent has section break Gets/sets the value indicates whether is row change format trueif it is row change format, elsefalse Gets/sets the value indicates whether is cell change format trueif it is cell change format, elsefalse Gets/sets the value indicates whether is cell change format trueif it is cell change format, elsefalse Gets/sets the value indicates whether it is hyperlink field trueif it is hyperlink field, elsefalse Gets/Sets the value indicates whether it is first invalid numID trueif it is first invalid numId in the document, else false Gets/Sets the value indicates whether the paragraph property lies between the paragraph tag. trueif paragraph property not lies b/w the paragraph tag, else false Gets or sets the value xml:space in the document element Bookmark Id Bookmark name This class has few utility methods Converts number into DateTime. Number to convert. Converted value. Copies one stream into another. Source stream to copy from. Destination stream to copy into. Creates copy of the MemoryStream. Source stream to copy. A copy of the original MemoryStream. Creates xml reader to read data from the stream. Data to read. Created xml reader. Creates xml reader to read data from the stream. Data to read. Created xml reader. Creates xml writer to read data from the stream. Data to read. Created xml writer. Creates xml writer to read data from the stream. Data to read. Created xml writer. Creates xml writer to read data from the stream. Data to read. Created xml writer. Represents the ShapeType Represents the document serializator specific for Word 2010 format Specifies boolean value indicating whether to Serialize "cnfStyle" element for paragraph or not. Initializes a new instance of the class. Saves the word document Name of the file/document Instance of WordDocument Serialize Word 2007 XML document Name of the file/document Instance of WordDocument Serialize Word 2007 XML document stream to save Instance of WordDocument Saves the word document in the stream Instance of WordDocument Saves the Word 2007 XML format document Serialize WordML ActiveX part The package Serialize WordML ActiveX part The package Serialize Word ML Custom xml part The customXMLContainer Serialize Word ML charts The Charts To Serialize chart elements The Chart string id Serialize relations of chart The relations The OccurenceOfChart Serialize Word ML OleObjects binary data The oleContainers Serialize Word ML Images binary data The imageCollection Serialize Word XML .rels Serialize Word document XML .rels Serialize Word document XML theme1.xml Serialize Word document XML settings.xml Serialize Word document XML _rels/numberings.xml.rels Serialize Word document XML _rels/settings.xml.rels Serialize Word document XML _rels/settings.xml.rels Serialize Word document XML settings.xml Serialize Word XML custom.xml Serialize Word document XML settings.xml Serialize Word document XML fontTable.xml Serialize Word document XML app.xml Serialize Word document XML app.xml Saves the word document in the stream Stream to save the document Instance of WordDocument Serializes the glossary document elements (glossary/document.xml) Add Part Container to Archive The partContainer Add Part Container from XMLPartContainers to Archive The item name Xml part containers Serialize the Font table Get the font file name from the file path. The file path. Returns the font file name extracted from the file path. Get the font signature Serializes the document elements (document.xml) Serializes the vba project relations. Serializes the vba project. Serializes the vba project signatures. Serializes the vba data. Serialize Headers and Footers Serializes the Header/Footer Type of the HeaderFooter Instance of WordDocument Serialize the header part The header The header relationship ID The header path The header's relation path Serailize the footer and its relations The Footer The Footer relationship ID Path of the Header Footer part Path of the HeaderFooter relations Serializes the HeaderFooter relations The headerfooter id. Path of the HeaderFooter relations Serializes the Header/Footer common relations. Stream to write the relations. The XML items relations. Checks whether the TextBodyItem (paragraph) contains only a page field The TextBodyItem return true, if the textBodyItem has a single page field. Adds the charts to zip. The package. Adds the controls to zip. The package. Adds the part container to zip. The package. Serialize the related for part container items. The package. The chart container. Adds the parts to zip. The package. The relations. Parses the relations. The rel reader. The relations collection. Adds the xml items to zip. The package. Adds the container to zip. The cont. The data path. Serializes the Endnote relations Serializes the Footnote relations Serializes the Comment relations Serializes the document relations. Serializes the numbering relations. Serializes the Alternate chunk relations The memory stream Collection of alternate chunk relation Serializes the Hyperlink relations The memory stream Collection of Hyperlink relation Serialize Svg Image relations. Serialize Svg Image relations for header/footer. Serializes the image relations The memory stream Collection of images and its relationship id Serialize the image collection in the XML paragraph item stream. The memory stream Collection of images and its relationship id XML Paragraph item Serializes the HeaderFooters relations to the document relations stream Document relation stream (Word/.rels/document.xml.rels) Serializes the headers footers relations. Type of the HeaderFooter. The stream. Serializes the IncludePicture field relations The memory Stream Collection of URL that represents the picture mapped through the IncludePicture Field Serializes the XML Item relations Adds the OleObject (*.Bin) into the package Collection of OLE Containers Adds the OLE objects to zip. The package. Serialize the document background The document background Checks whether the image is need to skip or not to add in relations If the image is default image returns true, else return false. Serialize the background gradient The backgroundGradient Serialize the gradient shadings The background gradients Serialize the gradient color The background gradient Ensure the presence of metafiles and image presence in the document Serializes the document body Serializes the Section. The WSection Serializes the bodyItems Collection of Body items True, if the body items present in the last section of the document. Serialize the TextBody item The textBody item (paragraph or table) True, if the body items present in the last section of the document. Serialize SDT content inline Update the Alternate chunk relation for Comment/HeaderFooter/EndNote/FootNode/Document Seralize Alternate content Serialize bookmarks before the alternate chunk. The alternate chunk. Serialize bookmarks after the alternate chunk. Seralize structure document tag block Serialize structure document tag properties Serialize Doc Part obj and Doc part list Child elements Serialize SDT data binding Serialize SDT lock settings Serialize SDT type Serialize SDT Check box check box Serialize SDTDropDownList Serialize SDT date Get Calender type Serialize SDT content Serialize the table The table Serialize the table rows The table row collection Serialize the table row The table row serialize the table cells The table cell collection Serialize the table cell The table cell Merge the characterFormats The paragraph's break character format The cell character format Serialize the cell formatting The cell format Serialize the cell vertical alignment Serialize the table cell direction Serialize the cell shading The table cell The parent table format The parent row format Serialize cell merge The cell format Serialize the grid span element of cell. Serialize the cell width Serialize the row format The table row Serialize the conditional formatting style element for table row The row Serialize the conditional formatting style element for table cell The cell Serialize the conditional formatting style element for paragraph in table The paragraph Checks whether the paragraph has cnf style or not. style row Index table Serialize the row formattings. Table parameter is passed for serializing table format and null for serializing row format. the row format The table Serializes the table title. Word 2010 specific property. The table. Serializes the table description. Word 2010 specific property. The table. Serialize the table cell margins (paddings) The row formattings Serialize the paddings Serialize the table layout element The row format Serialize the table shading The row format Serialize the table borders To ensure none border Serialize the table indentation. Serialize the cell spacing. The row format Serialize the table width Serialize the table alignment Serialize the table absolute positioning formattings. Serialize the table's horizontal positionings. Serialize the table's vertical position. The position. Serialize the table's vertical relation. The relation. Serialize the table's horizontal relation. The relation. Serialize the table style element Serialize the table look element Serialize the table grid The table Serialize the table grid columns. The grid values. Serialize grid column. The column width Serialize the paragraph The paragraph Serialize watermark if paragraph is the first item of Header or Footer document Serialize the paragraph items The paragraph Serilize the bookmark end is BookMarkCollection which enables IsToAddInNextPara Decides whether current item is OLE Object field item. Current item. Serialize the paragraph item The paragraph item Serializes the Math element. Serializes the character format of MathML item. Serializes control properties of MathML elements Serializes Character format. Serialize chart Serialize chart graphic data Serialize chart relations into document relations Document relation stream (Word/.rels/document.xml.rels) To Serialize the default chart styles To Serialize the default chart colors Serialize Chart elements Serialize the default styles for the chart input XML writer input chart object input application object Serialize the default Chart Color Styles input of XmlWriter input of Application Object Initializes default colors for the chart Initializes style elements for the chart Get Next Chart elements relation Id Serialize relations of chart Serialize worksheet row Serialize worksheet cells Serialize worksheet cell Serialize worksheet shared settings Serialize group shape The group shape Serialize fall back content of the group shape The group shape Serialize fallback nested group shape The Child group shape Serialize 2007 shadow effect of child shape Serialize horizontal rule of the child shape The child shape The collection of properties Serialize horizontal rule of the child shape The child shape Serialize shape type of the child shape Serialize 2007 shape fall back content text box format The shape 2007 format unparsed streams Serialize textbox format of the child shape The shape 2007 format unparsed streams Serialize textbox format of the child group shape The shape 2007 format unparsed streams Serialize textbox format of the shape The shape 2007 format unparsed streams Serializes the flip for shape. Shape. Textbox style. Serialize pattern fill of the child shape Serialize Docx stream of the child shape Serialize fill effects of the child group Serialize 2007 solid fill Serialize 2007 grid fill of child shape To get focus position of the child shape The child shape Serialize 2007 blip fill of child shape The child shape Gets the specified resource file as stream. The resource file name Stream of the specified resource file Gets the emu from point. The point value. Serializze the absolutely positioned picture. Get Shape Horizontal orgin Get Shape Horizontal orgin of Fall back Serialize the inline picture. Serialize the child group shape elements. Serialize the child shape elements. Serialize chart graphic data Serialize Child Group picture Serialize nested child group shape The child group shape Serialize the custom Geometry of a shape Serialize the custom Geometry Path elements Serialize avlst of Custom Geometry Serialize gdlst of Custom Geometry Serialize pathLst points Serailize Child shape Serialize Effect List. Serialize ThreeD Scene Effects. Serialize Backdrop Settings Serialize Camera Settings Serialize Light Rid Effect Serialize ThreeD Shape Effects. Serialize the preset material type. Serialize Reflection Effect. Serialize Shadow Effect. To Serialize blip fill To Serialize blip extensions To Serialize blip fill Fill Format of the shape Entity Serialize child shape textbox content The textbody The text frame Serialize textbox style attributes for shape or child shape. Serialize body properties of the child shape The child shape Serialize style ref of the child shape The child shape Serialize style ref of the group shape Serialize the watermark. The watermark. Serialize the text watremark. The text watermark. Serialize the picture watermark The picture watermark. Prepares the text watermark "style" attribute string. The text watermark. Serialize field code text bool to indicate deleted text Get the image from the url Th url Update the include picture field url Inser the field mark begin Decides whether current field is picture hyper link or not. Current field True;if field is hyper link. Serialize the hyperlink attributes Writes the Local reference attribute Serialize the footnote and endnote. Serialize the endnotes/footnotes Is Endnotes Serialize start foot/endnotes elements. Serialize footnote/endnote. The footnote. if it is end note, set to true. The id. Serialize the drop down field. Serialize the check box field. Serialize the text form field. The textform field. Serialize the form field data Serialize the textboxes The textbox collection Serialize the textbox The textbox To Serialize the shape/textbox's text direction Serialize the fill effects Serialize the gradient effects. Serialize the fill effects. Serialize the pattern fill. Set Relationship ID for Stream data Set Relationship ID Attribute Decides whether currently writing shape field result or not. Serialize the textbox format. Get the string which is equivalent to particular wrap type Text box format return wrap type as string Get the vertical Origin of the height in TextBox. Get the horizontal Origin of the width in TextBox. Get the textWrapping Type Get the textWrapping style Serialize the stroke value. Get the line dashing style. Get the line style Serialize the inset attribute. Serialize inset attribute of the text frame The text frame Serialize the Xml paragraph item. Update XML Relations of the child shape The shape The shape stream Change item relations of the child shape Change picture relations of the child shape Change the relation ids in the XmlParagraph Item. Changes the picture relations. The item. The old ID. The new ID. Get the Xml paragraph item owner. The item. Updates the relations for header/footer. The new id. The hf. The item rel. Changes the ID attribute in XmlNode. The node. The array. XML Paragraph item Changes Relationship ID's XML Reader XML Writer Relation IDs XML Paragraph item Change Num Id Get List Id Changes Relationship ID Changes Relationship ID for Blip Changes Relationship ID for Relation Changes Doc Property ID attribute Changes Shape ID XML Reader XML Writer XML Paragraph item Updates the ZOrder position Current xml reader XML Paragraph item XML Writer Changes the ID attribute in diagram. The reader. The array. Adds the type of the XML item cont. Type of the rel. The rel target. Updates the chart inner relation. Name of the container. Serialize the ole object. Serialize the ole data. Serialize the ole picture. Serialize the picture crop positions Serialize the link options. Gets the name of the file. Type of the object. Gets the type of the OLE relation. Type of the object. Gets the ole picture style. Update the ole content type Updates the content type of OLE object. The type. Serialize the symbol. Serialize the field mark. Serialize the picture. Check whether the picture is picturebullet The picture. Serialize the drawing element. The Picture. Serialize the inline picture. Calculates the bounding box for picture based on rotation angle. Represents bounding box for picture. Represents rotation anlge of picture. Get the roation angle for picture. Represents the angle of rotation Serializze the absolutely positioned picture. Serialize the picture properties Serialize the graphics element for pictures. Gets the offset value of fill rectangle Serializes the inline shape line. The shape. Sets the language value Gets the line cap style. The line cap. Gets the line join style. The linejoin. Gets the line end. The line end. Gets the end width of the line. End width of the line. Gets the end length of the line. End length of the line. Serializes the shape line. The shape. Serializes the gradient fill. The gradient fill. Serializes the gradient stop. The gradient stop. Gets the flip orientation. The flip. Gets the type of the gradient shade. The shade. Serialize the picture hyperlink. Update the shape id. Update the shape id. Adds the image relation. The image collection. The image record. Update the HeaderFooter image relations. Updates the header/footer SVG image relations Relationship Id Header/footer SVG image stream Update the HeaderFooter image relations. Update the HeaderFooter image relations. Get the header footer id. Get the picture owner. Serialize the shape. Gets the string of the gain value (contrast) for a given picture. The picture. The string of the gain value, or null if not found. Gets the string of the black level value (brightness) for a given picture. The picture. The string of the black level value, or null if not found. Set the crop value Serializes the color of the shape border. The shape. Write the start element of stroke. Enable true once start element was written. Serializes the stroke props. The shape. Gets the stroke line style. The line style. Gets the stroke dash style. The line dashing. Serialize the text wrapping style. Serializes the wrap polygon. The entity. The wrap polygon. Adjusts the polygon points. The wrap polygon. Get the text wrapping style. Gets the vertical orgin as string. The vertical origin. Get the text wrapping type Get the picture's wrapping type. Serialize the shape borders. Serialize the shape border Get the shape border style. Serialize the shape picture style. Serializes the wrap polygons. The picture. Serialize the bookmark end. Serialize the bookmark start. Serialize the editable range end. Represents a editable range end to serialize. Serialize the editable range start. Represents a editable range end. Serialize the break element. Serialize the comment reference. Serialize the commented items. The comment. The comment id. Serialize the comment range start. Serialize the comment range end. Serialize the comments. Serialize the comment. The comment. The id. Serialize the comment mark. The comm mark. Check for the string content in Comment ID. The item. Serialize the Comments Extended Serialize the comment Extended Serialize the text range. Determine whether current entity is field code item or not. Serialize the text. text bool to indicate deleted text bool to indicate instr text Serialize the text. text bool to indicate deleted text Serialize FieldCode text Text bool to indicate deleted text Serialize the table of contents. Get the field type as string. Serialize the section properties. Serialize the heeader/footer reference. The HeaderFooters Serialize the docGrid element Serialize section protection. Serialize the text direction. Serialize the column properties of section. Serialize the page setup properties. The page setup. Serializes the page borders. The borders. Serialize the table borders Checks for none border Serialize the borders. Serialize the border. serialize the page size Serialize the page number type. Serialize the line number type. Serialize the section type. Serialize the section break code. Serialize the endnote properties. Serialize the footnote properties. Determines whether to serialize the section foot note properties or not. Determines whether to serialize the section end note properties or not. Determines whether to serialize the document foot note properties or not. Determines whether to serialize the document end note properties or not. Serialize the endnote/footnote element properties Serializes the endnote footnote number format. The section. if set to true [is footnote]. Serializes the endnote footnote number format. The section. if set to true [is footnote]. Adds the header footer details to the collection. Serialize the document themes. (theme.xml) Serialize Fill Styles (Both Fill and Background Fill effects of Themes) Serialize Theme Pattern Serialize Theme Pattern Serialize Theme Pattern Serialize Theme Pattern Serializes the gradient stop. The gradient stop. Serialize Effect Styles of themes Serializes Line Style List The gradient stop. Serializes the default themes. Serializes the default color scheme. if set to true [is word2013]. Serializes the RGB color color value Alpha color value Serializes the default font scheme. if set to true [is word2013]. Serializes the default format scheme. if set to true [is word2013]. Serializes the default fill style list. if set to true [is word2013]. Serializes the default line style list. if set to true [is word2013]. Serializes the default line style. The width. The line cap. Type of the line. The alignment. if set to true [is miter]. Serializes the default effect style list. if set to true [is word2013]. Serializes the effect style. The blur radius. The distance. The alpha. if set to true [is align]. Serializes the default background fill style list. if set to true [is word2013]. Serializes the default background fill style list for Word version 2007 and 2010. Serializes the color of the scheme. The value. Serializes the default gradient relative position attributes Luminance modulation value Saturation modulation value Tint value Shading value Serializes the default theme font. Type of the font. if set to true [is word2013]. Serialize the document settings. (settings.xml) Serialize the Mailmerge Settings. Serializes the MainDocumentType for mailmerge settings. Serializes the DataType for mailmerge settings. Serializes the DataSource for mailmerge settings. Serializes the HeaderSource for mailmerge settings. Serializes the Destination type for mailmerge settings. Serializes the CheckErrors type for mailmerge settings. Serializes the setting relations Parses the settings relations. Serializes the Docx unhandled properties Serializes the Docx unhandled properties Serializes the compatibility properties to maintain backward compatibility similar to input document, when file is opened in lower version applications. Serializes the Docx Common compatibility Layout options for all version. Serializes the compatibility settings Serializes the document protection type. Serialize the document variables. Serializes the Footnote/Endnote settings Serializes the Footnote position Serialize the Endnote position Serializes the Footnote position Serializes the Footnote/Endnote ID Serialize the list styles and numberings (numberings.xml) Serializes the Override styles Collection of ListOverride style Serializes the Override styles List Override style Serializes the level overrides The level Index Override level Serializes the list styles Collection of list styles Serializes the abstract list styles Collecgtion of list styles Serialize the list level The List level The level index Serialize the list level legacy properties. The list level. Serialize the level follow character The list level To Remove xml ilegal character Ascii 0-29 from text. The text. Serializes the level text The list level The level index Serializes the picture bullets. Collection of list styles Serializes the picture bullet. The list level Serialize the styles (styles.xml) Serializes the document styles Gets the style id from StyleNameIds collection. Serialize the document style The Style Instance of the word document Serialize the table style The Style Serialize the table conditional formatting style The Code The Style Gets conditional formatting style type The Code Serialize the table style cell properties The Props Serialize the table style row properties The Props Serialize the table style table properties The Props Serialize the shading element in cell properties. The table cell Serialize the shading element in table properties. The props Serializes the latent styles Serializes the default styles (document default paragraph and character format) Serializes the TableGrid style. Serializes "NoList" style Serializes the "TableNormal" style Serializes the default paragraph style Serializes the Character format Serializes the ligatures. The character format. Serializes the number form. The character format. Serializes the number spacing. The character format. Serializes the stylistic set. The character format. Serializes the contextual alternates. The character format. Serialize character shading Serialize character shading of formatting changes(old formatting) Serializes the paragraph format Serializes the mirror indents. The paragraph format. Serializes the suppress automatic hyphens. The paragraph format. Gets the next track change id. Serialize directional override Serializes the track changes revision start tag. The item. Checks need to write start or end of revision. The item. The item revision True for writing revision start tag Serializes the track changes revision end tag. The item. Writes the move range end tag. Serilaize the move range end when it exists between paragraph,table,table row, cell. Serializes the revisions in formatting. Serializes the track changes properties. Serializes the track changes properties. Serializes the paragraph text alignment The paragraph format Serializes the paragraph textbox tight wrap. The paragraph format Serializes the paragraph indentation The paragraph format Serializes the paragraph spacings Serializes the tabs The paragraph format Serializes the tab The tab Serializes the paragraph shadings The paragraph format Serializes the paragraph borders The Paragraph format Seraializes the pargraph list format The paragraph Serializes the style list format The paragraph Serialize the list format The list format Serializes the paragraph frame. Writes the frame's wrapping mode. The relation. Serializes the Border The Border The tag name Serializes the language formats Serializes the language formats for formatting changes Serializes the bool character format property Tag name if set to true [value]. Get the base format of paragraph format when base format have frame property keys. Serializes the content types [Content-Types].xml Serialize the glossary docuemnt xml parts in content type Content type stream Current xml part to serialize Add the Alternate chunks if it exists more than one items in same name Writes the type of the diagrams. Gets the type of the content. Name of the part. Serializes the HeaderFooter content types Serializes the HeaderFooter content types. Type of the HeaderFooter. The stream. Serialize chart content types Serialize the Xml type contents. Serializes the default content type Content type stream The extenstion The content type Serializes the Override content type. The content type stream The name of the part Content type Serialize the general relations Serializes the relationship The memory stream The relationship id The relationship type The part of the target item Serializes the relationship The relationship id The relationship type The part of the target item Serializes the core properties Serializes the custom properties. Determines whether [is valid type] [the specified type]. The type. Updates the text, that cannot be represented in Xml as defined by XML 1.0 specification. Checks for the valid xml character. Serializes the app properties (app.xml) Checks if text have invalid surrogate charecters String Return the text which doesn't have invalid surrogate charecter. Checks whether the style is Get the tab leader type as string The tab leader returns the tab leader type as string Gets the tab justication type as string The tab justification returns the tab justication type as string Get the list ID The list format returns the list id Add the list override to ListStyleReferences collection The list id The LFO Style name returns the list id from the list style reference collection Serializes the numbering properties to the paragraph Check whether the properties hash has font property Check whether the character format has font property Create xml writer The stream returns the xml writer Create xml reader The stream returns xml reader Reset the relationship id counter Get the next relationship ID returns the next relationship ID Get the next ID Get the TextureStyle as string Get the border style as string Get the underline style as string Gets the text effect as string Text effect type Text effect type as string Get the emphasis type as string The emphasis type The type as string Get the highlight color as string Convert the float value to string. float value Get the RGB color code The color Get the default font size Get the list pattern type as string. Get the list symbol Get the page number type as string The page number style Get the next bookmark ID Get the docPr id (used for pictues) Get the next shape ID Update the text Get the base entity Gets chart base entity Determines whether the page break need to be skipped based on given entity owner. Entity true, if present inside TextBox/FootNote/EndNote/Header/Footer Update item relations Determines whether document style collection has Default Table style Closes this instance. Implemented alternative method to improve the performance Gets a value indicating whether save as macro enabled format. true if save as macro enabled; otherwise, false. Determines whether currenly serializing Ole object field elements or not. Gets/Sets the value indicating whether the document is Word 2003 ML. Denotes whether currently serailizing the choice content for shaoe. Gets a value indicating whether save as Word 2007 format. true if save as Word 2007 format; otherwise, false. Gets a value indicating whether save as Word 2010 format. true if save as Word 2010 format; otherwise, false. Gets a value indicating whether save as Word 2013 format. true if save as Word 2013 format; otherwise, false. Gets a value indicating whether save as latest Word format. true if save as latest Word format; otherwise, false. Gets the settings relations. The settings relations. Gets the bookmark end if it preserve after the Paragraph/Table/Cell/Row end mark Gets the editable range end if it preserve after the Paragraph/Table/Cell/Row end mark Gets the HeaderFooter Collection Gets the Control path names Gets the chart path names Gets the HeaderFooter relations Collection of Include Picture targets with ids inside headers or footers. Gets the Urls of the include picture fields Contains key and include picture fields link present in HeaderFooters Collection of relationship ids and its corresponding external link Gets the chart relation Id's Collection of Chart in Header Footers collection of chart in Footnote Collection of chart in Endnote Collection of chart in Comments Collection of chart in Document Collection for chart elements relations Collection of images path in Document Gets the Hyperlink details present in the comments Gets the Alternate chunks details present in the comments Collection of hyperlink targets with ids. Collection of altChunk targets with ids. Collection of altChunk targets with ids. Collection of hyperlink targets with ids inside footnotes. Gets the collection of Alternate chunks with ids inside footnotes. Collection of hyperlink targets with ids inside endnotes. Gets the collection of Alternate chunks with ids inside endnotes. Collection of hyperlink targets with ids inside headers or footers. Gets the collection of alternateChunks with ids inside headers or footers. Gets the comment collections Gets the comment ids Gets the ole containers Get the Svg Image datas. Gets the image data of the Svg Images. Gets the ole containers present in the HeaderFooters Gets the ole object ids Gets the collection of OleObject content types Gets the collection of Xml items relations Gets the list style references. The list style references. Gets the collection of picture bullets Represents the presence of font table Represents the presence of footnote Represents the presence of endnote Represents the presents the list styles Gets the collection of images present in the document body Gets the collection of images present in the footnote images Gets the colection of images in the endnote images Gets the collection of images in the comments Gets the footnote collection Gets the endnote collection Gets the collections of images present in the HeaderFooters Gets the collections of Svg images present in the HeaderFooters Gets the field stack. The field stack. Gets the field mark stack. Gets the current field. The current field. Gets the auto shape helper. The auto shape helper. Holds the moving revision details. Gets the revision if it preserve after the Paragraph/Table/Cell/Row end mark Gets the comment range end if it preserve after the Paragraph/Table/Cell/Row end mark Converts DocIO DOM to markdown DOM Converts word document DOM to Markdown DOM. Iterate body and convert into Markdown DOM Check and create new code block or paragraph. Defines method to iterate through document Paragraph and create an instance of MdParagraph for every Paragraph in the document. Iterates Paragraph Items for CodeBlock Iterates through the TableRow. Iterate items in cell and convert to Markdown DOM Iterates through the nested table inside TableCell. Iterates through the FieldHyperLink. Add empty cells for spanned cells Adds a space between outer cell content and the nested cell contents. MdTableRow cell Iterates through the TableCell. Sets the table row alignment. Checks for text formatting of the previous MdTextrange and compares to the current text Represents the current textrange in the paragraph Represents the previous textrange in the paragraph Execute the event for image Applies list format for the paragraph Word document paragraph The list format for that paragraph in Markdown Applies Text format to text. Convert the picture in the word document to Markdown image Convert Word to Markdown and write as md file. Gets or sets the file path where the output will be saved. LaTeXParser in DocIO supports compression LaTeXParser. Set the text range as math run element item. Math run element Text for text range Append the text in math run element text range. Math run element Text to append in text range Get the text from a math run element text range. The math run element to retrieve text from. The text content of the math run element, or null if the provided element is not a text range. Specifies the field group type Specifies field instruction group Specifies field result group Specifies field group other than the field instruction and field result group Summary description for Package. Summary description for PartContainer. Adds the part. The item. Adds the part. The XML part. Adds the part container. The container. Gets the container. The name parts. Start index of the name. Loads the relations. The item. Get xml part name The full path. Clones this instance. Copies the XML part container. The new container. The SRC package. The parts. The index. Copies the XML part items. The new container. The SRC package. Name of the part. Gets the XML part relation key. Name of the part. Updates the inner relation target. The relation. The inner relation target. Copies the inner related XML parts. The new container. The SRC package. The relation. Name of the cur part. Gets the part container by name. Name of the container. Gets the XML part container path. The container. The target. Gets the parent part path. The SRC container. Closes this instance. Gets the XML parts. The XML parts. Gets the XML part containers. The XML part containers. Gets the XML relations collection. The XML relations. Gets or sets the name. The name. Gets the part container by name. Name of the container. Loads the specified zip archive. The zip archive. Loads the part. The item. Closes this instance. Summary description for Part. Initializes a new instance of the class. The data stream. Clones this instance. Sets the data stream. The stream. Closes this instance. Get the attribute stream using attribute name The XML attribute of stream Gets data stream. Gets/sets part name. Summary description for Relation. Initializes a new instance of the class. The zip item. Clones this instance. Closes this instance. Represents the background effects. Class fields. Initializes a new instance of the class. The doc. The type. Internal constructor. Initializes a new instance of the class. The doc. The container. Clones background object. Exact copy of background object Updates the image record. The doc. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Registers child objects in XDSL holder. Sets the Background fill color Sets the Background pattern fill Gets the background data. Gets the image. Gets the image. The image bytes. Loads the image. The image. Compares the current background with another background of another document. Gets the properties text for Word comparison Gets or sets the type of background effect. The member that specifies the type of background. Gets or sets the background picture. The that represents the background for the document. The following code example demonstrates how to set the background for the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class WordDocument document = new WordDocument(); //Set the background type of the document document.Background.Type = BackgroundType.Picture; //Set the background image of the document document.Background.Picture = Image.FromFile("Image.png"); //Add one section with one paragraph to the document document.EnsureMinimal(); //Add the text range to the last paragraph of the section document.LastParagraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class Dim document As New WordDocument() 'Set the background type of the document document.Background.Type = BackgroundType.Picture 'Set the background image of the document document.Background.Picture = Image.FromFile("Image.png") 'Add one section with one paragraph to the document document.EnsureMinimal() 'Add the text range to the last paragraph of the section document.LastParagraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Gets the image. The image. Gets or sets the background color of the document. The specifies the background color for this document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into WordDocument instance WordDocument document = new WordDocument("Sample.docx"); //Set the background type of the document document.Background.Type = BackgroundType.Color; //Set the background color of the document document.Background.Color = Color.AliceBlue; //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx") 'Set the background type of the document document.Background.Type = BackgroundType.Color 'Set the background color of the document document.Background.Color = Color.AliceBlue 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Gets or sets the background gradient. The object that specifies the gradient effect. Gets the image record. The image record. Get/set background image as byte array. Get/set background fill type. Get background color for picture background. Gets or sets a pattern fill string. true if pattern fill string; otherwise, false. Gets or sets the pattern image. The pattern image. Represents the background gradient effect. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class WordDocument document = new WordDocument(); //Set the background type of the document document.Background.Type = BackgroundType.Gradient; //Set the first color of the background gradient of the document document.Background.Gradient.Color1 = Color.AliceBlue; //Set the second color of the background gradient of the document document.Background.Gradient.Color2 = Color.Purple; //Set the first shading style of the background gradient of the document document.Background.Gradient.ShadingStyle = GradientShadingStyle.DiagonalDown; //Set the first shading variant of the background gradient of the document document.Background.Gradient.ShadingVariant = GradientShadingVariant.ShadingMiddle; //Add one section with one paragraph to the document document.EnsureMinimal(); //Add the text range to the last paragraph of the section document.LastParagraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class Dim document As New WordDocument() 'Set the background type of the document document.Background.Type = BackgroundType.Gradient 'Set the first color of the background gradient of the document document.Background.Gradient.Color1 = Color.AliceBlue 'Set the second color of the background gradient of the document document.Background.Gradient.Color2 = Color.Purple 'Set the first shading style of the background gradient of the document document.Background.Gradient.ShadingStyle = GradientShadingStyle.DiagonalDown 'Set the first shading variant of the background gradient of the document document.Background.Gradient.ShadingVariant = GradientShadingVariant.ShadingMiddle 'Add one section with one paragraph to the document document.EnsureMinimal() 'Add the text range to the last paragraph of the section document.LastParagraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Class constants. Class fields. Initializes a new instance of the class. Initializes a new instance of the class. The object. The object. Creates the duplicate copy of the background gradient. The which is a copy of current gradient. Clones the relations. The doc. Gets the gradient data. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Closes this instance. Gets the properties text for Word comparison Gets or sets the first color for gradient effect. The first for the gradient effect. Gets or sets the second color for gradient effect. The second for the gradient effect. Gets or sets the shading style for gradient effect. The member that represents the shading style for gradient effect. Gets or sets the shading variants for gradient effect. The member that represents the shading variants for gradient effect. Represents the bookmark in the Word document which enclosed with and . Initializes a new instance of the class with the specified . The that represents the start of the bookmark. Initializes a new instance of the class with the specified and . The that represents the start of the bookmark. The that represents the end of the bookmark. Sets the bookmark start. The bookmark start. Sets the bookmark end. The end. Checks whether bookmark is in valid position, when bookmark end is in content control Gets the bookmark name. Read-only. The string that represents the bookmark name. Gets the bookmark start. Read-only. The that represents the start of the bookmark. Gets the bookmark end. Read-only. The that represents the end of the bookmark. Represents the editable range in the Word document which enclosed with and . Initializes a new instance of the class with the specified . The that represents the start of the editable range. Initializes a new instance of the class with the specified and . The that represents the start of the editable range. The that represents the end of the editable range. Sets the editable range start. The editable range start. Sets the editable range end. The editable range end. Gets the editable range id. Read-only. The string that represents the editable range id. Gets the editable range start. Read-only. The that represents the start of the editable range. Gets the editable range end. Read-only. The that represents the end of the editable range. Represents the built-in document properties of Word document. The following list contains the names of all the available built-in document properties: Category Number of Bytes Number of Lines Number of Paragraphs Number of Slides Number of Notes Number of Hidden Slides Manager Company The following code example demonstrates how to modify the built-in document properties of Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Set the value for Company property of the document document.BuiltinDocumentProperties.Company = "Northwind Traders"; //Set the value for Manager property of the document document.BuiltinDocumentProperties.Manager = "Paul Anderson"; //Set the value for Author property of the document document.BuiltinDocumentProperties.Author = "Peter"; //Set the value for Comments property of the document document.BuiltinDocumentProperties.Comments = "This document provide the sales information of the year 2015"; //Set the value for LastAuthor property of the document document.BuiltinDocumentProperties.LastAuthor = "Johnson"; //Set the value for Title property of the document document.BuiltinDocumentProperties.Title = "Sales Information"; //Set the value for Category property of the document document.BuiltinDocumentProperties.Category = "Sales"; document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Set the value for Company property of the document document.BuiltinDocumentProperties.Company = "Northwind Traders" 'Set the value for Manager property of the document document.BuiltinDocumentProperties.Manager = "Paul Anderson" 'Set the value for Author property of the document document.BuiltinDocumentProperties.Author = "Peter" 'Set the value for Comments property of the document document.BuiltinDocumentProperties.Comments = "This document provide the sales information of the year 2015" 'Set the value for LastAuthor property of the document document.BuiltinDocumentProperties.LastAuthor = "Johnson" 'Set the value for Title property of the document document.BuiltinDocumentProperties.Title = "Sales Information" 'Set the value for Category property of the document document.BuiltinDocumentProperties.Category = "Sales" document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Represents the summary information of the document. The following list contains the names of all the available summary document properties: Title Subject Author Keywords Comments Template Last Author Revision Number Application Name Last Print Date Creation Date Last Save Time Total Editing Time Number of Pages Number of Words Number of Characters Security Category Sorted list of properties isSummary = true - summary property isSummary = false - document summary property Adds the specified name. The name. The value. Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Sets the property value. The prop key. The value. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Closes this instance. Gets or sets author name of the document. The string that specifies the author property. Gets or sets application name of the document. The string that specifies the application name property. Gets or sets the title of the document. The string that specifies the title property. Gets or sets the subject of the document. The string that specifies the subject property. Gets or sets the document keywords. The string that specifies the keywords in the document. Gets or sets the comments that provide additional information about the document. The string that specifies the additional information about the document. Gets or sets the template name of the document. The string that specifies the template document name. Gets or sets the last author name of the document. The string that specifies the last author name. Gets or sets the document revision number. /// The string that specifies the revision number. Gets or sets the document total editing time. The TimeSpan that specifies the total document editing time. Gets or sets the last print date of the document. The DateTime that specifies the time when the document is last printed. Gets or sets the creation date of the document. The DateTime that specifies the time when the document is created. Gets or sets the last save date of the document. The DateTime that specifies the time when the document is last saved. Gets total number of pages in the document The integer that represents the total number of pages. Gets total number of words in the document The integer that represents the total number of words. Gets the total number of characters in the document /// The integer that represents the total number of characters. Gets or sets thumbnail picture for document preview Gets or sets document security level Gets or Sets the ContentStatus of the document Gets summary count of document properties Initialize Initialize Initialize isSummary = true - summary property isSummary = false - document summary property Creates a duplicate copy of the current built-in properties. The new that is created. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Closes this instance. Gets or sets the category of the document. The string that represents the document category. Gets the number of bytes in the document. The integer that represents the number of bytes. Gets the number of lines in the document. The integer that represents the lines count in the document. Gets the number of paragraphs in the document. The integer that represents the paragraphs count in the document. Gets slide count in the document. The integer that specifies the slide count in the document. Gets Note count in the document. The integer that specifies the note count in the document. Gets hidden count in the document. The integer that specifies the hidden count in the document. Gets or sets Company property in the document. The string that specifies the company property. Gets or sets Manager property in the document. The string that specifies the manager property. Gets document hash Represents the page column in the Word document. The following code example demonstrates how to display contents in multiple columns. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into Word document WSection section = document.AddSection() as WSection; //Add the column into the section Column column1 = new Column(document); column1.Width = 150; column1.Space = 20; section.Columns.Add(column1); //Add the column into the section Column column2 = new Column(document); column2.Width = 150; column2.Space = 20; section.Columns.Add(column2); //Add the column into the section Column column3 = new Column(document); column3.Width = 150; column3.Space = 20; section.Columns.Add(column3); //Add a paragraph to created section IWParagraph paragraph = section.AddParagraph(); //Add a paragraph to created section paragraph = section.AddParagraph(); string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Append the text to the created paragraph paragraph.AppendText(paraText); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Add a paragraph to created section paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText(paraText); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Add a paragraph to created section paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText(paraText); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into Word document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add the column into the section Dim column1 As New Column(document) column1.Width = 150 column1.Space = 20 section.Columns.Add(column1) 'Add the column into the section Dim column2 As New Column(document) column2.Width = 150 column2.Space = 20 section.Columns.Add(column2) 'Add the column into the section Dim column3 As New Column(document) column3.Width = 150 column3.Space = 20 section.Columns.Add(column3) 'Add a paragraph to created section Dim paragraph As IWParagraph = section.AddParagraph() 'Add a paragraph to created section paragraph = section.AddParagraph() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Add a paragraph to created section paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Add a paragraph to created section paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Represents the base formatting. Member to hold the collection of properties values and its keys. Member to hold the collection of old properties values and its keys. Represents the revision collection. Check whether the key is present in any of the base formats The key for the property True, if the base format contains that property in its properties hash; else, false Initializes a new instance of the class. Initializes a new instance of the class. The object. To represent textbox instance Initializes a new instance of the class. The object. Initializes a new instance of the class. The object. The that is the owner of the current item. Initializes a new instance of the class. The that represents the parent format. The integer that represents the parent key. Initializes a new instance of the class. The that represents the parent format. The integer that represents the parent key. The integer that represents the parent offset. Imports the container. The format. Imports the members. The object. Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Returns a value indicating whether the key exists and its corresponding boolean value. The integer that specifies the key. True if the specified key is present with its boolean value, otherwise false. Clears the formatting. Returns the default values. The integer that specifies the key. An object that specifies the default value. Gets the composite values. The integer that specifies the key. The object. Occurs on format change. The object. The integer that represents the property key. Gets the Single Property Modifier Record option value for the specified property. The integer that represents the property key. The integer that represents the SPRM value. Closes this instance. Ensures the composites. Ensures the composites. The keys of the properties. Returns the key of the base format. The integer which specifies the key. The key of the parent format. Returns the whole key. The integer that specifies the key. The entire key. Returns the default composite value. The integer that specifies the key. The object. The element. Removes the format changes. Accepts the changes. Gets the style change option. Gets the change option. Removes the positioning. Compare the properties hash count of two formats The format to be compared True if the count is equal, else false Compare the properties hash collection between two formats. The format to be compared Checks whether the key is need to be considered or not. Compares the particular property value with the formatbase property value The property key. The format. Compares the proprerty value of one format with another format. The value. The current value. Gets the ARGB color code The color Copies property hash. The format. Gets the composite parent key. The key. The parent level. Updates the properties. The format. Copies the format. The format. Checks the char style. The key. Gets the base format value. The key. Parses the DTTM. The value. Gets the DTTM int value. The dt. Compares the array. The buffer1. The buffer2. Gets / sets whether format is default. Gets or sets a value indicating whether there is a formatting change. Gets or sets the value for the property with specified key. The key for the property. An object with the specific key. Gets parent format. Gets the revision changes marked with revision marks in a range or document. Initialize a new instance of the class. The object. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Clones itself. Gets the default values for the key. Comapre the section values with previous section. Sets the property value. The property key. The value. Gets the property value. The prop key. Gets or sets column width measured in points. The float that represents the width of the column. Gets or sets spacing between current and next column measured in points. The float that represents the space between the columns. Represents the custom document properties for the specified document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Add the new custom property Typist with value document.CustomDocumentProperties.Add("Typist", "Andrew"); //Add the new custom property Publisher with value document.CustomDocumentProperties.Add("Publisher", "Stephen"); //Add the new custom property Recorded by with value document.CustomDocumentProperties.Add("Recorded by", "Harry"); //Add the new custom property Recorded date with value document.CustomDocumentProperties.Add("Recorded date", new DateTime(2015, 2, 23)); //Save and close the Word document document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Add the new custom property Typist with value document.CustomDocumentProperties.Add("Typist", "Andrew") 'Add the new custom property Publisher with value document.CustomDocumentProperties.Add("Publisher", "Stephen") 'Add the new custom property Recorded by with value document.CustomDocumentProperties.Add("Recorded by", "Harry") 'Add the new custom property Recorded date with value document.CustomDocumentProperties.Add("Recorded date", New DateTime(2015, 2, 23)) 'Save and close the Word document document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Sorted list of properties Initialize Initialize Adds the new custom document property with specified name and its value. A String that represents the name of the property to add. The value for the property. The new this method creates. Removes the specified custom property from the document. A String that represents the name of the property. The specified property is not present in the document. Creates a duplicate copy of this The newly created duplicate copy of the current CustomDocumentProperties instance Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Reads point and it's type from XML. Reader object. Closes this instance. Gets the custom property by specified name. Read-only. Gets the custom property by specified index. Read-only. Gets the total number of custom properties in the document. Read-only. Represents document property. Start index for Id2 PropVariant property. Start year for FILETIME structure. Property id. Property name. Property value. Property type. The source of a linked custom document property. Read/write String. True if the value of the custom document property is linked to the content of the container document. False if the value is static. Read/write Boolean. Default constructor. Initializes new instance of the class. Property name. Property value. Initializes new instance of the class. Property name. Property value. Property type Initializes new instance of the class. Property id. Property value. Initializes new instance of the document property. Variant that contains property data. Indicates whether property is from document summary or not (only for built-int properties). Detects type of the string. String value to check. Detected string type. Returns the boolean value for the property. True if the value exists, otherwise false. Convert the object in DateTime. The converted value. Convert the object in float value. The converted float value of the property. Convert the object in double. The converted double value of the property. Convert the object in Int value. The converted integer value of the property. Returns a that represents the current . A that represents the current . Convert the object as byte array. The array. Gets the clip data. Copies document property data into PropVariant. Destination object. PropertyId for custom properties. True if was able to fill variant; false otherwise. Converts propertyId into correct index. PropertyId to convert. [out] Indicates whether this is document summary property of simply document property. Correct property index. Tries to detect and set property type. Sets value of LinkSource property. Variant that contains value to set. Creates a new object that is a copy of the current instance. A new object that is a copy of this instance. Creates copy of the internal value. Closes this instance. Indicates whether property is built-in. Read-only. Returns / sets property id for built-in properties. Gets the property name. Read-only. The string that represents the property name. Gets or sets the property value. An object that specifies the property value. Gets the type of the value. Read-only. The member that specifies the type of the value. Gets / sets boolean value. Gets / sets integer value. Gets / sets 4-bytes signed integer value. Gets / sets double value. Gets / sets string value. Gets / sets DateTime value. Gets / sets TimeSpan value. Gets / sets Blob value. Gets or sets clipboard data value. The that specifies the clipboard data. Gets / sets array of strings. Gets / sets array of objects. Supported object types are string and Int32. Gets / sets document property type. Returns or sets the source of a linked custom document property. Read/write String. True if the value of the custom document property is linked to the content of the container document. False if the value is static. Read/write Boolean. Internal name of the document property. Represents the Hyperlink. The following code example demonstrates how to insert a web link. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Web Hyperlink: "); paragraph = section.AddParagraph(); //Append web hyperlink to the paragraph IWField field = paragraph.AppendHyperlink("http://www.syncfusion.com", "Syncfusion", HyperlinkType.WebLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Web Hyperlink: ") paragraph = section.AddParagraph() 'Append web hyperlink to the paragraph Dim field As IWField = paragraph.AppendHyperlink("http://www.syncfusion.com", "Syncfusion", HyperlinkType.WebLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following code example demonstrates how to add an email link. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Email hyperlink: "); paragraph = section.AddParagraph(); //Append Email hyperlink to the paragraph paragraph.AppendHyperlink("mailto:john@gmail.com","John" , HyperlinkType.EMailLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Email hyperlink: ") paragraph = section.AddParagraph() 'Append Email hyperlink to the paragraph paragraph.AppendHyperlink("mailto:john@gmail.com", "John", HyperlinkType.EMailLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following code example demonstrates how to add a file hyperlink. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("File Hyperlinks: "); paragraph = section.AddParagraph(); //Append hyperlink field to the paragraph paragraph.AppendHyperlink(@"D:\Template.docx","File", HyperlinkType.FileLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("File Hyperlinks: ") paragraph = section.AddParagraph() 'Append hyperlink field to the paragraph paragraph.AppendHyperlink("D:\Template.docx", "File", HyperlinkType.FileLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following code example demonstrates how to add a bookmark hyperlink. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Create new Bookmark paragraph.AppendBookmarkStart("Introduction"); paragraph.AppendText("Hyperlink"); paragraph.AppendBookmarkEnd("Introduction"); paragraph.AppendText("\nA hyperlink is a reference or navigation element in a document to another section of the same document or to another document that may be on or part of a (different) domain."); paragraph = section.AddParagraph(); paragraph.AppendText("Bookmark Hyperlink: "); paragraph = section.AddParagraph(); //Append Bookmark hyperlink to the paragraph paragraph.AppendHyperlink("Introduction", "Bookmark", HyperlinkType.Bookmark); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Create new Bookmark paragraph.AppendBookmarkStart("Introduction") paragraph.AppendText("Hyperlink") paragraph.AppendBookmarkEnd("Introduction") paragraph.AppendText(vbLf & "A hyperlink is a reference or navigation element in a document to another section of the same document or to another document that may be on or part of a (different) domain.") paragraph = section.AddParagraph() paragraph.AppendText("Bookmark Hyperlink: ") paragraph = section.AddParagraph() 'Append Bookmark hyperlink to the paragraph paragraph.AppendHyperlink("Introduction", "Bookmark", HyperlinkType.Bookmark) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following code example demonstrates how to add image hyperlink. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Image Hyperlink"); paragraph = section.AddParagraph(); //Create a new image instance and load image WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Append new image hyperlink to the paragraph paragraph.AppendHyperlink("http://www.syncfusion.com", picture, HyperlinkType.WebLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Image Hyperlink") paragraph = section.AddParagraph() 'Create a new image instance and load image Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Append new image hyperlink to the paragraph paragraph.AppendHyperlink("http://www.syncfusion.com", picture, HyperlinkType.WebLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Hyperlink field Type of the hyperlink File path. URL link. Bookmark. Text which will be displayed on the place of hyperlink Hyperlink image Local Reference Initializes a new instance of the class. The hyperlink. Performs hyperlink field validation. The field. Parses the hyperlink Updates the text to display. Sets the image to display. Finds the first item of hyperlink text range. Updates the hyperlink type. Sets the URI. The URI. Sets the name of the bookmark. The name. sets the local reference Sets the file path. The file path. Checks the value. The value. Checks the path. The path. Checks the URI. The URI. Set the field code of hyperlink field. Implemented alternative method to improve the performance Gets or sets the file path for file link. The string that specifies the path of the file. Gets or sets URL link for web link. The string that specifies URL. Gets or sets the bookmark name for Bookmark hyperlink. Gets or sets the hyperlink type. Gets or sets the text which will be displayed on the place of hyperlink. The string that specifies the text to display. Gets or sets the image which will be displayed on the place of hyperlink. The to display. Gets the field. The field. Gets or sets the Local Reference for the hyperlink The string that specifies the local reference. Represents the image class. Initializes a new instance of the class. The stream. Initializes this instance. Checks if tiff. Checks if image is Bitmap. Parses the BMP image. Checks if icon. Checks if PNG. Checks if JPEG. Checks if GIF. Checks if EMF or WMF. Parses the PNG image. Gets the specified resource file as stream. The resource file name Stream of the specified resource file Parses the JPEG image. Generate higth wnd width of the JPEG image from byte array. Generate higth wnd width of the JPEG image from byte array when the byte array has JFIF information. generate higth wnd width of the JPEG image from byte array when the byte array has EXIF information. (index+11) specifies the the unit.the next 4 bytes specifies the resolution of image. first two bytes horizontal resolutin and the next two bytes vertical resolution The end index of JFIF in image data 26 denotes hexadecimal value of 1A and 1 denotes the hexadecimal value of 01 and both specifies directory tag value. 5 ,0 (intel) or 0,5 (motorola) specifies the Data type . 1,0,0,0(intel) or 0,0,0,1(motorola) are specifies the component/byte count in the directory the next following 4 index values denotes offset value of Image resolution from Tiff header.Added +12 value because of we left 12 bytes before TIFF header. From the i index first height bytes for horizontal resolution and next 8 bytes for vertical Resolution. Parses the GIF image. Parses the icon image. Parses the EMF or WMF image. Parses tif image Reads the Uint32. Reads the int32. Reads the Uint16. Reads the int16. Reads the word. Reads the short LE. Reads the string. The len. Resets this instance. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Gets the width. The width. Gets the height. The height. Gets the image format. The image format. Gets the size. The size. Gets the image data. The image data. Gets the Horizontal resolution gets and sets the vertical Resolution Gets a value indicating whether this instance is metafile. true if this instance is metafile; otherwise, false. Specifies the image format. Initializes a new instance of the class. The word document. The image bytes. Detaches from document image collection Compare the byte array Closes this instance. Updates the image size for partial trust mode. The image. Updates the size of the image. The image. Gets the image internal for partial trust mode. The image bytes. Gets the image. The image bytes. Gets the image. The image bytes. Gets image byte array. Gets image byte array. Gets hash of the image. Gets or sets the occurence count. The occurence count. Gets or sets a value indicating whether this instance is metafile. true if this instance is metafile; otherwise, false. Gets or sets a value indicating whether this instance is added to collection or not. true if this instance is added to collection; otherwise, false. Gets or sets the size. The size. Gets or sets the image format for partial trust mode. The image format for partial trust mode. Gets or sets the image format. The image format. Gets or sets the image format. The image format. Represents the base implementation for paragraphs and tables. Represents text range functions Replaces all entries of given regular expression with replace string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. Replaces all entries of given string with replace string, taking into consideration case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. True to consider the case, otherwise false. True to consider the text as whole word, otherwise false. The integer that represents the count of the replacements made. Replaces the regular expression with a text selection. The used to find the text. The which specifies the text to replace. The integer that represents the count of the replacements made. Initializes a new instance of the class with the specified . The instance. Finds the text based on the specified regular expression. The used to find the text. The selection of text inside a paragraph along with formattings. Replaces all entries of given regular expression with the specified string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. Replaces all entries of given string with replace string, taking into consideration case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. True to consider the case; otherwise, false. True to consider the text as whole word; otherwise, false. The integer that represents the count of the replacements made. Replaces the specified regular expression with a . The used to find the text. The which specifies the text to replace. The integer that represents the count of the replacements made. Replaces the specified regular expression with a along with its formatting. The used to find the text. The which specifies the text to replace. True if save with source formatting; otherwise, false. The integer that represents the count of the replacements made. Returns all the entries of given regular expression. The used to find the text. Gets the next TextBodyItem in the document. Accepts or rejects changes tracked from the moment of last change acceptance. if it accepts changes, set to true. Checks a value indicating whether this item was inserted to the document, when "Track Changes" is or was set to "true". Checks a value indicating whether this item was deleted from the document, when "Track Changes" is or was set to "true". Defines whether format was changed. Defines whether paragraph/table format is changed. Removes the changes from character format. Accept changes from paragraph/table. Removes the character format changes. Removes the paragraph format changes. Determines whether item has tracked changes. If it has tracked changes, set to true. Sets the changed Character format. if it is check, set to true. Sets the changed Paragraph format. if it sets the Format, set to true. Sets the delete revision. if it sets delete revision, set to true. Sets the insert revision. if it sets insert revision, set to true. Apply insert revision for the item. Apply delete revision for the item. Gets the next text body item. The instance from which the next item to be found. The next object. Gets the owner text body of the current . The instance that is the owner of the current item. Gets a value indicating whether this item was inserted to the document, when "Track Changes" is or was set to "true". True if this instance was inserted; otherwise, false. Gets a value indicating whether this item was deleted from the document, when "Track Changes" is or was set to "true". True if this instance is delete revision; otherwise, false. Defines whether format was changed. The is changed format. Gets a value indicating whether paragraph/table format is changed. If paragraph/table format is changed, set to true. Initializes a new instance of the class. The doc. Creates a duplicate of the entity. Gets Next the text body item in the document. Returns the bool value based on the file extension of the given file name for updating teh alternate chunk. Update the current Alternate chunk element in the Word document Check the Textwrapping style of Picture Merge the owner paragraph of altchunk with the altchunk first Merge the altchunk first paragraph with the owner text body last paragraph. Index of the AltChunk Owner text body Altchunk text body Updates the bookmarks into the AltChunk. The textbody. Textbody child count before update AltChunk. Inserts the bookmark start to the body's first item. Textbody last item. Bookmark start. True if bookmark start is inserted, otherwise false. Adds the bookmark end to the body's last item. Textbody last item. Bookmark end. True if bookmark end is added, otherwise false. Clears the existing headers footers. The section. Update the HeaderFooter to the main document if the parent element is body/docPartBody/tableCell Checks a value indicating whether this item was deleted from the document, when "Track Changes" is or was set to "true". if this instance is delete revision, set to true. Sets the changed Paragraph format for table. if it specifies the format to be changed, set to true. Sets the changed C format. if it specifies formatting, set to true. Sets the delete rev. if specifies delete revision, set to true. Sets the insert rev. if it specifies insert revision, set to true. Determines whether item has tracked changes. if has tracked changes, set to true. Replaces all entries of given regular expression with replace string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. Replaces all entries of given string with replace string, taking into consideration case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. True to consider the case, otherwise false. True to consider the text as whole word, otherwise false. The integer that represents the count of the replacements made. Replaces the regular expression with a text selection. The used to find the text. The which specifies the text to replace. The integer that represents the count of the replacements made. Replaces all entries of given regular expression with TextRangesHolder. The pattern. The text selection. if it specifies save source formatting, set to true. Replaces all entries of given string with TextRangesHolder, taking into consideration caseSensitive and wholeWord options. The given. The text selection. if it specifies case sensitive, set to true. if it specifies to check whole word, set to true . Replaces all entries of given string with TextRangesHolder, taking into consideration caseSensitive and wholeWord options. The given. The text selection. if it specifies case sensitive, set to true . if it specifies to search a whole word, set to true . if it specifies save source formatting, set to true. Replaces first entry of given string with replace string, taking into consideration caseSensitive and wholeWord options. The string to replace Replace string Is case sensitive replace? Search for whole word? Replaces all entries of given regular expression with replace string. Removes the character format changes. Removes the paragraph/table format changes. Accepts the changes for character format. Accepts changes in paragraph/table format. Defines whether format was changed. Checks a value indicating whether this item was inserted to the document, when "Track Changes" is or was set to "true". if this instance was inserted, set to true. Returns first entry of given regex. The pattern. Returns first entry of given string, taking into consideration caseSensitive and wholeWord options. The given. if it is case sensitive, set to true. if it specifies to search a whole word, set to true. Accepts or rejects changes tracked from the moment of last change acceptance. if it accepts changes, set to true. Returns all entries of given regex. The pattern. Closes the item. Defines whether paragraph format is changed. Clones the relations. The doc. Updates the XML parts. The destination. Updates the XML part container. The SRC container. The dest container. The parts. The index. Updates the XML part. The SRC container. The dest container. The XML part. Gets / sets the targer Id. The Targer id. Gets / sets the Content extension. The Content extension. Gets or sets the import option. The import option. Gets / sets the Content Type. The Content Type. Gets / sets the Content Path. The Content Path. Gets the alternate chunk stream. The alternate chunk stream. Gets the bookmark start and end which present before and after the alternate chunk. Gets or sets the value indicates whether the owner document having one section only. Gets or sets the value indicates whether the chunk is first chunk. Gets or sets the value indicates whether the chunk is last chunk. Gets or sets the value indicates the first chunk last section. Gets the type of the entity. The of the current item. Gets the child entities. The child entities. Represents the Metafile header. Gets a that bounds the associated . A that bounds the associated . Contains types that support which is used to create and manipulate Word document. Represents the picture that appears behind the document. The following code snippet illustrates how to add a picture watermark to the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add a section and a paragraph in the document document.EnsureMinimal(); IWParagraph paragraph = document.LastParagraph; paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"); //Create a new picture watermark PictureWatermark picWatermark = new PictureWatermark(); //Set the scaling to picture picWatermark.Scaling = 120f; picWatermark.Washout = true; //Set the picture watermark to document document.Watermark = picWatermark; //Set the image to the picture watermark picWatermark.Picture = Image.FromFile("ImagesPath" + "Water lilies.jpg"); document.Save("PictureWatermark.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add a section and a paragraph in the document document.EnsureMinimal() Dim paragraph As IWParagraph = document.LastParagraph paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua") 'Create a new picture watermark Dim picWatermark As New PictureWatermark() 'Set the scaling to picture picWatermark.Scaling = 120.0F picWatermark.Washout = True Set the picture watermark to document document.Watermark = picWatermark Set the image to the picture watermark picWatermark.Picture = Image.FromFile(ImagesPath + "Water lilies.jpg") document.Save("PictureWatermark.docx", FormatType.Docx) document.Close() End Sub Represents the text or picture that appears behind the document. Initializes a new instance of the class. The type. Initializes a new instance of the class. The doc. The type. Removes the self. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Gets the type of the entity. The of the current item. Gets the watermark type. Read-Only. A represents the type of watermark in this Gets or sets the index of the order. The index of the order. Gets or sets the shape id. Picture watermark members. Initializes a new instance of the class. Initializes a new instance of the class with the specified and effect. Image that appear behind the document Washout property to set light shading effect to picture. This constructor is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin application. The following code snippet illustrates how to add a picture watermark to the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Create a new picture watermark PictureWatermark picWatermark = new PictureWatermark(Image.FromFile("ImagesPath" + "Water lilies.jpg"), false); //Set the picture watermark to document document.Watermark = picWatermark; document.Save("PictureWatermark.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Create a new picture watermark Dim picWatermark As New PictureWatermark(Image.FromFile(ImagesPath + "Water lilies.jpg"), False) 'Set the picture watermark to document document.Watermark = picWatermark document.Save("PictureWatermark.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The doc. Closes the instance Updates the image. Gets the image. The image bytes. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Clones itself. Returns cloned object. Gets or sets the picture scaling value in percents. The float that specifies the picture scaling value. Gets or sets a value indicating whether the washout property is enabled for the picture watermark. The default value is true. True if to have light shading effect to picture; otherwise, false. Gets or sets the picture for picture watermark. The that represents the picture. This property is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin application. Gets or sets the WPicture. Gets/sets index in BStoreContainer which contains picture watermark data (image). Represents the tabs in the document. The following code example demonstrates how to modify the existing tab values in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument("Template.docx"); //Add the section into Word document WSection section = document.AddSection() as WSection; //Access the first paragraph of the document WParagraph paragraph = document.Sections[0].Paragraphs[0]; //Get the first tab from the paragraph Tab tab = paragraph.ParagraphFormat.Tabs[0]; //Adjust the tab values tab.Justification = TabJustification.Centered; tab.Position = 200; tab.TabLeader = Syncfusion.DocIO.DLS.TabLeader.Dotted; //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument("Template.docx") 'Add the section into Word document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Access the first paragraph of the document Dim paragraph As WParagraph = document.Sections(0).Paragraphs(0) 'Get the first tab from the paragraph Dim tab As Tab = paragraph.ParagraphFormat.Tabs(0) 'Adjust the tab values tab.Justification = TabJustification.Centered tab.Position = 200 tab.TabLeader = Syncfusion.DocIO.DLS.TabLeader.Dotted 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. Initializes a new instance of the class. The doc. The position. The justification. The leader. Initializes a new instance of the class. The doc. The position. The delete position. The justification. The leader. Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Sets the property value. The prop key. The value. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Called when tab was changed. Compares the tabs Gets or sets the . The member that specifies the tab justification of this . Gets or sets the . The member that specifies the tab leader. Gets or sets the position of the tab measured in points. The float that specifies the position of tab. Gets or sets the delete position for the tab measured in points. The float that specifies the delete position. Properties Collection. Gets or sets the key in property collection. The integer that specifies the key. An object that specifies the key. Represents the text that appears behind the document. The following code snippet illustrates how to add a text watermark to the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add a section and a paragraph in the document document.EnsureMinimal(); IWParagraph paragraph = document.LastParagraph; paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"); //Create a new text watermark TextWatermark textWatermark = new TextWatermark(); //Set the created watermark to document document.Watermark = textWatermark; //Set the text watermark font size textWatermark.Size = 72; //Set the text watermark layout to Horizontal textWatermark.Layout = WatermarkLayout.Horizontal; textWatermark.Semitransparent = false; //Set the text watermark text color textWatermark.Color = Color.Black; //Set the text to text watermark text textWatermark.Text = "TextWatermark"; document.Save("TextWatermark.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add a section and a paragraph in the document document.EnsureMinimal() Dim paragraph As IWParagraph = document.LastParagraph paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua") 'Create a new text watermark Dim textWatermark As New TextWatermark() 'Set the text watermark to document document.Watermark = textWatermark 'Set the text watermark font size textWatermark.Size = 72 'Set the text watermark layout to Horizontal textWatermark.Layout = WatermarkLayout.Horizontal textWatermark.Semitransparent = False 'Set the text watermark text color textWatermark.Color = Color.Black 'Set the text to the text watermark textWatermark.Text = "TextWatermark" document.Save("TextWatermark.docx", FormatType.Docx) document.Close() End Sub Text watermark members. Initializes a new instance of the class. Initializes a new instance of the class with watermark text. A String that appears behind the document The following code snippet illustrates how to add a text watermark to the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template,docx"); //Create a new text watermark TextWatermark textWatermark = new TextWatermark("Demo Text"); //Set the created watermark to document document.Watermark = textWatermark; document.Save("TextWatermark.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template,docx") 'Create a new text watermark Dim textWatermark As New TextWatermark("Demo Text") 'Set the created watermark to document document.Watermark = textWatermark document.Save("TextWatermark.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class with the specified watermark text, font name, font size and layout options. A String that represents which appears behind the document A String that represents the font name for the A float value that represents the visual appearance size for the A represents the appearance position of the watermark text in this The following code snippet illustrates how to add a text watermark to the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template,docx"); //Create a new text watermark TextWatermark textWatermark = new TextWatermark("Demo Text", "Arial", 48, WatermarkLayout.Diagonal); //Set the created watermark to document document.Watermark = textWatermark; document.Save("TextWatermark.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template,docx") 'Create a new text watermark Dim textWatermark As New TextWatermark("Demo Text", "Arial", 48, WatermarkLayout.Diagonal) 'Set the created watermark to document document.Watermark = textWatermark document.Save("TextWatermark.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The doc. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Sets the default values for text Watermark properties. Set the default size of watermark. Gets the size of the shape Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Sets the property value. The prop key. The value. Gets or sets a value indicating whether this is visible. True if visible; otherwise, false. Gets or sets watermark text. A String that appear behind the document. Gets or sets watermark text's font name. A String that represents the font name for the Setting new value to this will not auto update the width and height of the TextWatermark. Have to specify the and explicitly in ASP.NET Core and Xamarin platforms Gets or sets watermark text's size. A float value that represents the visual appearance size for the Setting new value to this will not auto update the width and height of the TextWatermark. Have to specify the and explicitly in ASP.NET Core and Xamarin platforms Gets or sets watermark text display color. A Color value represents the visual appearance color for the Gets or sets semitransparent property for Text watermark. The default is false. True if the watermark text appear as semitransparent; otherwise, false Gets or sets layout for watermark text. A represents the appearance position of the watermark text in this . Gets or sets watermark text's height. A float value represents the visual appearance height for . is only applicable for ASP.NET Core and Xamarin platforms. Gets or sets watermark text's width. A float value represents the visual appearance width for . is only applicable for ASP.NET Core and Xamarin platforms. Gets shape size. The size of the shape. Gets or sets the wrapping style of text watermark. Gets or sets the horizontal origin of text watermark. Gets or sets the vertical origin of text watermark. Gets or sets the text watermark horizontal alignment. Gets or sets the text watermark vertical alignment. Gets or sets the horizontal absolute position. Gets or sets the vertical absolute position. Gets or sets the the rotation angle. Gets or sets the position type of text watermark. Properties Collection. Gets or sets the key in property collection. The integer that specifies the key. An object that specifies the key. Represents the Word document variables. The following code snippet illustrate how to add a DocVariable field in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("First Name of the customer: "); //Add the DocVariable field with Variable name and its type paragraph.AppendField("FirstName", FieldType.FieldDocVariable); paragraph = section.AddParagraph(); paragraph.AppendText("Last Name of the customer: "); //Add the DocVariable field with Variable name and its type paragraph.AppendField("LastName", FieldType.FieldDocVariable); //Add the value for variable in WordDocument.Variable collection document.Variables.Add("FirstName", "Jeff"); document.Variables.Add("LastName", "Smith"); //Update the document fields document.UpdateDocumentFields(); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("First Name of the customer: ") 'Add the DocVariable field with Variable name and its type paragraph.AppendField("FirstName", FieldType.FieldDocVariable) paragraph = section.AddParagraph() paragraph.AppendText("Last Name of the customer: ") 'Add the DocVariable field with Variable name and its type paragraph.AppendField("LastName", FieldType.FieldDocVariable) 'Add the value for variable in WordDocument.Variable collection document.Variables.Add("FirstName", "Jeff") document.Variables.Add("LastName", "Smith") 'Update the document fields document.UpdateDocumentFields() document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Document variables Initializes a new instance of the class. Adds new document variable to document. The string that specifies the varaible name. The string that specifies the varaible value. Gets variable's key by its index. The integer that specifies the index of the variable. The string that represents the key of the variable. Gets variable's value by the index. The integer that specifies the index of the variable. The string that represents the value of the variable. Removes document variable with specified name from the document. The string that represents the name of the variable. Closes this instance. Updates the variables. The variables. Converts collection of variables to byte array. Finds the item. The index. if returns name, set to true. Checks the index. The index. Gets or sets the variable with the specified name. The string that specifies the name of the variable. The string that represents the variable name. Gets the count of variables. The integer that specifies the variables count. Gets the collection of name/value items. The items. Represents the item of drop down formfield. Initializes a new instance of the class. The document Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Clones this instance. Gets / sets current DropDownItem text Represents page headers and footers The following code example demonstrates how to add text to different types of headers and footers. private void Button1_Click(System.Object sender, System.EventArgs e) { //Creates a new document. WordDocument document = new WordDocument(); //Adds the first section to the document. IWSection section = document.AddSection(); //Adds a paragraph to the section. IWParagraph paragraph = section.AddParagraph(); //Sets DifferentFirstPage and DifferentOddEvenPages to true for inserting Header and Footer text. section.PageSetup.DifferentFirstPage = true; section.PageSetup.DifferentOddAndEvenPages = true; //Appends some text to the first page in document. paragraph.AppendText("\r\r[ First Page ] \r\rText Body_Text Body_Text Body_Text Body_Text Body_Text Body"); paragraph.ParagraphFormat.PageBreakAfter = true; //Appends some text to the second page in document. paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ Second Page ] \r\rText Body_Text Body_Text Body_Text Body_Text Body_Text Body"); paragraph.ParagraphFormat.PageBreakAfter = true; //Appends some text to the third page in document. paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ Third Page ] \r\rText Body_Text Body_Text Body_Text Body_Text Body_Text Body"); //Inserts First Page Header. paragraph = new WParagraph(document); paragraph.AppendText("[ FIRST PAGE Header ]"); section.HeadersFooters.FirstPageHeader.Paragraphs.Add(paragraph); //Inserts First Page Footer. paragraph = new WParagraph(document); paragraph.AppendText("[ FIRST PAGE Footer ]"); section.HeadersFooters.FirstPageFooter.Paragraphs.Add(paragraph); //Inserts Odd Pages Header. paragraph = new WParagraph(document); paragraph.AppendText("[ ODD Page Header Text goes here ]"); section.HeadersFooters.OddHeader.Paragraphs.Add(paragraph); //Inserts Odd Pages Footer. paragraph = new WParagraph(document); paragraph.AppendText("[ ODD Page Footer Text goes here ]"); section.HeadersFooters.OddFooter.Paragraphs.Add(paragraph); //Inserts Even Pages Header. paragraph = new WParagraph(document); paragraph.AppendText("[ EVEN Page Header Text goes here ]"); section.HeadersFooters.EvenHeader.Paragraphs.Add(paragraph); //Inserts Even Pages Footer. paragraph = new WParagraph(document); paragraph.AppendText("[ EVEN Page Footer Text goes here ]"); section.HeadersFooters.EvenFooter.Paragraphs.Add(paragraph); //Adds the second section to the document. section = document.AddSection(); section.PageSetup.DifferentFirstPage = true; //Appends some text to the Second Sections's first page in the document. paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ First Page for SECOND SECTION ]\r[ ON DIFFERENT FIRTS PAGE ]\r\rText Body_Text Body_Text Body_Text Body_Text Body_Text Body"); paragraph.ParagraphFormat.PageBreakAfter = true; //Appends some text to the Second Sections's second page in the document. paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ Second Page for SECOND SECTION ]\rText Body_Text Body_Text Body_Text Body_Text Body_Text Body"); //Inserts Second Sections's First Header. paragraph = new WParagraph(document); paragraph.AppendText("[ SECOND SECTION FIRST PAGE Header ]"); section.HeadersFooters.FirstPageHeader.Paragraphs.Add(paragraph); //Inserts Second Sections's First Footer. paragraph = new WParagraph(document); paragraph.AppendText("[ SECOND SECTION FIRST PAGE Footer ]"); section.HeadersFooters.FirstPageFooter.Paragraphs.Add(paragraph); //Inserts Second Sections's Header. paragraph = new WParagraph(document); paragraph.AppendText("SECOND SECTION Header Text goes here"); section.HeadersFooters.OddHeader.Paragraphs.Add(paragraph); //Inserts Second Sections's Footer. paragraph = new WParagraph(document); paragraph.AppendText("SECOND SECTION Footer Text goes here"); section.HeadersFooters.OddFooter.Paragraphs.Add(paragraph); //Saves the document to disk. document.Save("Sample.docx", FormatType.Docx); } Private Sub button_Click(sender As Object, e As EventArgs) 'Creates a new document. Dim document As WordDocument = New WordDocument() 'Adds the first section to the document. Dim section As IWSection = document.AddSection() 'Adds a paragraph to the section. Dim paragraph As IWParagraph = section.AddParagraph() 'Sets DifferentFirstPage and DifferentOddEvenPages as true for inserting Header and Footer text. section.PageSetup.DifferentFirstPage = True section.PageSetup.DifferentOddAndEvenPages = True 'Appends some text to the first page in document. paragraph.AppendText(Constants.VB.NETCr + Constants.VB.NETCr and "[ First Page ] " and Constants.VB.NETCr + Constants.VB.NETCr and "Text Body_Text Body_Text Body_Text Body_Text Body_Text Body") paragraph.ParagraphFormat.PageBreakAfter = True 'Appends some text to the second page in document. paragraph = section.AddParagraph() paragraph.AppendText(Constants.VB.NETCr + Constants.VB.NETCr and "[ Second Page ] " and Constants.VB.NETCr + Constants.VB.NETCr and "Text Body_Text Body_Text Body_Text Body_Text Body_Text Body") paragraph.ParagraphFormat.PageBreakAfter = True 'Appends some text to the third page in document. paragraph = section.AddParagraph() paragraph.AppendText(Constants.VB.NETCr + Constants.VB.NETCr and "[ Third Page ] " and Constants.VB.NETCr + Constants.VB.NETCr and "Text Body_Text Body_Text Body_Text Body_Text Body_Text Body") 'Inserts First Page Header. paragraph = New WParagraph(document) paragraph.AppendText("[ FIRST PAGE Header ]") section.HeadersFooters.FirstPageHeader.Paragraphs.Add(paragraph) 'Inserts First Page Footer. paragraph = New WParagraph(document) paragraph.AppendText("[ FIRST PAGE Footer ]") section.HeadersFooters.FirstPageFooter.Paragraphs.Add(paragraph) 'Inserts Odd Pages Header. paragraph = New WParagraph(document) paragraph.AppendText("[ ODD Page Header Text goes here ]") section.HeadersFooters.OddHeader.Paragraphs.Add(paragraph) 'Inserts Odd Pages Footer. paragraph = New WParagraph(document) paragraph.AppendText("[ ODD Page Footer Text goes here ]") section.HeadersFooters.OddFooter.Paragraphs.Add(paragraph) 'Inserts Even Pages Header. paragraph = New WParagraph(document) paragraph.AppendText("[ EVEN Page Header Text goes here ]") section.HeadersFooters.EvenHeader.Paragraphs.Add(paragraph) 'Inserts Even Pages Footer. paragraph = New WParagraph(document) paragraph.AppendText("[ EVEN Page Footer Text goes here ]") section.HeadersFooters.EvenFooter.Paragraphs.Add(paragraph) 'Adds the second section to the document. section = document.AddSection() section.PageSetup.DifferentFirstPage = True 'Appends some text to the Second Sections's first page in the document. paragraph = section.AddParagraph() paragraph.AppendText(Constants.VB.NETCr + Constants.VB.NETCr and "[ First Page for SECOND SECTION ]" and Constants.VB.NETCr and "[ ON DIFFERENT FIRTS PAGE ]" and Constants.VB.NETCr + Constants.VB.NETCr and "Text Body_Text Body_Text Body_Text Body_Text Body_Text Body") paragraph.ParagraphFormat.PageBreakAfter = True 'Appends some text to the Second Sections's second page in the document. paragraph = section.AddParagraph() paragraph.AppendText(Constants.VB.NETCr + Constants.VB.NETCr and "[ Second Page for SECOND SECTION ]" and Constants.VB.NETCr and "Text Body_Text Body_Text Body_Text Body_Text Body_Text Body") 'Inserts Second Sections's First Header. paragraph = New WParagraph(document) paragraph.AppendText("[ SECOND SECTION FIRST PAGE Header ]") section.HeadersFooters.FirstPageHeader.Paragraphs.Add(paragraph) 'Inserts Second Sections's First Footer. paragraph = New WParagraph(document) paragraph.AppendText("[ SECOND SECTION FIRST PAGE Footer ]") section.HeadersFooters.FirstPageFooter.Paragraphs.Add(paragraph) 'Inserts Second Sections's Header. paragraph = New WParagraph(document) paragraph.AppendText("SECOND SECTION Header Text goes here") section.HeadersFooters.OddHeader.Paragraphs.Add(paragraph) 'Inserts Second Sections's Footer. paragraph = New WParagraph(document) paragraph.AppendText("SECOND SECTION Footer Text goes here") section.HeadersFooters.OddFooter.Paragraphs.Add(paragraph) 'Saves the document to disk. document.Save("Sample.docx", FormatType.Docx) End Sub Creates HeadersFooters object for specified document. Registers child objects in XDSL holder. Clones this instance. Clones itself. Returns cloned object. Closes this instance. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Gets the link to previous. Updates the link to previous. if it links to previous header/footer, set to true. Gets default header of the document. Read-only. The instance that represents the default header for the document. Gets default footer of the document. Read-only. the instance that represents the default footer for the document. Gets even pages header of the document. Read-only. The instance that represents the even pages header for the document. Gets odd pages header of the document. Read-only. The instance that represents the odd pages header for the document. This is also the default header for the document Gets even pages footer of the document. Read-only. The instance that represents the even pages footer for the document. Gets odd pages footer of the document. Read-only. The instance that represents the odd pages footer for the document. This is also the default footer for the document. Gets first page header of the document. Read-only. The instance that represents the first page header for the document. Gets first page footer of the document. Read-only. The instance that represents the first page footer for the document. Gets a value indicating whether all the headers/footers are empty. True if the document has empty headers/footers; otherwise, false. Gets TextBody of the header/footer of the document at specified index. The integer that represents the The HeaderFooterType has 6 values which is used as index for this property. Index 0 - EvenHeader Index 1 - OddHeader Index 2 - EvenFooter Index 3 - OddFooter Index 4 - FirstPageHeader Index 5 - FirstPageFooter Gets TextBody of the header/footer of the document by specified HeaderFooter type. Gets or sets a value indicating whether the current header or footer is linked to the header or footer in the previous section. True if the current header or footer is linked to the header or footer in the previous section, otherwise false. This property always returns false for the first section, since there is no previous section for the first section. The following code example demonstrates how to link the previous section header and footer for the current section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new document WordDocument document = new WordDocument(); //Add the first section to the document IWSection section = document.AddSection(); //Insert the first section header section.HeadersFooters.Header.AddParagraph().AppendText("[ First Section Header ]"); //Insert the first section footer section.HeadersFooters.Footer.AddParagraph().AppendText("[ First Section Footer ]"); //Add a paragraph to the section IWParagraph paragraph = section.AddParagraph(); string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Append some text to the first page in document paragraph.AppendText("\r\r[ First Page ] \r\r" + paraText); //Add the second section to the document section = document.AddSection(); //Insert the second section header section.HeadersFooters.Header.AddParagraph().AppendText("[ Second Section Header ]"); //Insert the second section footer. section.HeadersFooters.Footer.AddParagraph().AppendText("[ Second Section Footer ]"); //Set LinkToPrevious as true for retrieve the header and footer from previous section section.HeadersFooters.LinkToPrevious = true; //Append some text to the second page in document paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ Second Page ] \r\r" + paraText); //Add the third section to the document section = document.AddSection(); //Insert the third section header section.HeadersFooters.Header.AddParagraph().AppendText("[ Third Section Header ]"); //Insert the third section footer section.HeadersFooters.Footer.AddParagraph().AppendText("[ Third Section Footer ]"); //Append some text to the third page in document paragraph = section.AddParagraph(); paragraph.AppendText("\r\r[ Third Page ] \r\r" + paraText); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new document Dim document As New WordDocument() 'Add the first section to the document Dim section As IWSection = document.AddSection() 'Insert the first section header section.HeadersFooters.Header.AddParagraph().AppendText("[ First Section Header ]") 'Insert the first section footer section.HeadersFooters.Footer.AddParagraph().AppendText("[ First Section Footer ]") 'Add a paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Append some text to the first page in document paragraph.AppendText(Convert.ToString(vbCr & vbCr & "[ First Page ] " & vbCr & vbCr) & paraText) 'Add the second section to the document section = document.AddSection() 'Insert the second section header section.HeadersFooters.Header.AddParagraph().AppendText("[ Second Section Header ]") 'Insert the second section footer section.HeadersFooters.Footer.AddParagraph().AppendText("[ Second Section Footer ]") 'Set LinkToPrevious as true for retrieve the header and footer from previous section section.HeadersFooters.LinkToPrevious = True 'Append some text to the second page in document paragraph = section.AddParagraph() paragraph.AppendText(Convert.ToString(vbCr & vbCr & "[ Second Page ] " & vbCr & vbCr) & paraText) 'Add the third section to the document section = document.AddSection() 'Insert the third section header section.HeadersFooters.Header.AddParagraph().AppendText("[ Third Section Header ]") 'Insert the third section footer section.HeadersFooters.Footer.AddParagraph().AppendText("[ Third Section Footer ]") 'Append some text to the third page in document paragraph = section.AddParagraph() paragraph.AppendText(Convert.ToString(vbCr & vbCr & "[ Third Page ] " & vbCr & vbCr) & paraText) �Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The HFS. Advances the enumerator to the next element of the collection. true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. The collection was modified after the enumerator was created. Sets the enumerator to its initial position, which is before the first element in the collection. The collection was modified after the enumerator was created. Gets the current element in the collection. The current element in the collection. The enumerator is positioned before the first element of the collection or after the last element. Represents the page header or footer. Represent a text body of the Word document. The base implementation of IWidgetContainer interface Represents a collection of Widget objects. Gets count of child widgets. Gets child widget by index. Gets ChildWidgets collection. Initializes a new instance of the class. The document. The owner. Closes this instance. Gets count of child widgets. Gets child widget by index. Gets Childwidgets. Read-only. Represents the text body Represents the entity collection Gets the child entities. The child entities. Adds a new paragraph at the end of section. The reference to the newly added object. The following example illustrates how to add a paragraph to the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add a paragraph to the text body WParagraph paragraph = textbody.AddParagraph() as WParagraph; //Add text paragraph.AppendText("A new paragraph is added"); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add a paragraph to the text body Dim paragraph As WParagraph = TryCast(textbody.AddParagraph(), WParagraph) 'Add text paragraph.AppendText("A new paragraph is added") 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Adds a new table at the end of the section. The reference to the newly added object. The following example illustrates how to add a table to the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add a table to the text body IWTable table = textbody.AddTable(); table.ResetCells(2, 2); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add a table to the text body Dim table As IWTable = textbody.AddTable() table.ResetCells(2, 2) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub The following example illustrates how to add a block content control to the text body. //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add a block content control to the text body BlockContentControl blockControl = textbody.AddBlockContentControl(ContentControlType.RichText) as BlockContentControl; //Add text to the control added blockControl.TextBody.AddParagraph().AppendText("A new block control is added"); //Save and close the document document.Save("Sample.docx"); document.Close(); 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add a block content control to the text body Dim blockControl As BlockContentControl = TryCast(textbody.AddBlockContentControl(ContentControlType.RichText), BlockContentControl) 'Add text to the control added blockControl.TextBody.AddParagraph().AppendText("A new block control is added") 'Save and close the document document.Save("Sample.docx") document.Close() The following example illustrates how to insert a html string to the text body. //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring); //Save and close the document document.Save("Sample.docx"); document.Close();
Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub
The following example illustrates how to insert a html string at the specified paragraph in the text body. //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring, 2); //Save and close the document document.Save("Sample.docx"); document.Close();
'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring, 2) 'Save and close the document document.Save("Sample.docx") document.Close()
Validates the specified html string with the specified XHTML validation type. The html string to validate. The member that specifies the validation type. True if it is valid XHTML; otherwise, false. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; //Validating the Html string bool isValidHtml = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional); //If the Html string passes validation, it is inserted to document if (isValidHtml) { //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring, 2, 0); } //Save and close the document document.Save("Sample.docx"); document.Close();
'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" 'Validating the Html string Dim isValidHtmlAs Boolean = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional) 'If the Html string passes validation, it is inserted to document If isValidHtmlThen 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring, 2, 0) End If 'Save and close the document document.Save("Sample.docx") document.Close()
Validates the specified html string with the specified XHTML validation type and exception message. The html string to validate. The member that specifies the validation type. The string that specifies the exception message. True if it is valid XHTML, otherwise false. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; string exception = "The string is not valid"; //Validating the Html string bool isValidHtml = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional, out exception); //If the Html string passes validation, it is inserted to document if (isValidHtml) { //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring, 2, 0); } //Save and close the document document.Save("Sample.docx"); document.Close();
'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" Dim exception As String = "The string is not valid" 'Validating the Html string Dim isValidHtmlAs Boolean = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional, exception) 'If the Html string passes validation, it is inserted to document If isValidHtmlThen 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring, 2, 0) End If 'Save and close the document document.Save("Sample.docx") document.Close()
If the text body has no paragraphs, creates and add one paragraph to the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add one paragraph to the section body textbody.EnsureMinimum(); textbody.LastParagraph.AppendText("Last paragraph"); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add one paragraph to the section body textbody.EnsureMinimum() textbody.LastParagraph.AppendText("Last paragraph") 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Gets the collection of tables in the . Read-only. The collection that represents the tables in the text body. Gets the collection of paragraphs in the . Read-only. The collection that represents the paragraphs in the text body. Gets the collection of form fields in the . Read-only. The collection that represents the form fields in the text body. Gets the last paragraph in the section. Read-only. The object. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template Word document WordDocument document = new WordDocument("Template.docx"); //Get the textbody of first section WTextBody textbody = document.Sections[0].Body; //Get the last paragraph IWParagraph paragraph = textbody.LastParagraph; //Set horizontal alignment paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Right; //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template Word document Dim document As New WordDocument("Template.docx") 'Get the textbody of first section Dim textbody As WTextBody = document.Sections(0).Body 'Get the last paragraph Dim paragraph As IWParagraph = textbody.LastParagraph 'Set horizontal alignment paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Right 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Gets the child elements of the . The collection of the child elements. The section paragraphs Initializes a new instance of the class. The document. The owner. Initializes a new instance of the class. The sec. Adds a new paragraph at the end of section. The reference to the newly added object. The following example illustrates how to add a paragraph to the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add a paragraph to the text body WParagraph paragraph = textbody.AddParagraph() as WParagraph; //Add text paragraph.AppendText("A new paragraph is added"); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add a paragraph to the text body Dim paragraph As WParagraph = TryCast(textbody.AddParagraph(), WParagraph) 'Add text paragraph.AppendText("A new paragraph is added") 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Adds a new table at the end of the section. The reference to the newly added object. The following example illustrates how to add a table to the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add a table to the text body IWTable table = textbody.AddTable(); table.ResetCells(2, 2); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add a table to the text body Dim table As IWTable = textbody.AddTable() table.ResetCells(2, 2) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Adds a new block content control at the end of section. The reference to the newly added object. Thrown when is , or The following example illustrates how to add a block content control to the text body. //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add a block content control to the text body BlockContentControl blockControl = textbody.AddBlockContentControl(ContentControlType.RichText) as BlockContentControl; //Add text to the control added blockControl.TextBody.AddParagraph().AppendText("A new block control is added"); //Save and close the document document.Save("Sample.docx"); document.Close(); 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add a block content control to the text body Dim blockControl As BlockContentControl = TryCast(textbody.AddBlockContentControl(ContentControlType.RichText), BlockContentControl) 'Add text to the control added blockControl.TextBody.AddParagraph().AppendText("A new block control is added") 'Save and close the document document.Save("Sample.docx") document.Close() Add Structure document tag block Add Altername Chunk Add Altername Chunk The following example illustrates how to insert a html string to the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring); //Save and close the document document.Save("Sample.docx"); document.Close(); }
Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub
The following example illustrates how to insert a html string at the specified paragraph in the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring, 2); //Save and close the document document.Save("Sample.docx"); document.Close(); }
Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring, 2) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub
Validates the specified html string with the specified XHTML validation type. The html string to validate. The member that specifies the validation type. True if it is valid XHTML; otherwise, false. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; //Validating the Html string bool isValidHtml = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional); //If the Html string passes validation, it is inserted to document if (isValidHtml) { //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring, 2, 0); } //Save and close the document document.Save("Sample.docx"); document.Close(); }
Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" 'Validating the Html string Dim isValidHtmlAs Boolean = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional) 'If the Html string passes validation, it is inserted to document If isValidHtmlThen 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring, 2, 0) End If 'Save and close the document document.Save("Sample.docx") document.Close() End Sub
Validates the specified html string with the specified XHTML validation type and exception message. The html string to validate. The member that specifies the validation type. The string that specifies the exception message. True if it is valid XHTML, otherwise false. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; string exception = "The string is not valid"; //Validating the Html string bool isValidHtml = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional, out exception); //If the Html string passes validation, it is inserted to document if (isValidHtml) { //Append Html string as first item of the second paragraph in the document document.Sections[0].Body.InsertXHTML(htmlstring, 2, 0); } //Save and close the document document.Save("Sample.docx"); document.Close(); }
Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" Dim exception As String = "The string is not valid" 'Validating the Html string Dim isValidHtmlAs Boolean = document.LastSection.Body.IsValidXHTML(htmlstring, XHTMLValidationType.Transitional, exception) 'If the Html string passes validation, it is inserted to document If isValidHtmlThen 'Append Html string as first item of the second paragraph in the document document.Sections(0).Body.InsertXHTML(htmlstring, 2, 0) End If 'Save and close the document document.Save("Sample.docx") document.Close() End Sub
If the text body has no paragraphs, creates and add one paragraph to the text body. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create new Word document WordDocument document = new WordDocument(); //Add new section IWSection section = document.AddSection(); WTextBody textbody = section.Body; //Add one paragraph to the section body textbody.EnsureMinimum(); textbody.LastParagraph.AppendText("Last paragraph"); //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create new Word document Dim document As New WordDocument() 'Add new section Dim section As IWSection = document.AddSection() Dim textbody As WTextBody = section.Body 'Add one paragraph to the section body textbody.EnsureMinimum() textbody.LastParagraph.AppendText("Last paragraph") 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Finds the specified pattern. The pattern. Finds the specified pattern. The pattern. Replaces the specified pattern. The pattern. The replace. Replaces the specified pattern. The pattern. The text selection. if it specifies the save source formatting, set to true. Replaces the specified pattern. The pattern. The text part. if it specifies save source formatting, set to true . Replaces the specified pattern. The pattern. The replace doc. Retrieves the first paragraph within the specified text body. The text body to search for the first paragraph. A flag indicating whether to add a new paragraph if none is found. The first paragraph found within the text body, or null if no paragraph is found and isAddNewParagraph is false. Adds the self. Creates a duplicate copy of the entity. An that is newly created. Get the base entity Clones the relations. Closes this instance. Checks whether the textbody contains any block content control in it. Accepts or rejects changes tracked from the moment of last change acceptance. if it is accept the changes, set to true Removes the changed item. The item. if it accepts the changes, set to true. Index of the item. Determines whether text body has tracked changes. If has tracked changes, set to true. Removes the changed formatting. The item. Checks the whether item's content has to be moved to next paragraph. The item. if it is accept the changes, set to true . Moves item's content to the next paragraph. The item. Registers child objects in XDSL holder. Creates layout information. Decide whether current shape or text box has auto fit properties or not. true when wrap type is none current text box shape with rectangle type return true when shape or text box has auto fit properties Update the matched index Compare the text body items between the documents. The original document instance. Update the index Compare the body items between two text bodies The original text body to compare Back up the document collections. Clear the document collections. Reset the document collections. Delete or insert the unmatched items at the end of the textbodies Delete the unmatched item after the last matched item to end of the textbody Insert the unmatched after the last matched item to the end of the revised textbody to the original textbody Gets the string of the text body for word comaprison Gets the type of the entity. Read-only. The of the current item. Gets the collection of paragraphs in the . Read-only. The collection that represents the paragraphs in the text body. Gets the collection of tables in the . Read-only. The collection that represents the tables in the text body. Gets the collection of form fields in the . Read-only. The collection that represents the form fields in the text body. Alternate chunk collection from the current section Checks whether currently performing find and replace or not Gets the last paragraph in the section. Read-only. The object. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template Word document WordDocument document = new WordDocument("Template.docx"); //Get the textbody of first section WTextBody textbody = document.Sections[0].Body; //Get the last paragraph IWParagraph paragraph = textbody.LastParagraph; //Set horizontal alignment paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Right; //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template Word document Dim document As New WordDocument("Template.docx") 'Get the textbody of first section Dim textbody As WTextBody = document.Sections(0).Body 'Get the last paragraph Dim paragraph As IWParagraph = textbody.LastParagraph 'Set horizontal alignment paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Right 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Gets a value indicating whether [form fields created]. if the form fields created, set to true. Gets the body items. The body items. Gets the child elements of the . The collection of the child elements. Gets the entity collection. Read-only. The collection of entities. Inserts the watermark Checks the m_writeWatermark variable. Initializes a new instance of the class. The in which the current header or footer is present. The member that specifies the type of header or footer. Gets the link to previous. Finds the source header/footer. Checks the shapes in header/footer. The hf. Gets the type of the entity. The of the current item. Gets or sets the type of current header or footer. The member that specifies the type of header or footer. Gets or sets a value indicating whether need write watermark. true if write watermark; otherwise, false. Gets or sets a value indicating watermark for each header. Gets or sets a value indicating whether the current header or footer is linked to the header or footer in the previous section. True if the current header or footer is linked to the header or footer in the previous section, otherwise false. Represents a Word document and can be used to create a new Word document from the scratch. //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Add a new section into the Word document IWSection section = document.AddSection(); //Specify the page margins section.PageSetup.Margins.All = 50f; //Add a new simple paragraph into the section IWParagraph paragraph = section.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); 'Create an instance of WordDocument class Dim document As New WordDocument() 'Add a new section into the Word document Dim section As IWSection = document.AddSection() 'Specify the page margins section.PageSetup.Margins.All = 50F 'Add a new simple paragraph into the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Represents a Word document and can be used to create a new Word document from the scratch. Creates a new paragraph. The this method created. Adds a single with one , when the document contains no sections. The following code example demonstrates how to add new section with one paragraph to the empty Word document private void Button1_Click(System.Object sender, System.EventArgs e) { //Creates a new Word document. WordDocument document = new WordDocument(); //Add a section and a paragraph in the empty document document.EnsureMinimal(); IWParagraph paragraph = document.LastParagraph; //Append text to the last paragraph of the document paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"); //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Creates a new Word document. Dim document As New WordDocument() 'Add a section and a paragraph in the empty document document.EnsureMinimal() Dim paragraph As IWParagraph = document.LastParagraph 'Append text to the last paragraph of the document paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua") 'Save and close the Word document document.Save("Comment.docx", FormatType.Docx) document.Close() End Sub Adds a new section to document. The this method creates. The following code example demonstrates how to add a new section to document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("A new section is added to the document."); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("A new section is added to the document.") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new paragraph style to the document. A String that contains the name of the newly created The this method creates. The following code example demonstrates how to create a custom paragraph style and apply it to a paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Create user defined style IWParagraphStyle style = document.AddParagraphStyle("User_defined_style"); style.ParagraphFormat.BackColor = Color.LightGray; style.ParagraphFormat.AfterSpacing = 18f; style.ParagraphFormat.BeforeSpacing = 18f; style.ParagraphFormat.Borders.BorderType = Syncfusion.DocIO.DLS.BorderStyle.DotDash; style.ParagraphFormat.Borders.LineWidth = 0.5f; style.ParagraphFormat.LineSpacing = 15f; style.CharacterFormat.FontName = "Calibri"; style.CharacterFormat.Italic = true; //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); IWTextRange text = paragraph.AppendText("A new paragraph style is created and is applied to this paragraph."); //Apply the new style to paragraph paragraph.ApplyStyle("User_defined_style"); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Create user defined style Dim style As IWParagraphStyle = document.AddParagraphStyle("User_defined_style") style.ParagraphFormat.BackColor = Color.LightGray style.ParagraphFormat.AfterSpacing = 18.0F style.ParagraphFormat.BeforeSpacing = 18.0F style.ParagraphFormat.Borders.BorderType = Syncfusion.DocIO.DLS.BorderStyle.DotDash style.ParagraphFormat.Borders.LineWidth = 0.5F style.ParagraphFormat.LineSpacing = 15.0F style.CharacterFormat.FontName = "Calibri" style.CharacterFormat.Italic = True 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() Dim text As IWTextRange = paragraph.AppendText("A new paragraph style is created and is applied to this paragraph.") 'Apply the new style to paragraph paragraph.ApplyStyle("User_defined_style") 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Adds new list style to document. The of the new created. A String that contains the name of the newly added list style. The this method creates. The following code example demonstrates how to how to create user defined list styles. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new list style to the document ListStyle listStyle = document.AddListStyle(ListType.Numbered, "UserdefinedList"); WListLevel levelOne = listStyle.Levels[0]; //Define the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab; levelOne.NumberPrefix = "("; levelOne.NumberSufix = ")"; levelOne.PatternType = ListPatternType.LowRoman; levelOne.StartAt = 1; levelOne.TabSpaceAfter = 5; levelOne.NumberAlignment = ListNumberAlignment.Center; WListLevel levelTwo = listStyle.Levels[1]; //Define the follow character, suffix, pattern, start index for level 1 levelTwo.FollowCharacter = FollowCharacterType.Tab; levelTwo.NumberSufix = "}"; levelTwo.PatternType = ListPatternType.LowLetter; levelTwo.StartAt = 2; //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add text to the paragraph paragraph.AppendText("User defined list - Level 0"); //Apply default numbered list style paragraph.ListFormat.ApplyStyle("UserdefinedList"); //Add second paragraph paragraph = section.AddParagraph(); paragraph.AppendText("User defined list - Level 1"); //Continue last defined list paragraph.ListFormat.ContinueListNumbering(); //Increase the level indent paragraph.ListFormat.IncreaseIndentLevel(); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new list style to the document Dim listStyle As ListStyle = document.AddListStyle(ListType.Numbered, "UserdefinedList") Dim levelOne As WListLevel = listStyle.Levels(0) 'Define the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab levelOne.NumberPrefix = "(" levelOne.NumberSufix = ")" levelOne.PatternType = ListPatternType.LowRoman levelOne.StartAt = 1 levelOne.TabSpaceAfter = 5 levelOne.NumberAlignment = ListNumberAlignment.Center Dim levelTwo As WListLevel = listStyle.Levels(1) 'Define the follow character, suffix, pattern, start index for level 1 levelTwo.FollowCharacter = FollowCharacterType.Tab levelTwo.NumberSufix = "}" levelTwo.PatternType = ListPatternType.LowLetter levelTwo.StartAt = 2 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add text to the paragraph paragraph.AppendText("User defined list - Level 0") 'Apply default numbered list style paragraph.ListFormat.ApplyStyle("UserdefinedList") 'Add second paragraph paragraph = section.AddParagraph() paragraph.AppendText("User defined list - Level 1") 'Continue last defined list paragraph.ListFormat.ContinueListNumbering() 'Increase the level indent paragraph.ListFormat.IncreaseIndentLevel() 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Returns a string that contains whole document content as text. The text this document contains. This method is not supported in Silverlight, Windows Phone and Xamarin platforms. The following code example demonstrates how to retrieve the Word document contents as a plain text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the document text and close the document string text = document.GetText(); document.Close(); //Create new Word document WordDocument newdocument = new WordDocument(); //Add new section IWSection section = newdocument.AddSection(); //Add new paragraph IWParagraph paragraph = section.AddParagraph(); //Append the text to the paragraph paragraph.AppendText(text); //Save and close the document newdocument.Save("Sample.docx"); newdocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the document text and close the document Dim text As String = document.GetText() document.Close() 'Create new Word document Dim newdocument As New WordDocument() 'Add new section Dim section As IWSection = newdocument.AddSection() 'Add new paragraph Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to the paragraph paragraph.AppendText(text) 'Save and close the document newdocument.Save("Sample.docx") newdocument.Close() End Sub Creates the duplicate copy of this instance. The this method duplicated. The following code example demonstrates how to clone the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an existing document WordDocument inputTemplateDoc = new WordDocument("Template.docx"); //Create a clone of Input Template WordDocument clonedDocument = inputTemplateDoc.Clone(); //Close the input template document instance inputTemplateDoc.Close(); //Save and Close the cloned document instance clonedDocument.Save("ClonedDocument.docx"); clonedDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an existing document Dim inputTemplateDoc As New WordDocument(fileName) 'Create a clone of Input Template Dim clonedDocument As WordDocument = inputTemplateDoc.Clone() 'Close the input template document instance inputTemplateDoc.Close() 'Save and Close the cloned document instance clonedDocument.Save("ClonedDocument.docx") clonedDocument.Close() End Sub Imports the specified section into the current document. The source whose contents are appended at the end of the current instance. The following code example demonstrates how to import the section into the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument(sourceFileName); //Open the destination document WordDocument destinationDocument = new WordDocument(targetFileName); //Import the last section of source document at the end of destination document destinationDocument.ImportSection(sourceDocument.LastSection); //Close the document instance sourceDocument.Close(); //Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument("sourceFileName.docx") 'Open the destination document Dim destinationDocument As New WordDocument("targetFileName.docx") 'Import the last section of source document at the end of destination document destinationDocument.ImportSection(sourceDocument.LastSection) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Import contents and styles from the source document to the destination document. The source whose contents are appended at the end of the current instance. When source and destination documents have styles with the same names, then Guid is added as a suffix to the name of the imported styles in the destination document. Due to the above duplication of the same style will increase the file size of the document and also it may lead to Out of memory exception if the machine has some limited amount memory. To resolve the duplication of the same style from source to destination document, use ImportContent(IWordDocument doc, bool importStyles) methods with false value for "importStyle" parameter. The following code example demonstrates how to import the contents from source document into destination document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Open the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument); //Close the document instance sourceDocument.Close() //Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Open the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Import contents from the source document to the destination document with various import options. The source whose contents are appended at the end of the current instance. The that represents the options to import the source document contents to the destination document. Essential DocIO supports the importing contents from the source document to the destination document with various import options similar to Microsoft Word copy and paste options. Following are the import options supported by Essential DocIO. KeepSourceFormatting�Imports the contents from the source document, applies the default style (Normal), and preserves all other formatting as direct formatting in order to preserve the contents as in source document. Header and footer contents will be imported similar to the UseDestinationStyles option. MergeFormatting�Imports the contents of the source document to the destination document, and applies the formatting of surrounding content to the destination document. Merges formatting of the contents surrounding it by preserving some of the source formatting (such as bold, italic, underline, and so on). Header and footer contents are imported similar to the UseDestinationStyles option. KeepTextOnly�Imports only the text from the source document to the destination document (tables, textboxes, pictures, headers, footers, and so on, are removed), similar to content copied from a text file (.txt). UseDestinationStyles�Imports the contents of the source document to the destination document, and applies the styles present in the destination document, or imports the source style to the destination document when there is no style with the same name in the destination document. The following code example demonstrates how to import the contents from source document into destination document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Open the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles); //Close the document instance sourceDocument.Close(); //Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Open the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Import contents from the source document to the destination document by specifying whether to import styles that have the same name between the source and destination document. The source whose contents are appended at the end of the current instance. Set to true to import all the styles from the source document to destination document; otherwise, false. When importStyles is set to false, all the contents are imported; but, the styles of the source document with style names that do not match with the styles in the destination document are not imported. When the style names match the destination style names, then the same name is applied to the imported contents. This behavior is similar to the Microsoft Word paste option � UseDestinationStyles. When importStyles is set to true, all the contents and styles of the source document are imported to the destination document. In cases where a style in the source document has the same name as a style in the destination document, �Guid� is added as a suffix to the name of the imported style in order to preserve unique style name. Due to the above duplication of the same style will increase the file size of the document and also it may lead to Out of memory exception if the machine has some limited amount memory. The following code example demonstrates how to import the contents from source document into destination document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Open the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, true); //Close the document instance sourceDocument.Close(); //Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Open the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, true) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Adds the built-in style to the collection. The that represents the added built-in style of the document. The this method added to collection. The following code example demonstrates how to add the built-in style to the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Add the built-in style to the document style collection IStyle style = document.AddStyle(BuiltinStyle.Heading5); //Apply the added built-in style to the last paragraph of the document document.LastParagraph.ApplyStyle(style.Name); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Add the built-in style to the document style collection Dim style As IStyle = document.AddStyle(BuiltinStyle.Heading5) 'Apply the added built-in style to the last paragraph of the document document.LastParagraph.ApplyStyle(style.Name) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Accepts changes tracked from the moment of last change acceptance. The following code example demonstrates how to accept the tracked changes in the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Check whether document has tracked changes if (document.HasChanges) //Accept the changes made to the document document.AcceptChanges(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Check whether document has tracked changes If document.HasChanges Then 'Accept the changes made to the document document.AcceptChanges() End If 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Rejects changes tracked from the moment of last change acceptance. The following code example demonstrates how to reject the tracked changes in the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Check whether document has tracked changes if (document.HasChanges) //Reject the changes made to the document document.RejectChanges(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Check whether document has tracked changes If document.HasChanges Then 'Reject the changes made to the document document.RejectChanges() End If 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Protects the document from unintentional editing. The type of protection to be applied. The following code example demonstrates how to protect the document from unintentional editing. This method is not supported in MVC6 and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments); //Save and close the document instances document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments) 'Save and close the document instances document.Save("Sample.docx") document.Close() End Sub Protects the document from unintentional editing with secure password. The type of protection to be applied. The password used for protection. This method is not supported in MVC6 and Xamarin platforms. The following code example demonstrates how to protect the document from unintentional editing. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx", "password"); //Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments); //Save and close the document instances document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments, "password") 'Save and close the document instances document.Save("Sample.docx") document.Close() End Sub Protects the document with password from unauthorized access. A String used to encrypt the document. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. The following code example demonstrates how to encrypt the Word document with password. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word document WordDocument document = new WordDocument("Template.docx"); //Encrypt the Word document with a password document.EncryptDocument("password"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word document Dim document As New WordDocument("Template.docx") 'Encrypt the Word document with a password document.EncryptDocument("password") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Removes the encryption from the document. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. The following code example demonstrates how to remove encrypt from the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word document WordDocument document = new WordDocument("Template.docx"); //Remove the encryption from document document.RemoveEncryption(); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word document Dim document As New WordDocument("Template.docx") 'Remove the encryption from document document.RemoveEncryption(); 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the list/array of items that can be cross-referenced based on the specified reference type. Specifies the type of item you want to insert a cross-reference to. The collection that represents the cross reference items in the document. This method returns the cross reference of Bookmarks items only. For bookmarks, it returns the entity collections of BookmarkStart only if the bookmark contains proper start and end. The following code example demonstrates how to append cross reference for bookmark in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Get the collection of bookmark start in the word document List<Entity> items = document.GetCrossReferenceItems(ReferenceType.Bookmark); if (items.Count > 0) //Change the first cross reference items owner paragraph back color as YelloGreen (items[0] as BookmarkStart).OwnerParagraph.ParagraphFormat.BackColor = Color.YellowGreen; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Get the collection of bookmark start in the word document Dim items As List(Of Entity) = document.GetCrossReferenceItems(ReferenceType.Bookmark) If items.Count > 0 Then 'Change the first cross reference items owner paragraph back color as YelloGreen TryCast(items(0), BookmarkStart).OwnerParagraph.ParagraphFormat.BackColor = Color.YellowGreen End If 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Saves this as text file(.txt) with specified encoding. A string that contains the name of the file to save. The character encoding to use. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to convert the Word document into text file. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Save the document as Text file document.SaveTxt("sample.txt", Encoding.ASCII); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Save the document as Text file document.SaveTxt("sample.txt", Encoding.ASCII) 'Close the document document.Close() End Sub Opens an existing document. A string that contains the name of the file to open The following code example demonstrates how to open an existing document from file system. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx"); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx") 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type. A string that contains the name of the file to open. The file format type of the document to open. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to open an existing document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type with HTML file validation options and base path for relative path to absolute path conversion. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . Base path which is used to convert the relative path in the HTML file to absolute path. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open a protected document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx, XHTMLValidationType.Strict, "basePath"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password", XHTMLValidationType.Strict, basePath) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type with HTML file validation options. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open a protected document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx, XHTMLValidationType.Strict); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password", XHTMLValidationType.Strict) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type, which is protected with password. A string that contains the name of the file to open. The file format type of the document to open. The password used to decrypt the protected file. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open a protected document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. Opens an existing document of the specified file format type, which is protected with password in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. The password used to decrypt the protected file. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. fileName is null. password is null. The following code example demonstrates how to open a protected document of the specified type from file system in read-only mode. //Create a new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, "password"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Create a new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, "password") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Opens an existing document of the specified file format type with HTML file validation options in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. fileName is null. The following code example demonstrates how to open an existing document of the specified type from file system with XHTML validation options in read-only mode. //Create a new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Create a new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Opens an existing document of the specified file format type with HTML file validation options and base path for relative path to absolute path conversion in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . Base path which is used to convert the relative path in the HTML file to absolute path. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. fileName is null. baseUrl is null. The following code example demonstrates how to open an existing document of the specified type from file system with XHTML validation options in read-only mode. //Create a new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict, "basePath"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Create a new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict, basePath) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Saves this to the specified file. A string that contains the name of the document to save. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to open an existing document from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx"); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx") 'Close the WordDocument instance document.Close() End Sub Saves this to the specified file in the specified format. A string that contains the name of the document to save. The format in which the document is saved. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to open an existing document from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Saves this as EPUB. A string that contains the name of the file to save. The cover page image of the EPUB. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to convert the Word document to EPub file. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); MemoryStream stream = new MemoryStream(); //Create the new WPicture for cover page image WPicture coverImage = new WPicture(document); coverImage.LoadImage(Image.FromFile("CoverImage.png")); //Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim stream As New MemoryStream() 'Create the new WPicture for cover page image Dim coverImage As New WPicture(document) coverImage.LoadImage(Image.FromFile("CoverImage.png")) 'Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage) 'Close the document document.Close() End Sub Saves this to the specified file in the specified format. A string that contains the name of the document to save. The format in which the document is saved. The HTTP response information. Specifies options to stream content to browser. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open an existing document from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx, HttpContext.Current.Response, HttpContentDisposition.Attachment); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx, Response, HttpContentDisposition.Attachment) 'Close the WordDocument instance document.Close() End Sub Saves this as EPUB. A string that contains the name of the file to save. The cover page image of the EPUB. The HTTP response information. Specifies options to stream content to browser. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); MemoryStream stream = new MemoryStream(); //Create the new WPicture for cover page image WPicture coverImage = new WPicture(document); coverImage.LoadImage(Image.FromFile("CoverImage.png")); //Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage, HttpContext.Current.Response, HttpContentDisposition.Attachment); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim stream As New MemoryStream() 'Create the new WPicture for cover page image Dim coverImage As New WPicture(document) coverImage.LoadImage(Image.FromFile("CoverImage.png")) 'Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage, Response, HttpContentDisposition.Attachment) 'Close the document document.Close() End Sub Opens an existing document of the specified file format type from the data stream with HTML file validation options and base path for relative path to absolute path conversion. A that contains the data for this . The file format type of the document to open. The XHTML validation type used to validate the html file, if the is . Base path which is used to convert the relative path in the HTML file to absolute path. This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open an existing document of the specified type from data stream with XHTML validation options. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict, "basepath"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict, basepath) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type from the data stream with HTML validation options. A that contains the data for this . The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . This method is not supported in Silverlight, WinRt, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open an existing document of the specified type from data stream with XHTML validation options. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type from the data stream. A that contains the data for this . The file format type of the document to open. The following code example demonstrates how to open an existing document of the specified type from data stream. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type from the data stream, which is protected with password. A that contains the data for this . The file format type of the document to open. The password used to decrypt the document. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. The following code example demonstrates how to open a protected document of the specified type from data stream. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx, "password"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx, "password") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Saves this to the specified stream in the specified file format type. The Stream where the document will be saved. The format in which the document is saved. The following code example demonstrates how to save the document to MemoryStream private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); MemoryStream stream = new MemoryStream(); //Save the document to stream document.Save(stream, FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim stream As New MemoryStream() 'Save the document to stream document.Save(stream, FormatType.Docx) 'Close the document document.Close() End Sub Release the resources occupied by this instance. Converts the whole document into an images. An ImageType that specifies the type of the image to render. Return the array of images that contains the each document page as single image. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages and each page content may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to convert the Word document to image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to image Image[] images = wordDocument.RenderAsImages(ImageType.Bitmap); //Close the document wordDocument.Close(); int i = 0; foreach (Image image in images) { //Save the images as jpeg image.Save("WordToImage_" + i + ".jpeg", ImageFormat.Jpeg); i++; } } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to image Dim images As Image() = wordDocument.RenderAsImages(ImageType.Bitmap) 'Close the document wordDocument.Close() Dim i As Integer = 0 For Each image As Image In images 'Save the images as jpeg image.Save("WordToImage_" & i & ".jpeg", ImageFormat.Jpeg) i += 1 Next End Sub Converts the specified document page into image. The zero based page index that represent which page to convert. An ImageFormat that specifies the format of the saved image. An that represent specified document page as image. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to convert the Word document to image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to stream Stream imageStream = wordDocument.RenderAsImages(2, System.Drawing.Imaging.ImageFormat.Bmp); //Close the document wordDocument.Close(); //Convert the stream to Image Image image = Image.FromStream(imageStream); //Save the image as jpeg image.Save("WordToImage.jpeg", ImageFormat.Jpeg); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to stream Dim imageStream As Stream = wordDocument.RenderAsImages(2, System.Drawing.Imaging.ImageFormat.Bmp) 'Close the document wordDocument.Close() 'Convert the stream to Image Dim image As Image = Image.FromStream(imageStream) 'Save the image as jpeg image.Save("WordToImage.jpeg", ImageFormat.Jpeg) End Sub Converts the specified document page into image. The zero based page index that represent which page to convert. An ImageType that specifies the type of the image to render. An that represent specified document page as image. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to convert the specified Word document page as image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to image Image image = wordDocument.RenderAsImages(2, ImageType.Bitmap); //Close the document wordDocument.Close(); //Save the image image.Save("WordToImage.jpeg", ImageFormat.Jpeg); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to image Dim image As Image = wordDocument.RenderAsImages(2, ImageType.Bitmap) 'Close the document wordDocument.Close() 'Save the images as jpeg image.Save("WordToImage_" & i & ".jpeg", ImageFormat.Jpeg) End Sub Converts the specified range of document pages into images The zero based page index that represents the starting document page index. The total number of pages to convert. An ImageType That specifies the type of the image to render. An array of images that represent specified range of document pages as images. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to convert the Word document to image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to image Image[] images = wordDocument.RenderAsImages(0, 2, ImageType.Bitmap); //Close the document wordDocument.Close(); int i = 0; foreach (Image image in images) { //Save the images as jpeg image.Save("WordToImage_" + i + ".jpeg", ImageFormat.Jpeg); i++; } } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to image Dim images As Image() = wordDocument.RenderAsImages(0, 2, ImageType.Bitmap) 'Close the document wordDocument.Close() Dim i As Integer = 0 For Each image As Image In images 'Save the images as jpeg image.Save("WordToImage_" & i & ".jpeg", ImageFormat.Jpeg) i += 1 Next End Sub Finds the text based on specified regular expression. The used to find the text. The that contains the found text in the document. The following code example demonstrates how to find a particular text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find(new Regex("panda")); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find(New Regex("panda")) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the first entry of specified pattern of text in single-line mode which is extended to several paragraph in the document. The used to find the text. The collection that contains the found text in the document. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine(new Regex("First paragraph Second paragraph")); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine(new Regex("First paragraph Second paragraph")) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the text based on specified string, taking into the consideration of caseSensitive and wholeWord options. A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. The following code example demonstrates how to find a particular text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find("panda", true, true); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find("panda", true, true) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the first entry of specified pattern of text in single-line mode which is extended to several paragraph in the document, taking into the consideration of caseSensitive and wholeWord options. A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The collection that contains the found text in the document. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine("First paragraph Second paragraph", true, false); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine("First paragraph Second paragraph", True, False) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds and returns all entries of the specified regular expression. The used to find the text. The collection that contains all the entries of the found text in the document. The following code example demonstrates how to search a particular text and highlight it. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the occurrence of the Word "panda" in the document TextSelection[] textSelection = document.FindAll(new Regex("panda")); //Iterate through each occurrence and highlight it foreach (TextSelection selection in textSelection) { IWTextRange textRange = selection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.Yellow; } //Save and Close the document document.Save("Result.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the occurrence of the word "panda" in the document Dim textSelection As TextSelection() = document.FindAll(new Regex("panda")) 'Iterate through each occurrence and highlight it For Each selection As TextSelection In textSelection Dim textRange As IWTextRange = selection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.Yellow Next document.Save("Result.docx") document.Close() End Sub Finds and returns all entries of the specified string, taking into the consideration of caseSensitive and wholeWord options. A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The collection that contains all the entries of the found text in the document. The following code example demonstrates how to search a particular text and highlight it. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the occurrence of the Word "panda" in the document TextSelection[] textSelection = document.FindAll("panda", false, true); //Iterate through each occurrence and highlight it foreach (TextSelection selection in textSelection) { IWTextRange textRange = selection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.Yellow; } //Save and Close the document document.Save("Result.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the occurrence of the word "panda" in the document Dim textSelection As TextSelection() = document.FindAll("panda", false, true) 'Iterate through each occurrence and highlight it For Each selection As TextSelection In textSelection Dim textRange As IWTextRange = selection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.Yellow Next document.Save("Result.docx") document.Close() End Sub Replaces all entries of the given with the replace string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Replace all occurrence of a particular text in the document document.Replace(new Regex("Paragraph"),"paragraph"); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Replace all occurrence of a particular text in the document document.Replace(New Regex("Paragraph"), "paragraph") 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with replace string, taking into consideration of case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Replace all occurrence of a particular text in the document document.Replace("Paragraph","paragraph", false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Replace all occurrence of a particular text in the document document.Replace("Paragraph", "paragraph", False, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive and whole word options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, true, false); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, True, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true if to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, true, false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, True, False, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces the specified regular expression with a in the document. The used to find the text. The specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(new Regex("Giant panda"), selection); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(New Regex("Giant panda"), selection) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the along with its formatting. The used to find the text. The specifies the text to replace. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(new Regex("Giant panda"), selection, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(New Regex("Giant panda"), selection, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive, whole word options. The string represents the text to be found. The text body part to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. if it specifies whole word, set to true. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, true, false); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, True, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The text body part to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false.. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, true, false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, True, False, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the . The used to find the text. The text body part to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace(new Regex("Giant panda"), bodyPart); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace(New Regex("Giant panda"), bodyPart) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the along with its formatting. The used to find the text. The text body part to replace. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace(new Regex("Giant panda"), bodyPart, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace(New Regex("Giant panda"), bodyPart, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with another Word document, taking into consideration case sensitive, whole word options. The string represents the text to be found. The Word document to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Load the another existing Word document to replace WordDocument replaceDocument = new WordDocument("Replace.docx"); //Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, true, false); replaceDocument.Close(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Load the another existing Word document to replace Dim replaceDocument As New WordDocument("Replace.docx") 'Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, True, False) replaceDocument.Close(); 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with another Word document, taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The Word document to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Load the another existing Word document to replace WordDocument replaceDocument = new WordDocument("Replace.docx"); //Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, true, false, true); replaceDocument.Close(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Load the another existing Word document to replace Dim replaceDocument As New WordDocument("Replace.docx") 'Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, True, False, True) replaceDocument.Close(); 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the another word document along with its formatting. The used to find the text. The Word document to replace. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Load the another existing Word document to replace WordDocument replaceDocument = new WordDocument("Replace.docx"); //Replace all occurrence of a particular regular expression with the another document and close the document document.Replace(new Regex("Giant panda"), replaceDocument, true); replaceDocument.Close(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Load the another existing Word document to replace Dim replaceDocument As New WordDocument("Replace.docx") 'Replace all occurrence of a particular regular expression with the another document and close the document document.Replace(New Regex("Giant panda"), replaceDocument, True) replaceDocument.Close(); 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Updates Paragraphs count, Word count and Character count in the document The following code example demonstrates how to update Paragraphs count, Word count and Character count in the document. //Open an input word template IWordDocument document = new WordDocument(@"Template.docx"); //Update the Paragraphs count, Word count and Character count in the document document.UpdateWordCount(); //Save and close the Word document instance. document.Save("Output.docx", FormatType.Docx); document.Close(); } 'Open an input word template Dim document As New IWordDocument("Template.docx") 'Update the Paragraphs count, Word count and Character count in the document. document.UpdateWordCount() �Save and close the Word document instance. document.Save("Output.docx", FormatType.Docx) document.Close() Updates Paragraphs count, Word count and Character count. Updates page count if performLayout set to true using Doc to PDF layouting engine. Set to true to update the page count of the document using Word to PDF layouting engine; otherwise, false. The default is false. This method is not supported in Silverlight, WinRT, Universal, Universal Windows Platform, MVC6, Xamarin and windows phone platforms. The following code example demonstrates how to update Page count, Paragraphs count, Word count and Character count in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input word template WordDocument document = new WordDocument(@"Template.docx"); //Update the Page count, Paragraphs count, Word count and Character count in the document document.UpdateWordCount(true); //Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input word template Dim document As New WordDocument("Template.docx") 'Update the Page count, Paragraphs count, Word count and Character count in the document. document.UpdateWordCount(True) �Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Updates fields present in the document. Updating of NUMPAGES field and Cross Reference field with Page number and Paragraph number options are not supported in Silverlight, WinRT, Universal and Windows Phone platforms. Currently group shapes, drawing canvas, and table auto resizing are not supported in Word to PDF lay outing, and this may lead to update incorrect page number and total number of pages. While updating NUMPAGES field and Cross Reference field with Page number and Paragraph number options uses makes use of our Word to PDF layouting engine which may lead to take some considerable amount of performance to update the above mentioned fields. The following code example demonstrates how to update the fields present in Word document. //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Input.docx", FormatType.Docx); //Updates the fields present in a document. document.UpdateDocumentFields(); document.Save("Result.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Input.docx", FormatType.Docx) 'Updates the fields present in a document. document.UpdateDocumentFields() document.Save("Result.docx", FormatType.Docx) document.Close() Updates the Alternate chunks present in the Word document The following code example demonstrates how to update the Alternate chunks present in Word document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Input.docx", FormatType.Docx); //Updates the Alternate chunks present in a document. document.UpdateAlternateChunks(); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Input.docx", FormatType.Docx) 'Updates the Alternate chunks present in a document. document.UpdateAlternateChunks() document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Update Table of contents in the document. Updating TOC makes use of our Word to PDF layouting engine which may lead to the updation of incorrect page number due to its limitations. Also use of WOrd to PDF layout engine may lead to take some considerable amount of performance to update the page numbers. The following code example demonstrates how to update a TOC in an existing word document. //Open an input word template WordDocument document = new WordDocument(@"Template.docx"); //Update the table of contents. document.UpdateTableOfContents(); //Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Open an input word template Dim document As New WordDocument("Template.docx") 'Update the table of contents. document.UpdateTableOfContents() 'Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx) document.Close() Replaces all entries of given string which is extended to several paragraphs in the document with replace string, taking into consideration of case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with simple text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine("First paragraph Second paragraph", "Replaced paragraph", true, false); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine("First paragraph Second paragraph", "Replaced paragraph", True, False) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of the specified pattern text, which is extended to several paragraph, with replace text. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with simple text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine(new Regex("First paragraph Second paragraph"), "Replaced paragraph"); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine(New Regex("First paragraph Second paragraph"), "Replaced paragraph") 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string which is extended to several paragraph in the document with , taking into consideration case sensitive and whole word options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with another text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine("First paragraph Second paragraph", selection, true, false); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine("First paragraph Second paragraph", selection, True, False) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression text which is extended to several paragraph in the document with the . The used to find the text. The text selection to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with another text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine(new Regex("First paragraph Second paragraph"), selection); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine(New Regex("First paragraph Second paragraph"), selection) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string which is extended to several paragraphs in the document with , taking into consideration case sensitive, whole word options. The string represents the text to be found. The text body part to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. if it specifies whole word, set to true. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with . private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.ReplaceSingleLine("First paragraph Second paragraph", bodyPart, true, false); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.ReplaceSingleLine("First paragraph Second paragraph", bodyPart, True, False) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression text which is extended to several paragraph in the document with the . The used to find the text. The text body part to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with . private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.ReplaceSingleLine(new Regex("First paragraph Second paragraph"), bodyPart); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.ReplaceSingleLine(New Regex("First paragraph Second paragraph"), bodyPart) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Finds the next entry of the specified text from the specified text body item, taking into the consideration of caseSensitive and wholeWord options. The that represents the start body item at which search starts (paragraph or table). A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find("as graphical contents", false, true); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, "paragraph", true, false); //Get the found text as single text range WTextRange range = textSelection.GetAsOneRange(); //Set bold formatting range.CharacterFormat.Bold = true; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find("as graphical contents", false, true) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, "paragraph", true, false) 'Get the found text as single text range Dim range As WTextRange = textSelection.GetAsOneRange() 'Set bold formatting range.CharacterFormat.Bold = True 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the next entry of the specified regular expression from the specified text body item. The that represents the start body item at which search starts (paragraph or table). The used to find the text. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find(new Regex("as graphical contents")); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, new Regex("paragraph")); //Get the found text as single text range WTextRange range = textSelection.GetAsOneRange(); //Set bold formatting range.CharacterFormat.Bold = true; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find("as graphical contents") 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, "paragraph") 'Get the found text as single text range Dim range As WTextRange = textSelection.GetAsOneRange() 'Set bold formatting range.CharacterFormat.Bold = True 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the next entry of the specified text from the specified text body item in single-line mode which is extended to several paragraph in the document, taking into the consideration of caseSensitive and wholeWord options. The that represents the start body item at which search starts (paragraph or table). A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence which is extended to several paragraphs in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine("First paragraph Second paragraph", true, false); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, "First paragraph Second paragraph", true, false); foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set italic formatting WTextRange text = textSelection.GetAsOneRange(); text.CharacterFormat.Italic = true; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine("First paragraph Second paragraph", True, False) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, "First paragraph Second paragraph", True, False) For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set italic formatting Dim text As WTextRange = textSelection.GetAsOneRange() text.CharacterFormat.Italic = True Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the next entry of the specified pattern of text in single-line mode which is extended to several paragraph in the document. The that represents the start body item at which search starts (paragraph or table). The used to find the text. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence which is extended to several paragraphs in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine("First paragraph Second paragraph", true, false); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, new Regex("First paragraph Second paragraph")); foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set italic formatting WTextRange text = textSelection.GetAsOneRange(); text.CharacterFormat.Italic = true; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine("First paragraph Second paragraph", True, False) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, new Regex("First paragraph Second paragraph")) For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set italic formatting Dim text As WTextRange = textSelection.GetAsOneRange() text.CharacterFormat.Italic = True Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Resets the find next of . Creates a new paragraph item instance. A represents the type of paragraph item to create. The this method created. Removes the macros in the document. The following code example demonstrates how to remove macros from the Word document. This method removes the macros from DOCM and DOTM format files. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the document with macros WordDocument document = new WordDocument("Sample.docm"); //Check whether the document has macros and remove them if (document.HasMacros) document.RemoveMacros(); //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the document with macros Dim document As New WordDocument("Sample.docm") 'Check whether the document has macros and remove them If document.HasMacros Then document.RemoveMacros() End If 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Gets or sets the object for converting chart to image In Word to PDF conversion, to preserve the charts as images in the generated PDF document, this must be initialized. Otherwise the charts will not be exported to the converted PDF ChartToImageConverter is supported from .NET Framework 4.0 onwards. The following code example demonstrates how to initialize the to preserve the charts as images in the generated PDF document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to pdf conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Create an instance of DocToPDFConverter DocToPDFConverter converter = new DocToPDFConverter(); //Convert Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Close the instance of Word document object wordDocument.Close(); //Save the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Close the instance of PDF document object pdfDocument.Close(true); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to pdf conversion /// wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Create an instance of DocToPDFConverter Dim converter As New DocToPDFConverter() 'Convert Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Close the instance of document object wordDocument.Close() 'Save the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Close the instance of document object pdfDocument.Close(True) End Sub Gets a instance that represents the font settings of the Word document. Read-only. The instance that represents the font settings of the Word document. The following code example demonstrates how to initialize the to perform font substitution when a specified font is not installed in the production environment. // Loads an existing Word document. WordDocument wordDocument = new WordDocument("template.docx", FormatType.Docx); // Initializes the SubstituteFont event to perform font substitution during Word to PDF conversion. wordDocument.FontSettings.SubstituteFont += new SubstituteFontEventHandler(SubstituteFont); // Creates an instance of DocToPDFConverter. DocToPDFConverter converter = new DocToPDFConverter(); // Converts the Word document into PDF document. PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); // Closes the instance of Word document object. wordDocument.Close(); // Saves the PDF file. pdfDocument.Save("WordtoPDF.pdf"); // Closes the instance of PDF document object. pdfDocument.Close(true); private void SubstituteFont(object sender, SubstituteFontEventArgs args) { // Sets the alternate font when a specified font is not installed in the production environment. if (args.OrignalFontName == "Arial Unicode MS") args.AlternateFontName = "Arial"; else args.AlternateFontName = "Times New Roman"; } ' Loads an existing Word document. Dim wordDocument As New WordDocument("template.docx", FormatType.Docx) ' Initializes the SubstituteFont event to perform font substitution during Word to PDF conversion. AddHandler wordDocument.FontSettings.SubstituteFont, AddressOf SubstituteFont ' Creates an instance of DocToPDFConverter. Dim converter As New DocToPDFConverter() ' Converts the Word document into PDF document. Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) ' Closes the instance of document object. wordDocument.Close() ' Saves the PDF file . pdfDocument.Save("WordtoPDF.pdf") ' Closes the instance of document object. pdfDocument.Close(True) Private Sub SubstituteFont(ByVal sender As Object, ByVal args As SubstituteFontEventArgs) ' Sets the alternate font when a specified font is not installed in the production environment. If args.OrignalFontName = "Arial Unicode MS" Then args.AlternateFontName = "Arial" Else args.AlternateFontName = "Times New Roman" End If End Sub Gets or sets the footnote separators of the document. The instance used to specify the footnote separator of this . Gets or sets the endnote separators of the document. The instance used to specify the endnote separator of this . Gets or sets the default tab stop position value measured in points. The width of the default tab. Gets a collection that represents all the built-in document properties for the specified document. Read-only. Gets a object that represents the attached template of the document. Read-only. Attached template of the document Gets or sets a value indicating whether to automatically update styles of the document from the attached template each time the document is opened. Default value is false. True if the styles of the document are updated to from the attached template;otherwise, false. Gets a collection that represents all the custom document properties for the specified document. Read-only. Gets a collection that represents all the sections in the document. Read-Only. A Sections collection represents all the in this Gets a collection that represents all the styles in the document. Read-Only. A collection represents all the in this Gets a collection that represents all the list styles in the document. Read-Only. All the in this . Gets a collection that represents all the bookmarks in the document. Read-Only. Gets a collection that represents all the textboxes in the document. Read-Only. A collection represents all the in this . Gets a collection that represents all the comments in the document. Read-Only. Gets the last of the document. Read-Only. The represents the last section of this The following code example demonstrates how to retrieve the last section of the document //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Retrieve the last section of the document and add new paragraph document.LastSection.AddParagraph().AppendText("Adding new paragraph to the document"); //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Retrieve the last section of the document and add new paragraph document.LastSection.AddParagraph().AppendText("Adding new paragraph to the document") 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets the last of the document. Read-only. The represents the last paragraph of this The following code example demonstrates how to retrieve the last paragraph of the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the last paragraph back color as Blue document.LastParagraph.ParagraphFormat.BackColor = Color.Blue; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the last paragraph back color as Blue document.LastParagraph.ParagraphFormat.BackColor = Color.Blue 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the numbering format for the endnotes in the document. The for the endnotes in the Word document The following code example demonstrates how to specify the endnote number format in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote format document.EndnoteNumberFormat = FootEndNoteNumberFormat.Arabic; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote format document.EndnoteNumberFormat = FootEndNoteNumberFormat.Arabic 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the numbering format for the footnotes in the document. The for the footnotes in the Word document The following code example demonstrates how to specify the footnote number format in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote number format document.FootnoteNumberFormat = FootEndNoteNumberFormat.UpperCaseRoman; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote number format document.FootnoteNumberFormat = FootEndNoteNumberFormat.UpperCaseRoman 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the restart index for the endnotes in the document. The following code example demonstrates how to specify the endnote restart index number in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote restart index number document.RestartIndexForEndnote = EndnoteRestartIndex.RestartForEachSection; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote restart index number document.RestartIndexForEndnote = EndnoteRestartIndex.RestartForEachSection 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets endnotes position in the document. The for the endnotes in the document The following code example demonstrates how to specify the endnote position in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote position at end of each section document.EndnotePosition = EndnotePosition.DisplayEndOfSection; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote position at end of each section document.EndnotePosition = EndnotePosition.DisplayEndOfSection 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the restart index for the footnotes in the document. The following code example demonstrates how to specify the footnote restart index number in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote restart index number document.RestartIndexForFootnotes = FootnoteRestartIndex.RestartForEachPage; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote restart index number document.RestartIndexForFootnotes = FootnoteRestartIndex.RestartForEachPage 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets footnotes position in the document. The for the footnote in the document The following code example demonstrates how to specify the footnote position in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote position at immediately beneath text document.FootnotePosition = FootnotePosition.PrintImmediatelyBeneathText; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote position at immediately beneath text document.FootnotePosition = FootnotePosition.PrintImmediatelyBeneathText 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets a watermark for the document. A text/picture that appears behind the document Gets the object that represents the background effects of the document. Read-only. The background effects of the document Gets a object that represents the mail merge functionality of the document. Read-only. The instance used to replace the with value in the document Gets or sets the document protection type. The will prevent the document from unintentional editing. The following code example demonstrates how to protect the changing of document content. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //protect the document from editing document.ProtectionType = Syncfusion.DocIO.ProtectionType.AllowOnlyReading; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'protect the document from editing document.ProtectionType = Syncfusion.DocIO.ProtectionType.AllowOnlyReading 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the document view type. A represents the display options of this in MS Word application Gets or sets a value indicating whether to throw exceptions for unsupported elements. The default is false. True then throw the exception for unsupported elements; otherwise, false. Gets or sets the initial footnote number of the document. The following code example demonstrates how to specify the endnote number format in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote initial number document.InitialFootnoteNumber = 3; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote initial number document.InitialFootnoteNumber = 3 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the initial endnote number of the document. The following code example demonstrates how to specify the endnote initial number in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote initial number document.InitialEndnoteNumber = 5; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote initial number document.InitialEndnoteNumber = 5 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the collection that represents the child entities of this . Read-only. The child entities. Gets or sets the HTML validate option. This property is not supported in Silverlight, Universal, Windows Phone, MVC6 and Xamarin application. Gets or sets the background image of a document. Gets a collection that represents the variables stored in the document. Read-only. Variables collection contains a Key-Value pair of variable name and its value The following code snippet illustrate how to add a DocVariable field in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("First Name of the customer: "); //Add the DocVariable field with Variable name and its type paragraph.AppendField("FirstName", FieldType.FieldDocVariable); paragraph = section.AddParagraph(); paragraph.AppendText("Last Name of the customer: "); //Add the DocVariable field with Variable name and its type paragraph.AppendField("LastName", FieldType.FieldDocVariable); //Add the value for variable in WordDocument.Variable collection document.Variables.Add("FirstName", "Jeff"); document.Variables.Add("LastName", "Smith"); //Update the document fields document.UpdateDocumentFields(); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("First Name of the customer: ") 'Add the DocVariable field with Variable name and its type paragraph.AppendField("FirstName", FieldType.FieldDocVariable) paragraph = section.AddParagraph() paragraph.AppendText("Last Name of the customer: ") 'Add the DocVariable field with Variable name and its type paragraph.AppendField("LastName", FieldType.FieldDocVariable) 'Add the value for variable in WordDocument.Variable collection document.Variables.Add("FirstName", "Jeff") document.Variables.Add("LastName", "Smith") 'Update the document fields document.UpdateDocumentFields() document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the document properties. Read-only. The instance used to specify the document version, form field shading and hyphenation properties of the document Gets a value indicating whether the document has tracked changes. Read-only. True if the document has tracked changes; otherwise, false. Gets or sets a value indicating whether edits are tracked as revision. The default is false. True if track changes in on; otherwise, false. The following code snippet shows how to track the edits as revisions in the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Enable the TrackChanges to track the edits as revision document.TrackChanges = true; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Enable the TrackChanges to track the edits as revision document.TrackChanges = True 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether replace only the first occurrence. The default is false. True replace only the first occurrence in the document; false replace all the occurrence. The following code snippet illustrates how to replace the first occurrence of a particular text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Set to replace only the first occurrence of a particular text document.ReplaceFirst = true; //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace("paragraph", bodyPart, false, true, true); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Set to replace only the first occurrence of a particular text document.ReplaceFirst = True 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace("paragraph", bodyPart, False, True, True) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Gets or sets the HTML import settings for HTML to Word conversion. This property is not supported in MVC6. Gets the document save options. Read-only. A that represents the save options for this Gets or sets a that represents the options to import the source document contents to the destination document. Default value is UseDestinationStyles. This property will not be considered while executing ImportContent method and its overloads in class. If invalid combination applied, then it will be skipped or auto corrected based on priority. //Creates an new instance of WordDocument class. WordDocument srcDocument = new WordDocument("SourceTemplate.docx"); // Creates an new instance of WordDocument class. WordDocument destDocument = new WordDocument("DestinationTemplate.docx"); //Import the contents of source document at the end of destination document with destination styles. destDocument.ImportOptions = ImportOptions.UseDestinationStyles; destDocument.Sections.Add(srcDocument.LastSection.Clone()); // Releases the resources occupied by WordDocument instance. srcDocument.Close(); // Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. destDocument.Close(); 'Creates an new instance of WordDocument class. Dim srcDocument As New WordDocument("SourceTemplate.docx") ' Creates an new instance of WordDocument class. Dim destDocument As New WordDocument("DestinationTemplate.docx") 'Import the contents of source document at the end of destination document with destination styles. destDocument.ImportOptions = ImportOptions.UseDestinationStyles destDocument.Sections.Add(srcDocument.LastSection.Clone()) ' Releases the resources occupied by WordDocument instance. srcDocument.Close() ' Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. destDocument.Close() This flag will be useful for importing styles behavior switching in the scenario of style exist in destination document with same name and type, but different formatting. Gets or sets a value indicating whether to import styles with new unique name, if style exist in destination document with same name, type and different formatting. Default value is true True: if import styles with same name, type and different formatting into destination document by renaming uniquely; otherwise, false. This property is used for defining styles import behavior in the scenario of style exist in destination document with same name and type, but different formatting. Setting this property to true, styles with same name, type and different formatting will be imported into destination document from source document with new unique name. Setting it to false, styles with same name, type and different formatting will not be imported and instead the document contents will use the existing matched (same name and type) style. // Creates an new instance of WordDocument class. WordDocument srcDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal(); // Sets bold to character format of "Normal" style to differentiate source and destination document. (srcDocument.Styles.FindByName("Normal") as WParagraphStyle).CharacterFormat.Bold = true; // Creates an new instance of WordDocument class. WordDocument destDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal(); // Sets false value to exclude importing duplicate styles to destination document. destDocument.ImportStyles = false; destDocument.Sections.Add(srcDocument.LastSection.Clone()); // Releases the resources occupied by WordDocument instance. srcDocument.Close(); // Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. destDocument.Close(); ' Creates an new instance of WordDocument class. Dim srcDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal() ' Sets bold to character format of "Normal" style to differentiate source and destination document. TryCast(srcDocument.Styles.FindByName("Normal"), WParagraphStyle).CharacterFormat.Bold = True ' Creates an new instance of WordDocument class. Dim destDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal() ' Sets false value to exclude importing duplicate styles to destination document. destDocument.ImportStyles = False destDocument.Sections.Add(srcDocument.LastSection.Clone()) ' Releases the resources occupied by WordDocument instance. srcDocument.Close() ' Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. destDocument.Close() Gets or sets a value indicating whether to import styles with new unique name, if style exist in destination document with same name and different type. Default value is false True: if import styles with same name and different type into destination document by renaming uniquely; otherwise, false. This property is used for defining styles import behavior in the scenario of style exist in destination document with same name, but different type. Setting this property to true, styles with same name and different type will be imported into destination document from source document with new unique name. Setting it to false, styles with same name and different typewill not be imported and instead the document contents will use default style. // Creates an new instance of WordDocument class. WordDocument srcDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal(); // Creates a paragraph style (with name "Test") and adds into source document. WParagraphStyle paragraphStyle = new WParagraphStyle(srcDocument); paragraphStyle.Name = "Test"; srcDocument.Styles.Add(paragraphStyle); // Creates an new instance of WordDocument class. WordDocument destDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal(); // Creates a character style (with same paragraph styel name in source) and adds into destination document. WCharacterStyle characterStyle = new WCharacterStyle(destDocument); characterStyle.Name = "Test"; destDocument.Styles.Add(characterStyle); // Sets true value to include importing duplicate styles (mismatched with types) to destination document. destDocument.ImportStylesOnTypeMismatch = true; destDocument.Sections.Add(srcDocument.LastSection.Clone()); // Releases the resources occupied by WordDocument instance. srcDocument.Close(); // Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. destDocument.Close(); ' Creates an new instance of WordDocument class. Dim srcDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal() ' Creates a paragraph style (with name "Test") and adds into source document. Dim paragraphStyle As New WParagraphStyle(srcDocument) paragraphStyle.Name = "Test" srcDocument.Styles.Add(paragraphStyle) ' Creates an new instance of WordDocument class. Dim destDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal() ' Creates a character style (with same paragraph styel name in source) and adds into destination document. Dim characterStyle As New WCharacterStyle(destDocument) characterStyle.Name = "Test" destDocument.Styles.Add(characterStyle) ' Sets true value to include importing duplicate styles (mismatched with types) to destination document. destDocument.ImportStylesOnTypeMismatch = True destDocument.Sections.Add(srcDocument.LastSection.Clone()) ' Releases the resources occupied by WordDocument instance. srcDocument.Close() ' Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. destDocument.Close() Gets or sets a value indicating whether to update fields in the document. if update fields, set to true. Gets the actual format type of the document which was loaded. While creating new document, it returns FormatType.Doc value. Read-only. The file format type of this Gets or sets a dictionary collections which represents the font substitution table. The key should be the font name and the value should be the alternate font name. The font substitution table contains an alternative font information for missing fonts in the document. The following code example demonstrates how to specify the alternative font information for missing fonts in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Apply the Arial font instead of the Arabic font, if the system does not contains Arabic font document.FontSubstitutionTable.Add("Arabic", "Arial"); //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Apply the Arial font instead of the Arabic font, if the system does not contains Arabic font document.FontSubstitutionTable.Add("Arabic", "Arial"); 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets a value indicating whether the document has macros. Read-only. True if the document has macros; otherwise, false. Gets the revision options for the track changes in Word to PDF conversion. A that represents the save options for this The following code example demonstrates how to set the to preserve track changes in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Collection of document sections Collection of document styles Collection of list styles Stores the sequence fields last values. Collection of bookmarks Collection of editable ranges. Collection of fields Collection of textboxes Collection of revisions Collection of meta properties Collection of Comments. Collection of Comments Extended default value for DefaultTabWidth default value for CharacterSpacingControl Document's watermark; Object which holds structured docx format objects with data stream. Field is used for FindNext functionality to define next paragraph item. Non parsed properties read from docx file. paragraphs count in document words count in document characters count in document To hold the font settings for the document. To hold the hyphentation object for the document. To hold the all floating items inside the document This flag is used for identify what are all the supported elements triggered in the Document Holds the Owner document of the alternate chunk document. Holds the track changes balloon count value. Index of the current section Index of current body item in a section Index of current paragraph item in a paragraph Index of textrange where the text starts Maintain para item index. Either it is textrange or any other paragraph items. If moving to next paragraph, then rest to 0 Index of textrange where the text ends Maintain para item index or matched end textrange index. Either it is textrange or any other paragraph items. If moving to next paragraph, then rest to 0 Index where the current text starts i.e., start position in a textrange Set as 0 if moving to next new para. For textrange only, set the value which denotes the start cut position in textrange index. Index where the current text ends i.e., end position in a textrange If the current item is matched textrange and it has match in half of the textrange means, then maintain that text end index. Otherwise always maintain as -1. Sets the default values for the section formatting. Initializes a new instance of the class from the existing file. A string that contains the name of the file from which to create the . This constructor is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. //Load an existing Word document into WordDocument instance WordDocument document = new WordDocument("Sample.docx"); //Add a new simple paragraph into the last section of the document IWParagraph paragraph = document.LastSection.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx") 'Add a new simple paragraph into the last section of the document Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing file, which is protected with password. A string that contains the name of the file from which to create the . The password used to decrypt the protected file. This constructor is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. //Load an existing Word document into WordDocument instance WordDocument document = new WordDocument("Sample.docx", "password"); //Add a new simple paragraph into the last section of the document IWParagraph paragraph = document.LastSection.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx", "password") 'Add a new simple paragraph into the last section of the document Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing file of the specified file format type. A string that contains the name of the file from which to create the . The file format type of this . This constructor is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. //Load an existing Word document into WordDocument instance WordDocument document = new WordDocument("Sample.docx", FormatType.Docx); //Add a new simple paragraph into the last section of the document IWParagraph paragraph = document.LastSection.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx", FormatType.Docx) 'Add a new simple paragraph into the last section of the document Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing file of the specified file format type with XHTML validation type. A string that contains the name of the file from which to create the . The file format type of this . The XHTML validation type used to validate the HTML file, if the is . This constructor is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. //Load an existing HTML file into WordDocument instance with Strict validation type WordDocument document = new WordDocument("Sample.html", FormatType.Html, XHTMLValidationType.Strict); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); 'Load an existing HTML file into WordDocument instance with Strict validation type Dim document As New WordDocument("Sample.html", FormatType.Html, XHTMLValidationType.[Strict]) 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing file of the specified file format type, which is protected with password. A string that contains the name of the file from which to create the . The file format type of this . The password used to decrypt the protected file. This constructor is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. //Load an existing Word document into WordDocument instance WordDocument document = new WordDocument("Sample.docx", FormatType.Docx, "password"); //Add a new simple paragraph into the last section of the document IWParagraph paragraph = document.LastSection.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx", FormatType.Docx, "password") 'Add a new simple paragraph into the last section of the document Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Gets the File Type for the Given fileName. Initializes a new instance of the class from the existing data stream of the specified file format type with XHTML validation type. A that contains the data for this . The file format type of this . The XHTML validation type used to validate the HTML file, if the is . This constructor is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. Stream htmlFile = new FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read); //Load an existing Stream into WordDocument instance with Strict validation type WordDocument document = new WordDocument(htmlFile, FormatType.Html, XHTMLValidationType.Strict); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); Dim htmlFile As Stream = New FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read) 'Load an existing Stream into WordDocument instance with Strict validation type Dim document As New WordDocument(htmlFile, FormatType.Html, XHTMLValidationType.[Strict]) 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class. //Create an instance of WordDocument class WordDocument document = new WordDocument(); //Add a new section into the Word document IWSection section = document.AddSection(); //Specify the page margins section.PageSetup.Margins.All = 50f; //Add a new simple paragraph into the section IWParagraph paragraph = section.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); 'Create an instance of WordDocument class Dim document As New WordDocument() 'Add a new section into the Word document Dim section As IWSection = document.AddSection() 'Specify the page margins section.PageSetup.Margins.All = 50F 'Add a new simple paragraph into the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing data stream. A that contains the data for this . Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Load an existing Stream into WordDocument instance WordDocument document = new WordDocument(fileStream); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Load an existing Stream into WordDocument instance Dim document As New WordDocument(fileStream) 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing data stream of the specified file format type. A that contains the data for this . The file format type of this . Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Load an existing Stream into WordDocument instance WordDocument document = new WordDocument(fileStream, FormatType.Docx); //Add a new simple paragraph into the last section of the document IWParagraph paragraph = document.LastSection.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Load an existing Stream into WordDocument instance Dim document As New WordDocument(fileStream, FormatType.Docx) 'Add a new simple paragraph into the last section of the document Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing data stream, which is protected with password. A that contains the data for this . The password used to decrypt the protected file. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Load an existing Stream into WordDocument instance WordDocument document = new WordDocument(fileStream, "password"); //Add a new simple paragraph into the last section of the document IWParagraph paragraph = document.LastSection.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Load an existing Stream into WordDocument instance Dim document As New WordDocument(fileStream, "password") 'Add a new simple paragraph into the last section of the document Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing data stream of the specified file format type, which is protected with password. A that contains the data for this . The file format type of this . The password used to decrypt the protected file. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Load an existing Stream into WordDocument instance WordDocument document = new WordDocument(fileStream, FormatType.Docx, "password"); //Add a new simple paragraph into the last section of the document IWParagraph paragraph = document.LastSection.AddParagraph(); //Add a text range into the paragraph paragraph.AppendText("Hello World!"); //Save the document in the given name and format document.Save("Document.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Load an existing Stream into WordDocument instance Dim document As New WordDocument(fileStream, FormatType.Docx, "password") 'Add a new simple paragraph into the last section of the document Dim paragraph As IWParagraph = document.LastSection.AddParagraph() 'Add a text range into the paragraph paragraph.AppendText("Hello World!") 'Save the document in the given name and format document.Save("Document.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() Initializes a new instance of the class from the existing WordDocument instance. The instance used to create this . Returns the format type based on the file extension of the given file name. Creates a new paragraph. The this method created. Adds a single with one , when the document contains no sections. The following code example demonstrates how to add new section with one paragraph to the empty Word document private void Button1_Click(System.Object sender, System.EventArgs e) { //Creates a new Word document. WordDocument document = new WordDocument(); //Add a section and a paragraph in the empty document document.EnsureMinimal(); IWParagraph paragraph = document.LastParagraph; //Append text to the last paragraph of the document paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"); //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Creates a new Word document. Dim document As New WordDocument() 'Add a section and a paragraph in the empty document document.EnsureMinimal() Dim paragraph As IWParagraph = document.LastParagraph 'Append text to the last paragraph of the document paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua") 'Save and close the Word document document.Save("Comment.docx", FormatType.Docx) document.Close() End Sub Adds a new section to document. The this method creates. The following code example demonstrates how to add a new section to document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("A new section is added to the document."); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("A new section is added to the document.") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new paragraph style to the document. A String that contains the name of the newly created The this method creates. The following code example demonstrates how to create a custom paragraph style and apply it to a paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Create user defined style IWParagraphStyle style = document.AddParagraphStyle("User_defined_style"); style.ParagraphFormat.BackColor = Color.LightGray; style.ParagraphFormat.AfterSpacing = 18f; style.ParagraphFormat.BeforeSpacing = 18f; style.ParagraphFormat.Borders.BorderType = Syncfusion.DocIO.DLS.BorderStyle.DotDash; style.ParagraphFormat.Borders.LineWidth = 0.5f; style.ParagraphFormat.LineSpacing = 15f; style.CharacterFormat.FontName = "Calibri"; style.CharacterFormat.Italic = true; //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); IWTextRange text = paragraph.AppendText("A new paragraph style is created and is applied to this paragraph."); //Apply the new style to paragraph paragraph.ApplyStyle("User_defined_style"); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Create user defined style Dim style As IWParagraphStyle = document.AddParagraphStyle("User_defined_style") style.ParagraphFormat.BackColor = Color.LightGray style.ParagraphFormat.AfterSpacing = 18.0F style.ParagraphFormat.BeforeSpacing = 18.0F style.ParagraphFormat.Borders.BorderType = Syncfusion.DocIO.DLS.BorderStyle.DotDash style.ParagraphFormat.Borders.LineWidth = 0.5F style.ParagraphFormat.LineSpacing = 15.0F style.CharacterFormat.FontName = "Calibri" style.CharacterFormat.Italic = True 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() Dim text As IWTextRange = paragraph.AppendText("A new paragraph style is created and is applied to this paragraph.") 'Apply the new style to paragraph paragraph.ApplyStyle("User_defined_style") 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Adds new character style to document. A String that contains the name of the newly created The newly created Adds new list style to document. The of the new created. A String that contains the name of the newly added list style. The this method creates. The following code example demonstrates how to how to create user defined list styles. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new list style to the document ListStyle listStyle = document.AddListStyle(ListType.Numbered, "UserdefinedList"); WListLevel levelOne = listStyle.Levels[0]; //Define the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab; levelOne.NumberPrefix = "("; levelOne.NumberSufix = ")"; levelOne.PatternType = ListPatternType.LowRoman; levelOne.StartAt = 1; levelOne.TabSpaceAfter = 5; levelOne.NumberAlignment = ListNumberAlignment.Center; WListLevel levelTwo = listStyle.Levels[1]; //Define the follow character, suffix, pattern, start index for level 1 levelTwo.FollowCharacter = FollowCharacterType.Tab; levelTwo.NumberSufix = "}"; levelTwo.PatternType = ListPatternType.LowLetter; levelTwo.StartAt = 2; //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add text to the paragraph paragraph.AppendText("User defined list - Level 0"); //Apply default numbered list style paragraph.ListFormat.ApplyStyle("UserdefinedList"); //Add second paragraph paragraph = section.AddParagraph(); paragraph.AppendText("User defined list - Level 1"); //Continue last defined list paragraph.ListFormat.ContinueListNumbering(); //Increase the level indent paragraph.ListFormat.IncreaseIndentLevel(); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new list style to the document Dim listStyle As ListStyle = document.AddListStyle(ListType.Numbered, "UserdefinedList") Dim levelOne As WListLevel = listStyle.Levels(0) 'Define the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab levelOne.NumberPrefix = "(" levelOne.NumberSufix = ")" levelOne.PatternType = ListPatternType.LowRoman levelOne.StartAt = 1 levelOne.TabSpaceAfter = 5 levelOne.NumberAlignment = ListNumberAlignment.Center Dim levelTwo As WListLevel = listStyle.Levels(1) 'Define the follow character, suffix, pattern, start index for level 1 levelTwo.FollowCharacter = FollowCharacterType.Tab levelTwo.NumberSufix = "}" levelTwo.PatternType = ListPatternType.LowLetter levelTwo.StartAt = 2 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add text to the paragraph paragraph.AppendText("User defined list - Level 0") 'Apply default numbered list style paragraph.ListFormat.ApplyStyle("UserdefinedList") 'Add second paragraph paragraph = section.AddParagraph() paragraph.AppendText("User defined list - Level 1") 'Continue last defined list paragraph.ListFormat.ContinueListNumbering() 'Increase the level indent paragraph.ListFormat.IncreaseIndentLevel() 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Returns a string that contains whole document content as text. The text this document contains. This method is not supported in Silverlight, Windows Phone and Xamarin platforms. The following code example demonstrates how to retrieve the Word document contents as a plain text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the document text and close the document string text = document.GetText(); document.Close(); //Create new Word document WordDocument newdocument = new WordDocument(); //Add new section IWSection section = newdocument.AddSection(); //Add new paragraph IWParagraph paragraph = section.AddParagraph(); //Append the text to the paragraph paragraph.AppendText(text); //Save and close the document newdocument.Save("Sample.docx"); newdocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the document text and close the document Dim text As String = document.GetText() document.Close() 'Create new Word document Dim newdocument As New WordDocument() 'Add new section Dim section As IWSection = newdocument.AddSection() 'Add new paragraph Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to the paragraph paragraph.AppendText(text) 'Save and close the document newdocument.Save("Sample.docx") newdocument.Close() End Sub Creates the duplicate copy of this instance. The this method duplicated. The following code example demonstrates how to clone the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an existing document WordDocument inputTemplateDoc = new WordDocument("Template.docx"); //Create a clone of Input Template WordDocument clonedDocument = inputTemplateDoc.Clone(); //Close the input template document instance inputTemplateDoc.Close(); //Save and Close the cloned document instance clonedDocument.Save("ClonedDocument.docx"); clonedDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an existing document Dim inputTemplateDoc As New WordDocument(fileName) 'Create a clone of Input Template Dim clonedDocument As WordDocument = inputTemplateDoc.Clone() 'Close the input template document instance inputTemplateDoc.Close() 'Save and Close the cloned document instance clonedDocument.Save("ClonedDocument.docx") clonedDocument.Close() End Sub Imports the specified section into the current document. The source whose contents are appended at the end of the current instance. The following code example demonstrates how to import the section into the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Open the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Import the last section of source document at the end of destination document destinationDocument.ImportSection(sourceDocument.LastSection); //Close the document instance sourceDocument.Close(); //Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Open the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Import the last section of source document at the end of destination document destinationDocument.ImportSection(sourceDocument.LastSection) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Import contents and styles from the source document to the destination document. The source whose contents are appended at the end of the current instance. When source and destination documents have styles with the same names, then Guid is added as a suffix to the name of the imported styles in the destination document. Due to the above duplication of the same style will increase the file size of the document and also it may lead to Out of memory exception if the machine has some limited amount memory. To resolve the duplication of the same style from source to destination document, use ImportContent(IWordDocument doc, bool importStyles) methods with false value for "importStyle" parameter. The following code example demonstrates how to import the contents from source document into destination document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Open the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument); //Close the document instance sourceDocument.Close(); //Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Open the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Import contents from the source document to the destination document with various import options. The source whose contents are appended at the end of the current instance. The that represents the options to import the source document contents to the destination document. Essential DocIO supports the importing contents from the source document to the destination document with various import options similar to Microsoft Word copy and paste options. Following are the import options supported by Essential DocIO. KeepSourceFormatting - Imports the contents from the source document, applies the default style (Normal), and preserves all other formatting as direct formatting in order to preserve the contents as in source document. Header and footer contents will be imported similar to the UseDestinationStyles option. MergeFormatting - Imports the contents of the source document to the destination document, and applies the formatting of surrounding content to the destination document. Merges formatting of the contents surrounding it by preserving some of the source formatting (such as bold, italic, underline, and so on). Header and footer contents are imported similar to the UseDestinationStyles option. KeepTextOnly - Imports only the text from the source document to the destination document (tables, textboxes, pictures, headers, footers, and so on, are removed), similar to content copied from a text file (.txt). UseDestinationStyles - Imports the contents of the source document to the destination document, and applies the styles present in the destination document, or imports the source style to the destination document when there is no style with the same name in the destination document. The following code example demonstrates how to import the contents from source document into destination document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Open the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles); //Close the document instance sourceDocument.Close(); //Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Open the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, ImportOptions.UseDestinationStyles) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Imports the document text. The doc. Import contents from the source document to the destination document by specifying whether to import styles that have the same name between the source and destination document. The source whose contents are appended at the end of the current instance. Set to true to import all the styles from the source document to destination document; otherwise, false. When importStyles is set to false, all the contents are imported; but, the styles of the source document with style names that do not match with the styles in the destination document are not imported. When the style names match the destination style names, then the same name is applied to the imported contents. This behavior is similar to the Microsoft Word paste option - UseDestinationStyles. When importStyles is set to true, all the contents and styles of the source document are imported to the destination document. In cases where a style in the source document has the same name as a style in the destination document, "Guid" is added as a suffix to the name of the imported style in order to preserve unique style name. Due to the above duplication of the same style will increase the file size of the document and also it may lead to Out of memory exception if the machine has some limited amount memory. The following code example demonstrates how to import the contents from source document into destination document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Open the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, true); //Close the document instance sourceDocument.Close(); //Save the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Close the document instance destinationDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Open the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Import the contents of source document at the end of destination document destinationDocument.ImportContent(sourceDocument, true) 'Close the document instance sourceDocument.Close() 'Save the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Close the document instance destinationDocument.Close() End Sub Adds the built-in style to the collection. The that represents the added built-in style of the document. The this method added to collection. The following code example demonstrates how to add the built-in style to the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Add the built-in style to the document style collection IStyle style = document.AddStyle(BuiltinStyle.Heading5); //Apply the added built-in style to the last paragraph of the document document.LastParagraph.ApplyStyle(style.Name); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Add the built-in style to the document style collection Dim style As IStyle = document.AddStyle(BuiltinStyle.Heading5) 'Apply the added built-in style to the last paragraph of the document document.LastParagraph.ApplyStyle(style.Name) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Get the built in table style. Checks the table normal style. Updates the next style for paragraph build-in style. The paragraph build-in style. Accepts changes tracked from the moment of last change acceptance. The following code example demonstrates how to accept the tracked changes in the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Check whether document has tracked changes if (document.HasChanges) //Accept the changes made to the document document.AcceptChanges(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Check whether document has tracked changes If document.HasChanges Then 'Accept the changes made to the document document.AcceptChanges() End If 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Rejects changes tracked from the moment of last change acceptance. The following code example demonstrates how to reject the tracked changes in the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Check whether document has tracked changes if (document.HasChanges) //Reject the changes made to the document document.RejectChanges(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Check whether document has tracked changes If document.HasChanges Then 'Reject the changes made to the document document.RejectChanges() End If 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Protects the document from unintentional editing. The type of protection to be applied. The following code example demonstrates how to protect the document from unintentional editing. This method is not supported in MVC6 and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments); //Save and close the document instances document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments) 'Save and close the document instances document.Save("Sample.docx") document.Close() End Sub Protects the document from unintentional editing with secure password. The type of protection to be applied. The password used for protection. This method is not supported in MVC6 and Xamarin platforms. The following code example demonstrates how to protect the document from unintentional editing. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx", "password"); //Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments); //Save and close the document instances document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Apply the protection to the document document.Protect(ProtectionType.AllowOnlyComments, "password") 'Save and close the document instances document.Save("Sample.docx") document.Close() End Sub Resets the attributes of documentProtection to default values Protects the document with password from unauthorized access. A String used to encrypt the document. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. The following code example demonstrates how to encrypt the Word document with password. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word document WordDocument document = new WordDocument("Template.docx"); //Encrypt the Word document with a password document.EncryptDocument("password"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word document Dim document As New WordDocument("Template.docx") 'Encrypt the Word document with a password document.EncryptDocument("password") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Removes the encryption from the document. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. The following code example demonstrates how to remove encrypt from the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input Word document WordDocument document = new WordDocument("Template.docx"); //Remove the encryption from document document.RemoveEncryption(); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input Word document Dim document As New WordDocument("Template.docx") 'Remove the encryption from document document.RemoveEncryption(); 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds new style to document. Style type Style name Checks the normal style. Gets the list/array of items that can be cross-referenced based on the specified reference type. Specifies the type of item you want to insert a cross-reference to. The collection that represents the cross reference items in the document. This method returns the cross reference of Bookmarks items only. For bookmarks, it returns the entity collections of BookmarkStart only if the bookmark contains proper start and end. The following code example demonstrates how to append cross reference for bookmark in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Get the collection of bookmark start in the word document List< Entity > items = document.GetCrossReferenceItems(ReferenceType.Bookmark); if (items.Count > 0) //Change the first cross reference items owner paragraph back color as YelloGreen (items[0] as BookmarkStart).OwnerParagraph.ParagraphFormat.BackColor = Color.YellowGreen; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Get the collection of bookmark start in the word document Dim items As List(Of Entity) = document.GetCrossReferenceItems(ReferenceType.Bookmark) If items.Count > 0 Then 'Change the first cross reference items owner paragraph back color as YelloGreen TryCast(items(0), BookmarkStart).OwnerParagraph.ParagraphFormat.BackColor = Color.YellowGreen End If 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the bookmarks. Opens the Word Docx document The stream contains the document content Opens the Word XML document Name of the file Opens the Word XML document The stream contains the document content Opens the document from XML format file. The name of file Opens the XML document from stream. The stream object Display any warnings or errors. Saves the document in XML format. The name of target file Saves the document in XML format. The target stream Saves the document in text format. The name of target file Saves this as text file(.txt) with specified encoding. A string that contains the name of the file to save. The character encoding to use. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to convert the Word document into text file. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Save the document as Text file document.SaveTxt("sample.txt", Encoding.ASCII); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Save the document as Text file document.SaveTxt("sample.txt", Encoding.ASCII) 'Close the document document.Close() End Sub Saves the document in EPub format. Saves the document as EPub stream Saves the document in open XML format (Docx). Saves the document in Word ML format (WordML). file name to save Saves the document in open XML format (Odt). Saves the document in open XML format (Docx). Saves the document in open XML format (Odt). Saves the document in Word ML format (WordML). stream to save Saves the RTF. The stream. Gets the RTF text. Saves the document in text format. The name of target file Saves the document in markdown text format. The name of target file Saves this as text (.txt) in Stream with specified encoding. A to save this . The character encoding to use. The following code example demonstrates how to convert the Word document into text file. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); MemoryStream stream = new MemoryStream(); //Save the document as Text file document.SaveTxt(stream, Encoding.ASCII); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim stream As New MemoryStream() 'Save the document as Text file document.SaveTxt(stream, Encoding.ASCII) 'Close the document document.Close() End Sub Opens the document in text format. The name of target file Opens the document in markdown format. The name of target file Opens the text. The text. Opens the document in HTML format The file stream XHTML validation type. Opens doc file. Opens an existing document. A string that contains the name of the file to open The following code example demonstrates how to open an existing document from file system. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx"); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx") 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type. A string that contains the name of the file to open. The file format type of the document to open. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to open an existing document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type with HTML file validation options and base path for relative path to absolute path conversion. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . Base path which is used to convert the relative path in the HTML file to absolute path. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open a protected document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx, XHTMLValidationType.Strict, "basePath"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password", XHTMLValidationType.Strict, basePath) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type with HTML file validation options. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open a protected document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx, XHTMLValidationType.Strict); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password", XHTMLValidationType.Strict) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens the HTML document from file. Name of the file. Type of the format. Type of the validation. Opens an existing document of the specified file format type, which is protected with password. A string that contains the name of the file to open. The file format type of the document to open. The password used to decrypt the protected file. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open a protected document of the specified type from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx", FormatType.Docx, "password") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens the document from file in XML or Microsoft Word format. Name of the file. Type of the format. The password. Updates the type of the format. Name of the file. Type of the format. Opens an existing document of the specified file format type in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. Opens an existing document of the specified file format type, which is protected with password in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. The password used to decrypt the protected file. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. fileName is null. password is null. The following code example demonstrates how to open a protected document of the specified type from file system in read-only mode. //Create a new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, "password"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Create a new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, "password") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Opens an existing document of the specified file format type with HTML file validation options in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. fileName is null. The following code example demonstrates how to open an existing document of the specified type from file system with XHTML validation options in read-only mode. //Create a new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict); //Saves the specified document document.Save("Sample.Docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Create a new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Opens an existing document of the specified file format type with HTML file validation options and base path for relative path to absolute path conversion in read-only mode. A string that contains the name of the file to open. The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . Base path which is used to convert the relative path in the HTML file to absolute path. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. fileName is null. baseUrl is null. The following code example demonstrates how to open an existing document of the specified type from file system with XHTML validation options in read-only mode. //Create a new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict, "basePath"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Create a new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.OpenReadOnly("Template.docx", FormatType.Docx, XHTMLValidationType.Strict, basePath) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Saves this to the specified file. A string that contains the name of the document to save. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to open an existing document from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx"); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx") 'Close the WordDocument instance document.Close() End Sub Saves this to the specified file in the specified format. A string that contains the name of the document to save. The format in which the document is saved. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform and Xamarin platforms. The following code example demonstrates how to open an existing document from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub If the file name extension mismatches the FormatType parameter specified for saving the document, then the file will be saved in the format specified by FormatType parameter and wrong extension as specified by file name parameter. If the FormatType is specified as Automatic, then the document will be saved in the format specified by file name extension Saves the document into file in specified format type. The FileName. The FormatType. Saves the document in markdown format. Saves document in Markdown format. A string that contains the name of the file to save. The character encoding to use. Saves this as EPUB. A string that contains the name of the file to save. The cover page image of the EPUB. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to convert the Word document to EPub file. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); MemoryStream stream = new MemoryStream(); //Create the new WPicture for cover page image WPicture coverImage = new WPicture(document); coverImage.LoadImage(Image.FromFile("CoverImage.png")); //Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim stream As New MemoryStream() 'Create the new WPicture for cover page image Dim coverImage As New WPicture(document) coverImage.LoadImage(Image.FromFile("CoverImage.png")) 'Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage) 'Close the document document.Close() End Sub Saves the document as Doc format. Name of the file. Saves this to the specified file in the specified format. A string that contains the name of the document to save. The format in which the document is saved. The HTTP response information. Specifies options to stream content to browser. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open an existing document from file system. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); //Open an existing document from file system document.Open("Template.docx"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx,HttpContext.Current.Response, HttpContentDisposition.Attachment); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() 'Open an existing document from file system document.Open("Template.docx") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx, Response, HttpContentDisposition.Attachment) 'Close the WordDocument instance document.Close() End Sub If the file name extension mismatches the FormatType parameter specified for saving the document, then the file will be saved in the format specified by FormatType parameter and wrong extension as specified by file name parameter. If the FormatType is specified as Automatic, then the document will be saved in the format specified by file name extension Saves the specified file name. The FileName. The FormatType. The response. The content disposition. Saves this as EPUB. A string that contains the name of the file to save. The cover page image of the EPUB. The HTTP response information. Specifies options to stream content to browser. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); MemoryStream stream = new MemoryStream(); //Create the new WPicture for cover page image WPicture coverImage = new WPicture(document); coverImage.LoadImage(Image.FromFile("CoverImage.png")); //Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage, HttpContext.Current.Response, HttpContentDisposition.Attachment); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim stream As New MemoryStream() 'Create the new WPicture for cover page image Dim coverImage As New WPicture(document) coverImage.LoadImage(Image.FromFile("CoverImage.png")) 'Save the document as EPUB document.SaveAsEpub("sample.epub", coverImage, Response, HttpContentDisposition.Attachment) 'Close the document document.Close() End Sub Saves the dot. Name of the file. Saves the document in RTF format. Name of the file. Opens an existing document of the specified file format type from the data stream with HTML file validation options and base path for relative path to absolute path conversion. A that contains the data for this . The file format type of the document to open. The XHTML validation type used to validate the html file, if the is . Base path which is used to convert the relative path in the HTML file to absolute path. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open an existing document of the specified type from data stream with XHTML validation options. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict, "basepath"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict, basepath) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type from the data stream with HTML validation options. A that contains the data for this . The file format type of the document to open. The XHTML validation type used to validate the HTML file, if the is . This method is not supported in Silverlight, WinRT, Windows Phone, Universal, UNiversal Windows Platform, MVC6 and Xamarin platforms. The following code example demonstrates how to open an existing document of the specified type from data stream with XHTML validation options. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.html", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx, XHTMLValidationType.Strict) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens the HTML document from stream. The stream. Type of the format. Type of the validation. Opens an existing document of the specified file format type from the data stream. A that contains the data for this . The file format type of the document to open. The following code example demonstrates how to open an existing document of the specified type from data stream. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx) 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens an existing document of the specified file format type from the data stream, which is protected with password. A that contains the data for this . The file format type of the document to open. The password used to decrypt the document. This API is supported from .NET Framework 2.0 and .NET Standard 2.0 onwards. The following code example demonstrates how to open a protected document of the specified type from data stream. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an new instance of WordDocument class WordDocument document = new WordDocument(); Stream fileStream = new FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Open an existing document from file system document.Open(fileStream, FormatType.Docx, "password"); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an new instance of WordDocument class Dim document As New WordDocument() Dim fileStream As Stream = New FileStream("Sample.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Open an existing document from file system document.Open(fileStream, FormatType.Docx, "password") 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() End Sub Opens the document from stream. The Stream. The FormatType. The Password. Open an Rtf file Opens the RTF. The RTF text. Updates the type of the format. The stream. Type of the format. Saves this to the specified stream in the specified file format type. The Stream where the document will be saved. The format in which the document is saved. The following code example demonstrates how to save the document to MemoryStream private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); MemoryStream stream = new MemoryStream(); //Save the document to stream document.Save(stream, FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim stream As New MemoryStream() 'Save the document to stream document.Save(stream, FormatType.Docx) 'Close the document document.Close() End Sub Get the roman value for the number Gets the chinese expression for a number within ten thousand Gets the chinese expression of a number To Get alphabet letter Gets the Spanish cardinal text string. if set to true [cardinal string]. The text. Gets the card text string. if set to true [cardinal string]. The text. Gets the ord text string. if set to true [ordinal string]. The text. Gets the Spanish ordinal text string. if set to true [ordinal string]. The text. Numbers to Spanish words. The number. if set to true [is card text]. Numbers to words. The number. if set to true [is card text]. Checks whether paragraph has only trail watermark textbox. First paragraph of section. True; if paragraph was created by Syncfusion to preserve trail watermark, Otherwise false Removes the trail watermark paragraph from Word document. Adds the paragraph with trail version text in header of the document. Word document. Adds the text box with trail version text in header of the document. Boolean to ensure is word to Image conversion //Add a trial message as first and last para of the document. Saves the document into stream in specified format type. The Stream. The FormatType. Get's Ordinal List Value Get's Ordinal in Swedish Get's Ordinal in Catalan Get's Ordinal in Danish Get's Ordinal in English (Default) Release the resources occupied by this instance. Releases all resources used by the object. Compares the array. The buffer1. The buffer2. Closes the content of the sections. Closes the styles. Converts the whole document into an images. An ImageType that specifies the type of the image to render. Return the array of images that contains the each document page as single image. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages and each page content may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. is not supported when running in Azure environment, only is available. So, is used instead of automatically when rendering in Azure environment. The following code example demonstrates how to convert the Word document to image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to image Image[] images = wordDocument.RenderAsImages(ImageType.Bitmap); //Close the document wordDocument.Close(); int i = 0; foreach (Image image in images) { //Save the images as jpeg image.Save("WordToImage_" + i + ".jpeg", ImageFormat.Jpeg); i++; } } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to image Dim images As Image() = wordDocument.RenderAsImages(ImageType.Bitmap) 'Close the document wordDocument.Close() Dim i As Integer = 0 For Each image As Image In images 'Save the images as jpeg image.Save("WordToImage_" & i & ".jpeg", ImageFormat.Jpeg) i += 1 Next End Sub Converts the specified document page into image. The zero based page index that represent which page to convert. An ImageFormat that specifies the format of the saved image. An that represent specified document page as image. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. is not supported when running in Azure environment, only is available. So, is used instead of automatically when rendering in Azure environment. The following code example demonstrates how to convert the Word document to image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to stream Stream imageStream = wordDocument.RenderAsImages(2, System.Drawing.Imaging.ImageFormat.Bmp); //Close the document wordDocument.Close(); //Convert the stream to Image Image image = Image.FromStream(imageStream); //Save the image as jpeg image.Save("WordToImage.jpeg", ImageFormat.Jpeg); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to stream Dim imageStream As Stream = wordDocument.RenderAsImages(2, System.Drawing.Imaging.ImageFormat.Bmp) 'Close the document wordDocument.Close() 'Convert the stream to Image Dim image As Image = Image.FromStream(imageStream) 'Save the image as jpeg image.Save("WordToImage.jpeg", ImageFormat.Jpeg) End Sub Converts the specified document page into image. The zero based page index that represent which page to convert. An ImageType that specifies the type of the image to render. An that represent specified document page as image. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. is not supported when running in Azure environment, only is available. So, is used instead of automatically when rendering in Azure environment. The following code example demonstrates how to convert the specified Word document page as image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to image Image image = wordDocument.RenderAsImages(2, ImageType.Bitmap); //Close the document wordDocument.Close(); //Save the image image.Save("WordToImage.jpeg", ImageFormat.Jpeg); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to image Dim image As Image = wordDocument.RenderAsImages(2, ImageType.Bitmap) 'Close the document wordDocument.Close() 'Save the images as jpeg image.Save("WordToImage_" & i & ".jpeg", ImageFormat.Jpeg) End Sub Converts the specified range of document pages into images The zero based page index that represents the starting document page index. The total number of pages to convert. An ImageType That specifies the type of the image to render. An array of images that represent specified range of document pages as images. Layouting the contents of a Word document as pages in the Essential DocIO is not exactly the same as the layouting in Microsoft Word. So, the total number of pages may vary slightly compared to that of the Microsoft Word. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. is not supported when running in Azure environment, only is available. So, is used instead of automatically when rendering in Azure environment. The following code example demonstrates how to convert the Word document to image. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; //Convert word document to image Image[] images = wordDocument.RenderAsImages(0, 2, ImageType.Bitmap); //Close the document wordDocument.Close(); int i = 0; foreach (Image image in images) { //Save the images as jpeg image.Save("WordToImage_" + i + ".jpeg", ImageFormat.Jpeg); i++; } } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to image conversion wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Set the scaling mode for charts (Normal mode reduces the file size) wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal 'Convert word document to image Dim images As Image() = wordDocument.RenderAsImages(0, 2, ImageType.Bitmap) 'Close the document wordDocument.Close() Dim i As Integer = 0 For Each image As Image In images 'Save the images as jpeg image.Save("WordToImage_" & i & ".jpeg", ImageFormat.Jpeg) i += 1 Next End Sub Finds the text based on specified regular expression. The used to find the text. The that contains the found text in the document. The following code example demonstrates how to find a particular text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find(new Regex("panda")); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find(New Regex("panda")) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the first entry of specified pattern of text in single-line mode which is extended to several paragraph in the document. The used to find the text. The collection that contains the found text in the document. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine(new Regex("First paragraph Second paragraph")); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine(new Regex("First paragraph Second paragraph")) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Finds the text based on specified string, taking into the consideration of caseSensitive and wholeWord options. A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. The following code example demonstrates how to find a particular text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find("panda", true, true); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find("panda", true, true) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the first entry of specified pattern of text in single-line mode which is extended to several paragraph in the document, taking into the consideration of caseSensitive and wholeWord options. A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The collection that contains the found text in the document. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine("First paragraph Second paragraph", true, false); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine("First paragraph Second paragraph", True, False) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Finds and returns all entries of the specified regular expression. The used to find the text. The collection that contains all the entries of the found text in the document. The following code example demonstrates how to search a particular text and highlight it. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the occurrence of the Word "panda" in the document TextSelection[] textSelection = document.FindAll(new Regex("panda")); //Iterate through each occurrence and highlight it foreach (TextSelection selection in textSelection) { IWTextRange textRange = selection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.Yellow; } //Save and Close the document document.Save("Result.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the occurrence of the word "panda" in the document Dim textSelection As TextSelection() = document.FindAll(new Regex("panda")) 'Iterate through each occurrence and highlight it For Each selection As TextSelection In textSelection Dim textRange As IWTextRange = selection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.Yellow Next document.Save("Result.docx") document.Close() End Sub Find the text in main body while comparing Word documents. We handled find for textbody to check headers and footers. Represents the Regex for finding item /// Represents the Document Comparison or not Finds and returns all entries of the specified string, taking into the consideration of caseSensitive and wholeWord options. A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The collection that contains all the entries of the found text in the document. The following code example demonstrates how to search a particular text and highlight it. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Find the occurrence of the Word "panda" in the document TextSelection[] textSelection = document.FindAll("panda", false, true); //Iterate through each occurrence and highlight it foreach (TextSelection selection in textSelection) { IWTextRange textRange = selection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.Yellow; } //Save and Close the document document.Save("Result.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Find the occurrence of the word "panda" in the document Dim textSelection As TextSelection() = document.FindAll("panda", false, true) 'Iterate through each occurrence and highlight it For Each selection As TextSelection In textSelection Dim textRange As IWTextRange = selection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.Yellow Next document.Save("Result.docx") document.Close() End Sub Replaces all entries of the given with the replace string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Replace all occurrence of a particular text in the document document.Replace(new Regex("Paragraph"),"paragraph"); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Replace all occurrence of a particular text in the document document.Replace(New Regex("Paragraph"), "paragraph") 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with replace string, taking into consideration of case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Replace all occurrence of a particular text in the document document.Replace("Paragraph","paragraph", false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Replace all occurrence of a particular text in the document document.Replace("Paragraph", "paragraph", False, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive and whole word options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, true, false); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, True, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true if to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, true, false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace("Giant panda", selection, True, False, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces the specified regular expression with a in the document. The used to find the text. The specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(new Regex("Giant panda"), selection); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(New Regex("Giant panda"), selection) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the along with its formatting. The used to find the text. The specifies the text to replace. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(new Regex("Giant panda"), selection, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the document document.Replace(New Regex("Giant panda"), selection, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive, whole word options. The string represents the text to be found. The text body part to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. if it specifies whole word, set to true. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, true, false); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, True, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with , taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The text body part to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false.. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, true, false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace("Giant panda", bodyPart, True, False, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the . The used to find the text. The text body part to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace(new Regex("Giant panda"), bodyPart); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace(New Regex("Giant panda"), bodyPart) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the along with its formatting. The used to find the text. The text body part to replace. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Find the first occurrence of the regular expression TextSelection selection = document.Find(new Regex("Panda")); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace(new Regex("Giant panda"), bodyPart, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Find the first occurrence of the regular expression Dim selection As TextSelection = document.Find(New Regex("Panda")) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace(New Regex("Giant panda"), bodyPart, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with another Word document, taking into consideration case sensitive, whole word options. The string represents the text to be found. The Word document to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Load the another existing Word document to replace WordDocument replaceDocument = new WordDocument("Replace.docx"); //Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, true, false); replaceDocument.Close(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Load the another existing Word document to replace Dim replaceDocument As New WordDocument("Replace.docx") 'Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, True, False) replaceDocument.Close(); 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the document with another Word document, taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The Word document to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Load the another existing Word document to replace WordDocument replaceDocument = new WordDocument("Replace.docx"); //Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, true, false, true); replaceDocument.Close(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Load the another existing Word document to replace Dim replaceDocument As New WordDocument("Replace.docx") 'Replace all occurrence of a particular regular expression with the another document and close the document document.Replace("Giant panda", replaceDocument, True, False, True) replaceDocument.Close(); 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the document with the another word document along with its formatting. The used to find the text. The Word document to replace. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); //Load the another existing Word document to replace WordDocument replaceDocument = new WordDocument("Replace.docx"); //Replace all occurrence of a particular regular expression with the another document and close the document document.Replace(new Regex("Giant panda"), replaceDocument, true); replaceDocument.Close(); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") 'Load the another existing Word document to replace Dim replaceDocument As New WordDocument("Replace.docx") 'Replace all occurrence of a particular regular expression with the another document and close the document document.Replace(New Regex("Giant panda"), replaceDocument, True) replaceDocument.Close(); 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Updates Paragraphs count, Word count and Character count in the document. The following code example demonstrates how to update Paragraphs count, Word count and Character count in the document. //Open an input word template WordDocument document = new WordDocument(@"Template.docx", FormatType.Automatic); //Update the Paragraphs count, Word count and Character count in the document document.UpdateWordCount(); //Save and close the Word document instance. document.Save("Output.docx", FormatType.Docx); document.Close(); } 'Open an input word template Dim document As New WordDocument("Template.docx", FormatType.Automatic) 'Update the Paragraphs count, Word count and Character count in the document. document.UpdateWordCount() 'Save and close the Word document instance. document.Save("Output.docx", FormatType.Docx) document.Close() Updates the word count and character count for Fields in the document Splits the text into words by replacing the characters that are not considered for word and char count The string represents the text to be split Arrays of words split Updates Paragraphs count, Word count and Character count. Updates page count if performLayout set to true using Doc to PDF layouting engine. Set to true to update the page count of the document using Word to PDF layouting engine; otherwise, false. This method is not supported in Silverlight, WinRT, Universal, Universal Windows Platform, MVC6, Xamarin and windows phone platforms. The following code example demonstrates how to update Page count, Paragraphs count, Word count and Character count in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open an input word template WordDocument document = new WordDocument(@"Template.docx"); //Update the Page count, Paragraphs count, Word count and Character count in the document document.UpdateWordCount(true); //Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open an input word template Dim document As New WordDocument("Template.docx") 'Update the Page count, Paragraphs count, Word count and Character count in the document. document.UpdateWordCount(True) 'Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Updates Paragraphs count, Word count and Character count. Updates page count if performLayout set to true using Word to PDF layout engine. Set to true to update the page count of the document using Word to PDF layout engine; otherwise, false. Updates fields present in the document. Updating of NUMPAGES field and Cross Reference field with Page number and Paragraph number options are not supported in Silverlight, WinRT, Universal and Windows Phone platforms. Currently group shapes, drawing canvas, and table auto resizing are not supported in Word to PDF lay outing, and this may lead to update incorrect page number and total number of pages. While updating NUMPAGES field and Cross Reference field with Page number and Paragraph number options uses makes use of our Word to PDF layouting engine which may lead to take some considerable amount of performance to update the above mentioned fields. The following code example demonstrates how to update the fields present in Word document. //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Input.docx", FormatType.Docx); //Updates the fields present in a document. document.UpdateDocumentFields(); document.Save("Result.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Input.docx", FormatType.Docx) 'Updates the fields present in a document. document.UpdateDocumentFields() document.Save("Result.docx", FormatType.Docx) document.Close() Updates fields present in the document. Updates page field if performLayout set to true using Doc to PDF layouting engine. Set to true to update the page field in the document using Word to PDF layout engine; otherwise, false. Update sequence field values for sequence field which refer the bookmark. Gets the bookmark sequence field result. Updates fields present in the document in optimal way. Updating of NUMPAGES field and Cross Reference field with Page number and Paragraph number options are not supported in Silverlight, WinRT, Universal, Windows Phone and Xamarin platforms. Currently group shapes, drawing canvas, and table auto resizing are not supported in Word to PDF lay outing, and this may lead to update incorrect page number and total number of pages. While updating NUMPAGES field and Cross Reference field with Page number and Paragraph number options uses makes use of our Word to PDF layouting engine which may lead to take some considerable amount of performance to update the above mentioned fields. Updates the Alternate chunks present in the Word document The following code example demonstrates how to update the Alternate chunks present in Word document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Input.docx", FormatType.Docx); //Updates the Alternate chunks present in a document. document.UpdateAlternateChunks(); document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Input.docx", FormatType.Docx) 'Updates the Alternate chunks present in a document. document.UpdateAlternateChunks() document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Get the first Alternate chunk of the section. The first AlternateChunk of the section, or null if none is found. Get the last Alternate chunk of the section. The last AlternateChunk of the section, or null if none is found. Updates the bookmark page cross reference fields. The pageref fields. The layouter. Updates the bookmark cross reference fields. The reference fields. Updates the list value. The textbody. The index. The list value collections. The level number collections. Updates the header footer list values. The list value collections. The level number collections. Updates the shape list values. The list value collections. The level number collections. Updates the end note list values. The list value collections. The level number collections. Updates the foot note list values. The list value collections. The level number collections. Updates the comment list values. The list value collections. The level number collections. Updates the section list values. The list value collections. The level number collections. Gets the paragraph number. The reference fields. The bk start. The owner para. The level. The separator. The referencekind. The paragraph list value. The paragraph level numbers. Gets the entity owner text body. The para. Checking for NumPages/PageRef/Ref field present in the document check all text body items Gets the text from paragraph item collection present in the owner paragraph Para items in owner paragraph Check all cell in table Calculate paragraphs count, word count and character count Update Table of contents in the document. Updating TOC makes use of our Word to PDF layouting engine which may lead to the updation of incorrect page number due to its limitations. Also use of WOrd to PDF layout engine may lead to take some considerable amount of performance to update the page numbers. The following code example demonstrates how to update a TOC in an existing word document. //Open an input word template WordDocument document = new WordDocument(@"Template.docx"); //Update the table of contents. document.UpdateTableOfContents(); //Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Open an input word template Dim document As New WordDocument("Template.docx") 'Update the table of contents. document.UpdateTableOfContents() 'Save and close the Word document instance. document.Save("Sample.docx", FormatType.Docx) document.Close() Update Table of contents in the document. Updates the list. The paragraph. Update the suffix equivalent to list level The list format. Name of the style. The level. Index of the list item. Updates the number prefix. The level number prefix. The list format. Returns the updated number prefix. Gets the display level text. (String literal) Level text which specified in file level. Clears the list collection. Ensures the level restart. The format. Name of the style. if set to true full restart is performed. Gets the list item index value. The List format Name of the style. Gets the list start value. The format. Name of the style. We have to reset the startat value in "lstStyle" dictionary for the levels which exists inbetween current and previous paragraph referred levels when leveltext of current paragrah is more than one time increased While compare with leveltext of previous paragraph. Gets the list value. The list format. Name of the style. The level. The start at. Index of the list item. Gets the ordered prefix value of level number. The level number prefix. The ordered level number prefix. Gets the list prefix string, based on list level number Current list level number List format entire prefix string currentListLevelPrefix value Gets the list start value. The level. list value. value. Index of the list item. List prefix text value Sort the Keys keys returns keys value Replaces all entries of given string which is extended to several paragraphs in the document with replace string, taking into consideration of case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with simple text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine("First paragraph Second paragraph", "Replaced paragraph", true, false); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine("First paragraph Second paragraph", "Replaced paragraph", True, False) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Replaces all entries of the specified pattern text, which is extended to several paragraph, with replace text. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with simple text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine(new Regex("First paragraph Second paragraph"), "Replaced paragraph"); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Replace the text extended to two paragraphs with simple text document.ReplaceSingleLine(New Regex("First paragraph Second paragraph"), "Replaced paragraph") 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Replaces all entries of given string which is extended to several paragraph in the document with , taking into consideration case sensitive and whole word options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with another text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine("First paragraph Second paragraph", selection, true, false); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine("First paragraph Second paragraph", selection, True, False) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Replaces all entries of given regular expression text which is extended to several paragraph in the document with the . The used to find the text. The text selection to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with another text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine(new Regex("First paragraph Second paragraph"), selection); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Replace the text extended to two paragraphs with text selection document.ReplaceSingleLine(New Regex("First paragraph Second paragraph"), selection) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Replaces all entries of given string which is extended to several paragraphs in the document with , taking into consideration case sensitive, whole word options. The string represents the text to be found. The text body part to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. if it specifies whole word, set to true. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with . private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.ReplaceSingleLine("First paragraph Second paragraph", bodyPart, true, false); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.ReplaceSingleLine("First paragraph Second paragraph", bodyPart, True, False) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Replaces all entries of given regular expression text which is extended to several paragraph in the document with the . The used to find the text. The text body part to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace the text extended to several paragraphs with . private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.ReplaceSingleLine(new Regex("First paragraph Second paragraph"), bodyPart); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.ReplaceSingleLine(New Regex("First paragraph Second paragraph"), bodyPart) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Replaces the HF single line. The pattern. The replace. Resets the single line replace. Replaces the single line. The pattern. The replace. The start item. Check whether any of floating items contain same Z Order or not. Sort the document floating items based on its Z-Index by ascending order Assign the new ZIndex values for all floating items in the document Finds the next entry of the specified text from the specified text body item, taking into the consideration of caseSensitive and wholeWord options. The that represents the start body item at which search starts (paragraph or table). A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find("as graphical contents", false, true); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, "paragraph", true, false); //Get the found text as single text range WTextRange range = textSelection.GetAsOneRange(); //Set bold formatting range.CharacterFormat.Bold = true; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find("as graphical contents", false, true) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, "paragraph", true, false) 'Get the found text as single text range Dim range As WTextRange = textSelection.GetAsOneRange() 'Set bold formatting range.CharacterFormat.Bold = True 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the next entry of the specified regular expression from the specified text body item. The that represents the start body item at which search starts (paragraph or table). The used to find the text. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text in the document TextSelection textSelection = document.Find(new Regex("as graphical contents")); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, new Regex("paragraph")); //Get the found text as single text range WTextRange range = textSelection.GetAsOneRange(); //Set bold formatting range.CharacterFormat.Bold = true; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text in the document Dim textSelection As TextSelection = document.Find("as graphical contents") 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Find the next occurrence of a particular text from the previous paragraph textSelection = document.FindNext(textRange.OwnerParagraph, "paragraph") 'Get the found text as single text range Dim range As WTextRange = textSelection.GetAsOneRange() 'Set bold formatting range.CharacterFormat.Bold = True 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Finds the next selection. The pattern. Updates the next item at which next find will start. The selection. Gets the next paragraph item in textbody item. The textbody item. Gets the next paragraph item in text body. The text body. Checks the selection. The text selection. Finds the next entry of the specified text from the specified text body item in single-line mode which is extended to several paragraph in the document, taking into the consideration of caseSensitive and wholeWord options. The that represents the start body item at which search starts (paragraph or table). A string used to find the text. Set to true to match the similar case text which specified in the parameter; otherwise false. Set to true to match the whole word text which specified in the parameter; otherwise false. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence which is extended to several paragraphs in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine("First paragraph Second paragraph", true, false); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, "First paragraph Second paragraph", true, false); foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set italic formatting WTextRange text = textSelection.GetAsOneRange(); text.CharacterFormat.Italic = true; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine("First paragraph Second paragraph", True, False) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, "First paragraph Second paragraph", True, False) For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set italic formatting Dim text As WTextRange = textSelection.GetAsOneRange() text.CharacterFormat.Italic = True Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Finds the next entry of the specified pattern of text in single-line mode which is extended to several paragraph in the document. The that represents the start body item at which search starts (paragraph or table). The used to find the text. The that contains the found text in the document. The following code example demonstrates how to find a particular text and its next occurrence which is extended to several paragraphs in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Find the first occurrence of a particular text extended to several paragraphs in the document TextSelection[] textSelections = document.FindSingleLine("First paragraph Second paragraph", true, false); WParagraph paragraph = null; foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set highlight color WTextRange textRange = textSelection.GetAsOneRange(); textRange.CharacterFormat.HighlightColor = Color.YellowGreen; paragraph = textRange.OwnerParagraph; } //Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, new Regex("First paragraph Second paragraph")); foreach (TextSelection textSelection in textSelections) { //Get the found text as single text range and set italic formatting WTextRange text = textSelection.GetAsOneRange(); text.CharacterFormat.Italic = true; } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Find the first occurrence of a particular text extended to several paragraphs in the document Dim textSelections As TextSelection() = document.FindSingleLine("First paragraph Second paragraph", True, False) Dim paragraph As WParagraph = Nothing For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set highlight color Dim textRange As WTextRange = textSelection.GetAsOneRange() textRange.CharacterFormat.HighlightColor = Color.YellowGreen paragraph = textRange.OwnerParagraph Next 'Find the next occurrence of a particular text extended to several paragraphs in the document textSelections = document.FindNextSingleLine(paragraph, new Regex("First paragraph Second paragraph")) For Each textSelection As TextSelection In textSelections 'Get the found text as single text range and set italic formatting Dim text As WTextRange = textSelection.GetAsOneRange() text.CharacterFormat.Italic = True Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub This API not works for the text inside an. Finds the next text which fit the specified pattern using single-line mode. The pattern. Resets the find next of . Creates a new paragraph item instance. A represents the type of paragraph item to create. The this method created. Implementation of character format creating Character format object. Implementation of paragraph format creating Paragraph format object. Implementation of table format creating Table format instance Implementation of cell format creating Implementation of textbox format creating textbox format object. Text Creates the compound file. Creates the compound file. The stream. Checks for encryption. The stream. Ensures the paragraph style. The paragraph. Check whether last entity is WTable then add empty paragraph. Clones the shape escher. The destination doc. The shape item. Clones the DocxProps. Clones the dictionary of string values. Clones the list of stream values. Clones the stream. Gets the password. Checkes whether any one of the section has valid numbering properties. Inserts the watermark. The type. Reads document's background fill effects. Saves the document to the detailed XML stream. The stream. Determines whether list has style Updates the start position of next items from the inputed paragraph item. An item where to start updating start position in the paragraph. A value to add with start position of next items. Update the start position of inputed item using its offset value. Item to update the position. A value to add with start position of Updates the start position of items inside inline content control. Represents inline content control to update position values of inner items. Index of the item to update. A value added to the existing position value. Checks whether the Word document is of DOCX type in any word versions Inits the default paragraph format. Determines whether current process is DocIO internal manipulation or end user maipulation. Updates the ImportOption property value based on its priority. Copies the binary data. The SRC data. The destination data. Clones the textbox container. The destination doc. The textbox. Clones the auto shape container. The destination doc. The shape obj. Checks the container. The type. The spid. Determines whether document has tracked changes. It has tracked changes, set to true. Checks whether security permission can be granted. Checks the extension with respect to formatType The filename The FormatType Checks the name of the file. Name of the file. Resets the watermark. update the write watermark for each header. Sets the protection. Create default liststyles and add them to ListStyleCollection Gets xml schema Reads document using XmlReader Writes document using XmlWriter Registers child objects in XDSL holder. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Creates and initializes layout data Removes the macros in the document. The following code example demonstrates how to remove macros from the Word document. This method removes the macros from DOCM and DOTM format files. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the document with macros WordDocument document = new WordDocument("Sample.docm"); //Check whether the document has macros and remove them if (document.HasMacros) document.RemoveMacros(); //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the document with macros Dim document As New WordDocument("Sample.docm") 'Check whether the document has macros and remove them If document.HasMacros Then document.RemoveMacros() End If 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Sets the trigger element. The flag. The bit position. Determines whether the specified flag has element. The flag. The bit position. Checks whether document has different page setup Returns true if document has different page setup; else returns false Updates the revision information for the paragraph item. Gets the existing revision for the remaining paragraph items (except first item) if exists otherwise create new revision. Stack that stores the prevision revision of the item Gets the existing revision for the first paragraph item if exists otherwise create new revision. Gets the existing row revision when paragraph exists inside the table cell. Gets the existing revision based on the revision type and author. Gets the existing revision based on revision type, author and sibiling revisions Previous sibiling revisions Current revision type Current author Stack that stores sibiling revisions of current revision Current item Creates revision when revision not exist in revision collection. Update insert/delete revision for table row. The revision type. The table row. Links the nested table row into the owner table row revision if same author name and type. Otherwise create child revision and liked to the owner table row revision. Creates a new revision. The revision type. Creates a new child revision. Child revisions are not added into the document revision collection. The revision type. Update the insert/delete revisions in Character format. The revision type. The character format. We should get author name based on the revision type since this is DOC format document. We should get date name based on the revision type since this is DOC format document. Links the table revision for the break character format. Links the move revision for the break character format. Moves the source revision ranges into destination revision ranges. Updates the paragraph format revision changes. The paragraph format. Gets the last updated revision in section . The page section . Returns the last updated revision in section. Compare two formats and gets the same revision. The current format. The previous format to compare Returns the revision by compare the two formats have same revision. Otherwise null Updates the character format revision changes. The character format. The paragraph item. Gets the character format change revision for the style. Gets the character format change revision for the first paragraph item. Gets the previous break character format inside the table. Gets the paragraph format of style. The style Checks whether any renderable item before the current item in Owner paragraph The paragraph item. Returns true, if contains renderable item before the current item. Otherwise false Updates the table format revision changes at the end of each row. The table row. Updates the table row revision changes. The table cell. Updates the table cell revision changes. The table cell. Gets the last updated revision in table row. The table row. Returns the last updated revision in table row. Updates the revisions inside the field range. The field. Removes the revision by iterating the text body. Removes the revision by iterating the paragraph items. Removes the revision by iterating the textbody. Removes the revision by iterating the paragraph items. Removes the revision by iterating the table. Removes the revisions from the collection and add as a child revision of parent field. Update the table revisions for the DOC format Word document. Removes the revision from the collection by iterating the text body. Removes the revision from the collection by iterating the paragraph items. Removes the revision from the collection by iterating the table. Removes the revision from the collection and add as child revision of table row. Update the paragraph last item revision. The paragraph. The paragraph items. Links the content control with the break character format when it has same revision details. Links the last paragraph item or field with the break character format when it has same revision details. Links the break character format revision for empty paragraph. The paragraph. The paragraph items. Removes the revision from the collection by iterating the textbody items. The textbody. Removes the revision from the collection by iterating the paragraph items. The paragraph item. Removes the revision from the collection by iterating the table. The table. Removes all the revisions from the collection. The revision collection. Updates the character format change revision. Updates the paragraph format change revision. Updates the section format change revision. Get encoding for the specific code page The code page name Returns the derived encoding for Windows Phone and Xamarin Find an item in a Word document based on the specified property and value. to find in a Word document. The property of an item The property value of an item. Returns the first occurrence of an item that matches the specified property and value. //Open an existing Word document. using(WordDocument document = new WordDocument("Template.docx")) { //Find picture by alternative text. WPicture picture = document.FindItemByProperty(EntityType.Picture, "AlternativeText", "Logo") as WPicture; //Resize the picture. if (picture != null) { picture.Height = 50; picture.Width = 75; } //Save and close the Word document. document.Save("Sample.docx"); } 'Open an existing Word document. Dim document As WordDocument = New WordDocument("Template.docx") 'Find picture by alternative text. Dim picture As WPicture = TryCast(document.FindItemByProperty(EntityType.Picture, "AlternativeText", "Logo"), WPicture) 'Resize the picture. If picture IsNot Nothing Then picture.Height = 50 picture.Width = 75 End If 'Save and close the Word document. document.Save("Sample.docx") document.Close() Find an item in a Word document based on the specified property and value. to find in a Word document. An array of property names of an item An array of property values of an item. Returns the first occurrence of an item that matches the specified property names and values. //Open an existing Word document. using(WordDocument document = new WordDocument("Template.docx")) { //Find picture by height and width. WPicture picture = document.FindItemByProperties(EntityType.Picture, new string[] { "Height", "Width" }, new string[] { "100", "50" }) as WPicture; //Resize the picture. if (picture != null) { picture.Height = 50; picture.Width = 75; } //Save and close the Word document. document.Save("Sample.docx"); } 'Open an existing Word document. Dim document As WordDocument = New WordDocument("Template.docx") 'Find pictures by height and width. Dim picture As WPicture = TryCast(document.FindItemByProperties(EntityType.Picture, New String() {"Height", "Width"}, New String() {"100", "50"}), WPicture) 'Resize the pictures. If picture IsNot Nothing Then picture.Height = 50 picture.Width = 75 End If 'Save and close the Word document. document.Save("Sample.docx") document.Close() Find an item in a Section based on the specified property and value. to find in a Word document. An array of property names of an item An array of property values of an item. A Boolean value for entityType from the Method Returns the first occurrence of an item that matches the specified property names and values. Find an item in a Textbody based on the specified property and value. Textbody to find in a Word document. An array of property names to map an item An array of property values to map an item. A Boolean value for entityType should return only first item or all item in document Returns the first occurrence or all item that matches the specified property names and values. Find an item in a Paragraph based on the specified property and value. Paraitems in ParagraphItemCollection to find in a Word document. An array of property names of an item An array of property values of an item. A Boolean value for entityType from the Method Returns the first occurrence of an item that matches the specified property names and values. Find an item in a Table based on the specified property and value. Table in Textbody to find in a Word document. An array of property names of an item An array of property values of an item. A Boolean value for entityType from the Method Returns the first occurrence of an item that matches the specified property names and values. Checks whether the item satisfies the entityType, propertyNames and propertValues. The current entity to find in a Word document. An array of property names of an item An array of property values of an item. True, if the item satisfies the entityType, propertyNames and propertValues else false Check whether the EnityType is supported or not. to find in a Word document. True, if entitytype is not supported or internal else false Check whether the current object property value equal to propertyValues array. An array of property names of an item An array of property values of an item. True, if propertyvalue are equal to item else false Find Watermark in a Word Document based on the specified property and value. An array of property names of an item An array of property values of an item. A Boolean value for entityType from the Method Returns the list of Watermark matches the specified property names and values else return empty list. Add the source list value to the destination list Destination List Update the matched index Check and Mark Nested field Update the index Skip the text between field begin and field end Set the new start position from the begin to end index in a given section Iterate through the body item and set the new StartPos for all childentities. Body item Set the new StartPos for the items in the paragraph Compares the specified Word document with the current instance of the and marks the difference as tracked changes (revisions). The to compare. The name of the author to use for revisions. If unspecified, it uses the last modified author of the Word document as default. Otherwise, uses the string “Author” if last modified author information not present. The date and time to use for revisions. If unspecified, it uses current date and time as default. Options to use while comparing two Word documents. The following code example demonstrates how to compares the original document with revised document //Load an existing Word document into DocIO instance WordDocument originalDocument = new WordDocument("OriginalDocument.docx", FormatType.Docx); WordDocument revisedDocument = new WordDocument("RevisedDocument.docx", FormatType.Docx); //Compares the original document with revised document originalDocument.Compare(revisedDocument, "Nancy Davolio", DateTime.Now.AddDays(-1)); originalDocument.Save("Result.docx", FormatType.Docx); revisedDocument.Close(); originalDocument.Close(); 'Load an existing Word document into DocIO instance Dim originalDocument As New WordDocument("OriginalDocument.docx", FormatType.Docx) Dim revisedDocument As New WordDocument("RevisedDocument.docx", FormatType.Docx) 'Compares the original document with revised document originalDocument.Compare(revisedDocument, "Nancy Davolio", DateTime.Now.AddDays(-1)); originalDocument.Save("Result.docx", FormatType.Docx) revisedDocument.Close(); originalDocument.Close() Aplly section format revision to the original document. Initilize the properties and compare options for Word comparison Compare the styles collection between two documents The revised document instance Modify the default format as revised format in original document Copy the document default styles from revised document and paste it in given original style Compare the empty paragraphs at the end of the document The revised document instance Insert or delete the unmatched items at the end of the documents. Delete the unmatched items at the end of the document. Author name Data and time Insert the items from the revised document to the original document Mark insert revision for the Word document part Insert the items of the field to the paragraph. Current paragraph in original document Current paragraph in revised document Index of current para item in revised document Gets the Paragraph to insert bookmark Removes the deletion mark of the paragraph item The paragraph item instance Removes the insertion mark of the paragraph item The paragraph item instance Gets or sets the object for converting chart to image In Word to PDF conversion, to preserve the charts as images in the generated PDF document, this must be initialized. Otherwise the charts will not be exported to the converted PDF ChartToImageConverter is supported from .NET Framework 4.0 onwards. The following code example demonstrates how to initialize the to preserve the charts as images in the generated PDF document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Initialize ChartToImageConverter for converting charts during Word to pdf conversion wordDocument.ChartToImageConverter = new ChartToImageConverter(); //Create an instance of DocToPDFConverter DocToPDFConverter converter = new DocToPDFConverter(); //Convert Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Close the instance of Word document object wordDocument.Close(); //Save the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Close the instance of PDF document object pdfDocument.Close(true); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Initialize ChartToImageConverter for converting charts during Word to pdf conversion /// wordDocument.ChartToImageConverter = New ChartToImageConverter() 'Create an instance of DocToPDFConverter Dim converter As New DocToPDFConverter() 'Convert Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Close the instance of Word document object wordDocument.Close(); 'Save the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Close the instance of document object pdfDocument.Close(True) End Sub Gets a instance that represents the font settings of the Word document. Read-only. The instance that represents the font settings of the Word document. The following code example demonstrates how to initialize the to perform font substitution when a specified font is not installed in the production environment. // Loads an existing Word document. WordDocument wordDocument = new WordDocument("template.docx", FormatType.Docx); // Initializes the SubstituteFont event to perform font substitution during Word to PDF conversion. wordDocument.FontSettings.SubstituteFont += new SubstituteFontEventHandler(SubstituteFont); // Creates an instance of DocToPDFConverter. DocToPDFConverter converter = new DocToPDFConverter(); // Converts the Word document into PDF document. PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); // Closes the instance of Word document object. wordDocument.Close(); // Saves the PDF file. pdfDocument.Save("WordtoPDF.pdf"); // Closes the instance of PDF document object. pdfDocument.Close(true); private void SubstituteFont(object sender, SubstituteFontEventArgs args) { // Sets the alternate font when a specified font is not installed in the production environment. if (args.OrignalFontName == "Arial Unicode MS") args.AlternateFontName = "Arial"; else args.AlternateFontName = "Times New Roman"; } ' Loads an existing Word document. Dim wordDocument As New WordDocument("template.docx", FormatType.Docx) ' Initializes the SubstituteFont event to perform font substitution during Word to PDF conversion. AddHandler wordDocument.FontSettings.SubstituteFont, AddressOf SubstituteFont ' Creates an instance of DocToPDFConverter. Dim converter As New DocToPDFConverter() ' Converts the Word document into PDF document. Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) ' Closes the instance of document object. wordDocument.Close() ' Saves the PDF file . pdfDocument.Save("WordtoPDF.pdf") ' Closes the instance of document object. pdfDocument.Close(True) Private Sub SubstituteFont(ByVal sender As Object, ByVal args As SubstituteFontEventArgs) ' Sets the alternate font when a specified font is not installed in the production environment. If args.OrignalFontName = "Arial Unicode MS" Then args.AlternateFontName = "Arial" Else args.AlternateFontName = "Times New Roman" End If End Sub Gets or sets the footnote separators of the document. The instance used to specify the footnote separator of this . Gets or sets the endnote separators of the document. The instance used to specify the endnote separator of this . Gets or sets the default tab stop position value measured in points. The width of the default tab. Gets or sets the value for Character Spacing Control Gets or sets the word version based on the nFib and nFibNew. Value of nFib Word version 0x00C0 97 create new document in OS 0x00C1 97 0x00C2 97 BIDI build 0x00D9 2000 0x0101 2002 0x010C 2003 0x0112 2007 The FIB version. Gets the type of the entity. The of the current item. Gets a collection that represents all the built-in document properties for the specified document. Read-only. Gets a object that represents the attached template of the document. Read-only. Attached template of the document Gets or sets a value indicating whether to automatically update styles of the document from the attached template each time the document is opened. Default value is false. True if the styles of the document are updated to from the attached template;otherwise, false. Gets a collection that represents all the custom document properties for the specified document. Read-only. Gets a collection that represents all the sections in the document. Read-only. A Sections collection represents all the in this Gets a collection that represents all the styles in the document. Read-only. A collection represents all the in this Gets a collection that represents all the list styles in the document. Read-only. All the in this . Gets or sets a that represents the options to import the source document contents to the destination document. Default value is UseDestinationStyles. This property will not be considered while executing ImportContent method and its overloads in class. If invalid combination applied, then it will be skipped or auto corrected based on priority. //Creates an new instance of WordDocument class. WordDocument srcDocument = new WordDocument("SourceTemplate.docx"); // Creates an new instance of WordDocument class. WordDocument destDocument = new WordDocument("DestinationTemplate.docx"); //Import the contents of source document at the end of destination document with destination styles. destDocument.ImportOptions = ImportOptions.UseDestinationStyles; destDocument.Sections.Add(srcDocument.LastSection.Clone()); // Releases the resources occupied by WordDocument instance. srcDocument.Close(); // Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. destDocument.Close(); 'Creates an new instance of WordDocument class. Dim srcDocument As New WordDocument("SourceTemplate.docx") ' Creates an new instance of WordDocument class. Dim destDocument As New WordDocument("DestinationTemplate.docx") 'Import the contents of source document at the end of destination document with destination styles. destDocument.ImportOptions = ImportOptions.UseDestinationStyles destDocument.Sections.Add(srcDocument.LastSection.Clone()) ' Releases the resources occupied by WordDocument instance. srcDocument.Close() ' Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. destDocument.Close() Gets a collection that represents all the bookmarks in the document. Read-only. Gets a collection that represents all the editable ranges in the document. Read-only. Gets a collection that represents all the comments in the document. Read-only. Gets a collection that represents all the comments extended in the document. Read-only. Gets a collection that represents all the textboxes in the document. Read-only. A collection represents all the in this . Gets a collection that represents all the revisions in the document. Read-only. A collection represents all the in this Gets a the metadata stored in a document, such as author name, subject, and company. Read-only. A collection represents all the in this Gets the last of the document. Read-only. The represents the last section of this The following code example demonstrates how to retrieve the last section of the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Retrieve the last section of the document and add new paragraph document.LastSection.AddParagraph().AppendText("Adding new paragraph to the document"); //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Retrieve the last section of the document and add new paragraph document.LastSection.AddParagraph().AppendText("Adding new paragraph to the document") 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the last of the document. Read-only. The represents the last paragraph of this The following code example demonstrates how to retrieve the last paragraph of the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the last paragraph back color as Blue document.LastParagraph.ParagraphFormat.BackColor = Color.Blue; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the last paragraph back color as Blue document.LastParagraph.ParagraphFormat.BackColor = Color.Blue 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the numbering format for the endnotes in the document. The for the endnotes in the Word document The following code example demonstrates how to specify the endnote number format in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote format document.EndnoteNumberFormat = FootEndNoteNumberFormat.Arabic; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote format document.EndnoteNumberFormat = FootEndNoteNumberFormat.Arabic 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the numbering format for the footnotes in the document. The for the footnotes in the Word document The following code example demonstrates how to specify the footnote number format in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote number format document.FootnoteNumberFormat = FootEndNoteNumberFormat.UpperCaseRoman; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote number format document.FootnoteNumberFormat = FootEndNoteNumberFormat.UpperCaseRoman 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the restart index for the endnotes in the document. The following code example demonstrates how to specify the endnote restart index number in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote restart index number document.RestartIndexForEndnote = EndnoteRestartIndex.RestartForEachSection; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote restart index number document.RestartIndexForEndnote = EndnoteRestartIndex.RestartForEachSection 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets endnotes position in the document. The for the endnotes in the document The following code example demonstrates how to specify the endnote position in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote position at end of each section document.EndnotePosition = EndnotePosition.DisplayEndOfSection; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote position at end of each section document.EndnotePosition = EndnotePosition.DisplayEndOfSection 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the restart index for the footnotes in the document. The following code example demonstrates how to specify the footnote restart index number in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote restart index number document.RestartIndexForFootnotes = FootnoteRestartIndex.RestartForEachPage; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote restart index number document.RestartIndexForFootnotes = FootnoteRestartIndex.RestartForEachPage 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets footnotes position in the document. The for the footnote in the document The following code example demonstrates how to specify the footnote position in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote position at immediately beneath text document.FootnotePosition = FootnotePosition.PrintImmediatelyBeneathText; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote position at immediately beneath text document.FootnotePosition = FootnotePosition.PrintImmediatelyBeneathText 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets a watermark for the document. A text/picture that appears behind the document Gets the object that represents the background effects of the document. Read-only. The background effects of the document Gets a object that represents the mail merge functionality of the document. Read-only. The instance used to replace the with value in the document Gets or sets the document protection type. The will prevent the document from unintentional editing. The following code example demonstrates how to protect the changing of document content. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //protect the document from editing document.ProtectionType = Syncfusion.DocIO.ProtectionType.AllowOnlyReading; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'protect the document from editing document.ProtectionType = Syncfusion.DocIO.ProtectionType.AllowOnlyReading 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the document view type. A represents the display options of this in MS Word application Gets or sets a value indicating whether to throw exceptions for unsupported elements. The default is false. True then throw the exception for unsupported elements; otherwise, false. Gets or sets the initial footnote number of the document. The following code example demonstrates how to specify the endnote number format in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the footnote initial number document.InitialFootnoteNumber = 3; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the footnote initial number document.InitialFootnoteNumber = 3 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the initial endnote number of the document. The following code example demonstrates how to specify the endnote initial number in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Set the endnote initial number document.InitialEndnoteNumber = 5; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Set the endnote initial number document.InitialEndnoteNumber = 5 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the collection that represents the child entities of this . Read-only. The child entities. Gets or sets the XHTML validation type to validate the HTML content while opening a HTML file. The Default value is Currently, it is not supported in Silverlight, Universal and Windows Phone. Gets or sets the background image of a document. Gets a collection that represents the variables stored in the document. Read-only. Variables collection contains a Key-Value pair of variable name and its value The following code snippet illustrate how to add a DocVariable field in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("First Name of the customer: "); //Add the DocVariable field with Variable name and its type paragraph.AppendField("FirstName", FieldType.FieldDocVariable); paragraph = section.AddParagraph(); paragraph.AppendText("Last Name of the customer: "); //Add the DocVariable field with Variable name and its type paragraph.AppendField("LastName", FieldType.FieldDocVariable); //Add the value for variable in WordDocument.Variable collection document.Variables.Add("FirstName", "Jeff"); document.Variables.Add("LastName", "Smith"); //Update the document fields document.UpdateDocumentFields(); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("First Name of the customer: ") 'Add the DocVariable field with Variable name and its type paragraph.AppendField("FirstName", FieldType.FieldDocVariable) paragraph = section.AddParagraph() paragraph.AppendText("Last Name of the customer: ") 'Add the DocVariable field with Variable name and its type paragraph.AppendField("LastName", FieldType.FieldDocVariable) 'Add the value for variable in WordDocument.Variable collection document.Variables.Add("FirstName", "Jeff") document.Variables.Add("LastName", "Smith") 'Update the document fields document.UpdateDocumentFields() document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the document properties. Read-only. The instance used to specify the document version, form field shading and hyphenation properties of the document Gets a value indicating whether the document has tracked changes. Read-only. True if the document has tracked changes; otherwise, false. Gets or sets a value indicating whether edits are tracked as revision. The default is false. True if track changes in on; otherwise, false. The following code snippet shows how to track the edits as revisions in the document private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Enable the TrackChanges to track the edits as revision document.TrackChanges = true; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Enable the TrackChanges to track the edits as revision document.TrackChanges = True 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether replace only the first occurrence. The default is false. True replace only the first occurrence in the document; false replace all the occurrence. The following code snippet illustrates how to replace the first occurrence of a particular text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Set to replace only the first occurrence of a particular text document.ReplaceFirst = true; //Find the first occurrence of a particular text in the document TextSelection selection = document.Find("contents", false, false); //Initialize text body part TextBodyPart bodyPart = new TextBodyPart(selection); //Replace a particular text with the text body part document.Replace("paragraph", bodyPart, false, true, true); //Save and close the document document.Save("Replace.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Set to replace only the first occurrence of a particular text document.ReplaceFirst = True 'Find the first occurrence of a particular text in the document Dim selection As TextSelection = document.Find("contents", False, False) 'Initialize text body part Dim bodyPart As New TextBodyPart(selection) 'Replace a particular text with the text body part document.Replace("paragraph", bodyPart, False, True, True) 'Save and close the document document.Save("Replace.docx", FormatType.Docx) document.Close() End Sub Gets or sets the HTML import settings for HTML to Word conversion. This property is not supported in MVC6. Gets the document save options. Read-only. A that represents the save options for this Gets the revision options for the track changes in Word to PDF conversion. A that represents the save options for this The following code example demonstrates how to set the to preserve track changes in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets a value indicating whether to update fields in the document. if update fields, set to true. Gets the actual format type of the document which was loaded. While creating new document, it returns FormatType.Doc value. Read-only. The file format type of this Gets or sets a dictionary collections which represents the font substitution table. The key should be the font name and the value should be the alternate font name. The font substitution table contains an alternative font information for missing fonts in the document. The following code example demonstrates how to specify the alternative font information for missing fonts in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Apply the Arial font instead of the Arabic font, if the system does not contains Arabic font document.FontSubstitutionTable.Add("Arabic", "Arial"); //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Apply the Arial font instead of the Arabic font, if the system does not contains Arabic font document.FontSubstitutionTable.Add("Arabic", "Arial"); 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets a value indicating whether the document has macros. Read-only. True if the document has macros; otherwise, false. Gets or sets a value indicating whether to run the partial trust code. True if to run partial trust code; otherwise, false. Gets or sets a value indicating whether to disable the DateTime field updating with current date time, while opening document. True to update the Date time field with DateTime.MaxValue (23:59:59.9999999 UTC, December 31, 9999 in the Gregorian calendar); otherwise, false. This property is added specifically to avoid DateTime difference in testing automation. Gets or sets a value indicating whether formatting is restricted or not. Gets or sets a value indicating whether password protection is enforced or not. Gets or sets the multiple page type. Gets or set the number of sheets per booklet. Gets/sets FontFamilyNameStringTable Check whether document is comparing Get the instance of Comparison Denotes whether the revisions should be update or not while adding or inserting a entity Get the instance of DocxLaTeXConverter. Gets or sets the value indicating whether the document has styles Gets the images. The images. Gets the field stack. The field stack. Gets or sets the type of the save format. The type of the save format. Gets a value indicating whether this instance is macro enabled. true if this instance is macro enabled; otherwise, false. Gets or sets the vba project. The vba project. Gets or sets the vba project signature. The vba project. Gets or sets the vba project signature agile. The vba project. Gets or sets the custom UI part container. The custom UI part container. Gets or sets the User customization part container. The custom UI part container. Gets or sets the custom XML container. The custom XML container. Gets or sets the vba data. The vba data. Gets or sets the doc events. The doc events. Gets or Sets the password. The password. Gets or sets document latent styles. The latent styles. Gets or sets document latent styles. The latent styles. Gets or sets the docx package. The docx package. This flag will be useful for importing styles behavior switching in the scenario of style exist in destination document with same name and type, but different formatting. Gets or sets a value indicating whether to import styles with new unique name, if style exist in destination document with same name, type and different formatting. Default value is true True: if import styles with same name, type and different formatting into destination document by renaming uniquely; otherwise, false. This property is used for defining styles import behavior in the scenario of style exist in destination document with same name and type, but different formatting. Setting this property to true, styles with same name, type and different formatting will be imported into destination document from source document with new unique name. Setting it to false, styles with same name, type and different formatting will not be imported and instead the document contents will use the existing matched (same name and type) style. // Creates an new instance of WordDocument class. WordDocument srcDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal(); // Sets bold to character format of "Normal" style to differentiate source and destination document. (srcDocument.Styles.FindByName("Normal") as WParagraphStyle).CharacterFormat.Bold = true; // Creates an new instance of WordDocument class. WordDocument destDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal(); // Sets false value to exclude importing duplicate styles to destination document. destDocument.ImportStyles = false; destDocument.Sections.Add(srcDocument.LastSection.Clone()); // Releases the resources occupied by WordDocument instance. srcDocument.Close(); // Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. destDocument.Close(); ' Creates an new instance of WordDocument class. Dim srcDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal() ' Sets bold to character format of "Normal" style to differentiate source and destination document. TryCast(srcDocument.Styles.FindByName("Normal"), WParagraphStyle).CharacterFormat.Bold = True ' Creates an new instance of WordDocument class. Dim destDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal() ' Sets false value to exclude importing duplicate styles to destination document. destDocument.ImportStyles = False destDocument.Sections.Add(srcDocument.LastSection.Clone()) ' Releases the resources occupied by WordDocument instance. srcDocument.Close() ' Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. destDocument.Close() Gets or sets a value indicating whether to import styles with new unique name, if style exist in destination document with same name and different type. Default value is false True: if import styles with same name and different type into destination document by renaming uniquely; otherwise, false. This property is used for defining styles import behavior in the scenario of style exist in destination document with same name, but different type. Setting this property to true, styles with same name and different type will be imported into destination document from source document with new unique name. Setting it to false, styles with same name and different typewill not be imported and instead the document contents will use default style. // Creates an new instance of WordDocument class. WordDocument srcDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal(); // Creates a paragraph style (with name "Test") and adds into source document. WParagraphStyle paragraphStyle = new WParagraphStyle(srcDocument); paragraphStyle.Name = "Test"; srcDocument.Styles.Add(paragraphStyle); // Creates an new instance of WordDocument class. WordDocument destDocument = new WordDocument(); // Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal(); // Creates a character style (with same paragraph styel name in source) and adds into destination document. WCharacterStyle characterStyle = new WCharacterStyle(destDocument); characterStyle.Name = "Test"; destDocument.Styles.Add(characterStyle); // Sets true value to include importing duplicate styles (mismatched with types) to destination document. destDocument.ImportStylesOnTypeMismatch = true; destDocument.Sections.Add(srcDocument.LastSection.Clone()); // Releases the resources occupied by WordDocument instance. srcDocument.Close(); // Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. destDocument.Close(); ' Creates an new instance of WordDocument class. Dim srcDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. srcDocument.EnsureMinimal() ' Creates a paragraph style (with name "Test") and adds into source document. Dim paragraphStyle As New WParagraphStyle(srcDocument) paragraphStyle.Name = "Test" srcDocument.Styles.Add(paragraphStyle) ' Creates an new instance of WordDocument class. Dim destDocument As New WordDocument() ' Adds a section and a paragraph in the empty document. destDocument.EnsureMinimal() ' Creates a character style (with same paragraph styel name in source) and adds into destination document. Dim characterStyle As New WCharacterStyle(destDocument) characterStyle.Name = "Test" destDocument.Styles.Add(characterStyle) ' Sets true value to include importing duplicate styles (mismatched with types) to destination document. destDocument.ImportStylesOnTypeMismatch = True destDocument.Sections.Add(srcDocument.LastSection.Clone()) ' Releases the resources occupied by WordDocument instance. srcDocument.Close() ' Saves the document in the given name and format. destDocument.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. destDocument.Close() Gets or sets the default character format. The default char format. Gets or sets the default paragraph format. The default paragraph format. Gets the associated strings. The def para format. Gets a value indicating whether this instance is encrypted. if this instance is encrypted, set to true. Gets a value indicating whether this instance has pictures. if this instance contains picture, set to true. Gets a value indicating whether to write evaluation expired warning. if write warning, set to true. Gets or sets a value indicating whether [write protected]. true if [write protected]; otherwise, false. Gets or sets a value indicating whether to update Alternate chunk true update Alternate chunk ; otherwise, false. Gets/Sets the value indicates the Bookmakrk content delete operation is in progress true When deleting the bookmark contents ; otherwise, false. Gets the list names. The list names. Gets the list and its level number. The lists. Specifies the previous list level of a list style. The lists. Specifies the override style name of all the previous lists The lists. Specifies whether to use hanging indent as tab stop for lists in Doc to PDF lay outing. true if use hanging indent as tab stop for lists; otherwise, false. Specifies whether to use hanging indent as tab position in Word to PDF lay outing. true if use hanging indent as tab position; otherwise, false. Gets the themes settings of the document. The themes. Gets the compatibility settings of the Word document The compatibility settings. Gets/ Set the total number of alternate chunk in the document. The alternate chunk count. Determines whether to create base paragraph style - Normal. Handled to avoid repeated looping, while creating base paragraph style - Normal (Recursive call). Determines whether the Normal style is defined or not. Check Whether document is HTML Import to skip cloning of formFields Skip the removing process for child items from field start to field end Gets or sets a value indicating that the field range is adding to the collection Gets or sets the value indicating whether to include header in page border Gets or sets the value indicating whether to include footer in page border True if the document has different headers and footers for odd-numbered and even-numbered pages. Gets or sets the word version based on the nFib and nFibNew. Value of nFib Word version 0x00C0 97 create new document in OS 0x00C1 97 0x00C2 97 BIDI build 0x00D9 2000 0x0101 2002 0x010C 2003 0x0112 2007 The word version. Returns Whether the document has Table of Contents or not. Returns the TOC element of the word document. Gets or sets the Base path which is used to convert the relative path to absolute path. Gets document fields. To hold the all floating items inside the document Gets not parsed docx properties. Gets the list style Names in Docx and RTF parser alone The list styles. Gets a value indicating whether this instance has docx props. if this instance has docx prop, set to true. Indicates whether the document is currently closing. Determines whether the document contains cover page. Gets or sets the track changes balloon count Stores the sequence fields last values. Comparision options for the document Gets sub widgets Gets or sets the STTBF r mark. The STTBF r mark. Represents document properties Initializes a new instance of the class. The document. Sets the version. The version. Closes this instance. Gets or sets a value indicating whether to apply shading on form fields. True if form field shading is applied, otherwise false. Gets the document version. Read-only. The member that specifies the document version. Gets the hyphenation settings of the document. Read-only. The that specifies the document hyphenation settings. Represents Hyphenation settings of the document. Initializes a new instance of the class. The document. Closes this instance. Gets or sets a value indicating whether to hyphenate the document contents automatically. The default is false. True if to automatically hyphenate the document contents, otherwise false. Gets or sets a value indicating whether to hyphenate words in all capital letters. The default is true. True if to hyphenate words in all capital letters, otherwise false. Gets or sets the amount of whitespace which can be left at the end of a line (or added to justified lines) before hyphenation measured in point. A float that specifies the amount of whitespace. Hyphenation zone must be between 0.05 pt and 1584 pt. Gets or sets the maximum number of consecutive lines of text that can end with a hyphen. An integer that specifies the number of consecutive lines. Consecutive hyphens limit must be between 0 and 32767. Represents the template document that is attached to the Word document. The following code example demonstrates how to specify the path for the attached template document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument("Template.docx"); //Set the path for the attached template document document.AttachedTemplate.Path = "../Data/Attachedtemplate.dotm"; //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument("Template.docx") 'Set the path for the attached template document document.AttachedTemplate.Path = "../Data/Attachedtemplate.dotm" 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The SttbfAssoc. Gets or sets the path of the attached template document. The string that specifies the path to attached template document. Gets Scheme Color Gets format scheme Gets Font Scheme Closes this instance. Internal class font scheme theme elements Closes this instance. Closes this instance. Class represents settings of the document. Initializes a new instance of the class. The document. Closes this instance. Sets the compatibility mode for the document Gets the compatibility settings of the document. The compatibility settings. Gets or sets the compatibility mode for the document. The compatibility mode. Gets or sets the value indicate whether the compatibility Mode enabled while opening the Word document Gets or sets the value indicates whether to maintain the formatting of the field result during field update. Default value is false. //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Sets the maintain formatting option to the fields of the Word document document.Settings.MaintainFormattingOnFieldUpdate = true; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Sets the maintain formatting option to the fields of the Word document document.Settings.MaintainFormattingOnFieldUpdate = True 'Updates the document fields document.UpdateDocumentFields() 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets the value indicates whether to update the merge field result when field code is modified. Default value is true. /// //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); //Sets whether result code must be updated when field code is modified. document.Settings.UpdateResultOnFieldCodeChange = true; //Modifies the merge field code. (document.LastParagraph.ChildEntities[0] as WMergeField).FieldCode = "MERGEFIELD Employee_ID \\*MERGEFORMAT"; //Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") 'Sets whether result code must be updated when field code is modified. document.Settings.UpdateResultOnFieldCodeChange = True 'Modifies the merge field code. (document.LastParagraph.ChildEntities[0] as WMergeField).FieldCode = "MERGEFIELD Employee_ID \\*MERGEFORMAT" 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets whether the entire field entities or only WField instance should be added. The default is false. True, if add only WField instance; Otherwise false. Gets or sets a value indicating whether to shown the background colors and images in print layout view. Default value is false. The DisplayBackgrounds property corresponds to the Background colors and images (Print view only) option located on the View tab of the Options dialog box. This property is enabled automatically while setting the document background property. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Set the background type of the document. document.Background.Type = BackgroundType.Color; //Set the background color of the document. document.Background.Color = Color.Red; //Sets whether background colors and images are shown when a document is displayed in print layout view. document.Settings.DisplayBackgrounds = false; //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As New WordDocument("Template.docx") 'Set the background type of the document. document.Background.Type = BackgroundType.Color 'Set the background color of the document. document.Background.Color = Color.Red 'Sets whether background colors and images are shown when a document is displayed in print layout view. document.Settings.DisplayBackgrounds = False 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets the value for hash value in document protection. Gets or sets the value for salt value in document protection. Determines whether the Word document is optimized for browser. Default it is true. Gets or sets the destination duplicate list style names while merging two different documents. Gets or sets the theme font languages of the current document. Gets or sets a value indicating whether to maintain information about imported list styles in this document. Default value is false True: if the information about imported list styles are preserved in this document; otherwise, false. This property is used for defining list restart behavior and avoid importing of duplicate list styles in the scenario of cloning and merging independent elements to this document. Setting it to true, the document preserves information about imported list styles. Setting it to false, the document doesn't preserve any information about imported list styles. The following code example demonstrates how to preserve information about imported list styles in this document. //Opens the source document WordDocument sourceDocument = new WordDocument("sourceFileName.docx"); //Opens the destination document WordDocument destinationDocument = new WordDocument("targetFileName.docx"); //Sets true value to maintain imported list style cache to destination document destinationDocument.Settings.MaintainImportedListCache = true; //Processes the body contents for each section in the Word document foreach (WSection section in sourceDocument.Sections) { //Accesses the body of section where all the contents in document are apart foreach (TextBodyItem bodyItem in section.Body.ChildEntities) { destinationDocument.LastSection.Body.ChildEntities.Add(bodyItem.Clone()); } } //Closes the source document sourceDocument.Close(); //Sets false value to exclude imported list style cache to destination document destinationDocument.Settings.MaintainImportedListCache = false; //Saves the destination document destinationDocument.Save("outputFileName.docx", FormatType.Docx); //Closes the destination document destinationDocument.Close(); 'Opens the source document Dim sourceDocument As New WordDocument(sourceFileName) 'Opens the destination document Dim destinationDocument As New WordDocument(targetFileName) 'Sets true value to maintain imported list style cache to destination document destinationDocument.Settings.MaintainImportedListCache = True 'Processes the body contents for each section in the Word document For Each section As WSection In sourceDocument.Sections 'Accesses the body of section where all the contents in document are apart For Each bodyItem As TextBodyItem In section.Body.ChildEntities destinationDocument.LastSection.Body.ChildEntities.Add(bodyItem.Clone()) Next Next 'Closes the source document sourceDocument.Close() 'Sets false value to exclude imported list style cache to destination document destinationDocument.Settings.MaintainImportedListCache = False 'Saves the destination document destinationDocument.Save(outputFileName, FormatType.Docx) 'Closes the destination document destinationDocument.Close() Gets or sets the value indicates whether to skip the Complex format is not supported exception while opening an incrementally saved (*.doc) Word document. Default value is false True: if need to skip the exception when a Word document have incremental save information while opening; otherwise, False. Setting the SkipIncrementalSaveValidation property as true, skips the Complex format is not supported exception and reads the document content present in the last complete save operation alone. The recently edited content saved as incremental save using older Microsoft Word application can't be retained. //Creates new instance of WordDocument class. WordDocument document = new WordDocument(); //Sets flag to skip old file format exception while opening document. document.Settings.SkipIncrementalSaveValidation = true; //Opens an existing document from file system through. document.Open("Template.docx", FormatType.Automatic); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Creates new instance of WordDocument class. Dim document As New WordDocument() 'Sets flag to skip old file format exception while opening document. document.Settings.SkipIncrementalSaveValidation = True 'Opens an existing document from file system through. document.Open(fileName, FormatType.Automatic) 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets the value of math properties. Gets or sets a value that indicates whether to preserve embedded OLE images as normal images. Default value is false. //Creates an empty Word document instance WordDocument document = new WordDocument(); //Sets flag to preserve embedded Ole images as normal image while opening document document.Settings.PreserveOleImageAsImage = true; //Loads or opens an existing Word document document.Open(fileName, FormatType.Automatic); //Saves the resultant Word document document.Save("Sample.docx", FormatType.Docx); //Closes the Word document document.Close(); 'Creates an empty Word document instance Dim document As New WordDocument() 'Sets flag to preserve embedded Ole images as normal image while opening document document.Settings.PreserveOleImageAsImage = True 'Loads or opens an existing Word document document.Open("Template.docx", FormatType.Automatic) 'Saves the resultant Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the Word document document.Close() Class represents compatibility options of the document. Initializes a new instance of the class. The document. Sets the CompatibilityOptions based on key. The CompatibilityOptions key. The value. Gets the CompatibilityOptions value based on key. The CompatibilityOptions key. Closes this instance. Gets or sets the with the specified key. Gets the properties hash. The properties hash. Initializes a new instance of the class. Initializes a new instance of the class. Parses the specified associated strings. The associated strings. Gets the associated strings as byte array. Gets or sets the attached template. The attached template. Gets or sets the title. The title. Gets or sets the subject. The subject. Gets or sets the key words. The key words. Gets or sets the author. The author. Gets or sets the last modified by. The last modified by. Gets or sets the mail merge data source. The mail merge data source. Gets or sets the mail merge header document. The mail merge header document. Gets or sets the write password. The write password. Represents the footnote in the word document. The following code example demonstrates how to to change the default footnote separator. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Create a section IWSection section = document.AddSection(); //Add a paragraph to a section IWParagraph paragraph = section.AddParagraph(); //Append the text to paragraph paragraph.AppendText("Working with footnotes"); //Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add a paragraph to a section paragraph = section.AddParagraph(); //Append the footnotes WFootnote footnote = (WFootnote)paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Footnote); WTextBody separator = document.Footnotes.Separator; //Replace the default foot note separate by text separator.Paragraphs[0].Text = "Footnote separator"; //Set the footnote character format footnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript; //Inserts the text into the paragraph paragraph.AppendText("Sample content for footnotes").CharacterFormat.Bold = true; //Add footnote text paragraph = footnote.TextBody.AddParagraph(); paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) End Sub Footnote separator. Footnote continuation Separator. Footnote continuation notice. The owner Word document. Initializes a new instance of the class. The object. Initializes a new instance of the class. The footnote. Creates a duplicate copy of the current footnote. The cloned object. Sets the owner. The document. Closes this instance. Gets or sets the footnote separator of the document. The that represents the separator. Gets or sets the footnote continuation separator of the document. The that represents the continuation separator. Gets or sets the footnote continuation notice of the document. The that represents the continuation notice. Represents an endnote in the Word document. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Create a section IWSection section = document.AddSection(); //Add a paragraph to a section IWParagraph paragraph = section.AddParagraph(); //Append the text to paragraph paragraph.AppendText("Working with footnotes"); //Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add a paragraph to section paragraph = section.AddParagraph(); //Append the endnote WFootnote endnote = (WFootnote)paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Endnote); WTextBody separator = document.Endnotes.Separator; //Replace the default foot note separate by text separator.Paragraphs[0].Text = "Endnote separator"; //Set the endnote character format endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript; //Insert the text into the paragraph paragraph.AppendText("Sample content for endnotes").CharacterFormat.Bold = true; //Add the footnote text paragraph = endnote.TextBody.AddParagraph(); paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Create a section Dim section As IWSection = document.AddSection() 'Add a paragraph to a section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to paragraph paragraph.AppendText("Working with footnotes") 'Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add a paragraph to section paragraph = section.AddParagraph() 'Append the endnote Dim endnote As WFootnote = DirectCast(paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Endnote), WFootnote) Dim separator As WTextBody = document.Endnotes.Separator 'Replace the default foot note separate by text separator.Paragraphs(0).Text = "Endnote separator" 'Set the endnote character format endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript 'Insert the text into the paragraph paragraph.AppendText("Sample content for endnotes").CharacterFormat.Bold = True 'Add the footnote text paragraph = endnote.TextBody.AddParagraph() paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Endnote separator Endnote continuation Separator Endnote continuation notice The owner Word document. Initializes a new instance of the class. The object. Initializes a new instance of the class. The endnote. Creates the duplicate copy of the current endnote. The cloned object. Sets the owner. The document. Closes this instance. Gets or sets the endnote separator of the document. The that represents the separator. Gets or sets the endnote continuation separator of the document. The that represents the continuation separator. Gets or sets the endnote continuation notice of the document. The that represents the continuation notice. Image downloading failed event handler This delegate is not supported in MVC6 and Xamarin platforms. Represents Image downloading failed event arguments. This class is not supported in MVC6 and Xamarin platforms. Initialize ImageDownloadingFailedEventArgs Gets the image URI present in the input HTML. Read-only. The string that specifies the URI to get image. This property is not supported in MVC6 and Xamarin platforms. Gets or sets the user name to access the protected site. The string that specifies the user name to get the image from protected site. This property is not supported in MVC6 and Xamarin platforms. Gets or sets the password to access the protected site. The string that specifies the password to get the image from protected site. This property is not supported in MVC6 and Xamarin platforms. Represents the method that handles ImageNodeVisited event Represents the ImageNodeVisited event that occurs during importing and exporting the HTML file and also exporting as a Markdown file. Initialize ImageNodeVisitedEventArgs Gets or sets the image URI. While importing HTML, this property denotes the image URI in the input HTML file. While exporting HTML and Markdown files, this property denotes the image URI to be saved in the output file. Execute Image downloading failed event Execute Image node visited event Gets or sets a value indicating whether to consider the list style type for the corresponding list . Default value is false. True then considers the list style type; otherwise, false This property will be considered only for list style type None in HTML importing The following code example demonstrates how to set value for IsConsiderListStyleAttribute property private void Button1_Click(System.Object sender, System.EventArgs e) { //Creates instance for HTML import settings. HTMLImportSettings hTMLImport = new HTMLImportSettings(); //Enable the IsConsiderListStyleAttribute to consider the list style type. hTMLImport.IsConsiderListStyleAttribute = true; //Creates instance for Word document. WordDocument wordDocument = new WordDocument(); //Sets the HTML import settings for HTML to Word conversion. wordDocument.HTMLImportSettings = hTMLImport; //Opens the existing HTML document. wordDocument.Open(@"InputHTML.html"); //Save the document as Word document. wordDocument.Save("sample.docx"); //Close the document. } Private Sub button_Click(sender As Object, e As EventArgs) 'Creates instance for HTML import settings. Dim hTMLImport As New HTMLImportSettings() 'Enable the IsConsiderNoneListStyle to consider the list style type. hTMLImport.IsConsiderListStyleAttribute = True 'Creates instance for Word document. Dim wordDocument As New WordDocument() 'Sets the HTML import settings for HTML to Word conversion. WordDocument.HTMLImportSettings = hTMLImport 'Opens the existing HTML document. WordDocument.Open("InputHTML.html") 'Save the document as Word document. WordDocument.Save("sample.docx") 'Close the document. WordDocument.Close() End Sub Some CSS properties are not considered by MS Word during HTML conversions. At our side we maintain boolean to ensure whether to parse unsupported CSS properties or not, for Document Editor clipboard functionality. Gets a value indicating whether Image node visited event has been subscribed or not.. True if the Image node visited event has been subscribed; otherwise, false. Throws event when downloading of HTTP or FTP image fails from secured sites. This event is not supported in MVC6 and Xamarin platforms. Represents the page setup description. The following code example demonstrates how to set the page setup properties. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Set page setup options section.PageSetup.Orientation = PageOrientation.Landscape; section.PageSetup.Margins.All = 72; section.PageSetup.Borders.LineWidth = 2; section.PageSetup.DifferentFirstPage = true; section.PageSetup.DifferentOddAndEvenPages = true; section.PageSetup.FooterDistance = 42; section.PageSetup.HeaderDistance = 52; section.PageSetup.LineNumberingDistanceFromText = 10; section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous; section.PageSetup.LineNumberingStartValue = 5; section.PageSetup.LineNumberingStep = 2; section.PageSetup.PageBorderOffsetFrom = PageBorderOffsetFrom.Text; section.PageSetup.PageBordersApplyType = PageBordersApplyType.AllPages; section.PageSetup.PageNumberStyle = PageNumberStyle.RomanUpper; section.PageSetup.PageSize = new SizeF(612, 792); section.PageSetup.PageStartingNumber = 1; section.PageSetup.VerticalAlignment = PageAlignment.Top; //Add the page number field to even footer of the document IWParagraph paragraph = section.HeadersFooters.EvenFooter.AddParagraph(); paragraph.AppendText("PageNumber_EvenPageFooter "); paragraph.AppendField("Page", FieldType.FieldPage); //Add the page number field to odd footer of the document paragraph = section.HeadersFooters.OddFooter.AddParagraph(); paragraph.AppendText("PageNumber_OddPageFooter "); paragraph.AppendField("Page", FieldType.FieldPage); //Add the page number field to first footer of the document paragraph = section.HeadersFooters.FirstPageFooter.AddParagraph(); //Add page number field to the document paragraph.AppendText("PageNumber_FirstPageFooter "); paragraph.AppendField("Page", FieldType.FieldPage); //Add a paragraph to section paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); paragraph.AppendBreak(Syncfusion.DocIO.DLS.BreakType.PageBreak); paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); paragraph.AppendBreak(Syncfusion.DocIO.DLS.BreakType.PageBreak); paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() 'Set page setup options section.PageSetup.Orientation = PageOrientation.Landscape section.PageSetup.Margins.All = 72 section.PageSetup.Borders.LineWidth = 2 section.PageSetup.DifferentFirstPage = True section.PageSetup.DifferentOddAndEvenPages = True section.PageSetup.FooterDistance = 42 section.PageSetup.HeaderDistance = 52 section.PageSetup.LineNumberingDistanceFromText = 10 section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous section.PageSetup.LineNumberingStartValue = 5 section.PageSetup.LineNumberingStep = 2 section.PageSetup.PageBorderOffsetFrom = PageBorderOffsetFrom.Text section.PageSetup.PageBordersApplyType = PageBordersApplyType.AllPages section.PageSetup.PageNumberStyle = PageNumberStyle.RomanUpper section.PageSetup.PageSize = New SizeF(612, 792) section.PageSetup.PageStartingNumber = 1 section.PageSetup.VerticalAlignment = PageAlignment.Top 'Add the page number field to even footer of the document Dim paragraph As IWParagraph = section.HeadersFooters.EvenFooter.AddParagraph() paragraph.AppendText("PageNumber_EvenPageFooter ") paragraph.AppendField("Page", FieldType.FieldPage) 'Add the page number field to odd footer of the document paragraph = section.HeadersFooters.OddFooter.AddParagraph() paragraph.AppendText("PageNumber_OddPageFooter ") paragraph.AppendField("Page", FieldType.FieldPage) 'Add the page number field to first footer of the document paragraph = section.HeadersFooters.FirstPageFooter.AddParagraph() 'Add page number field to the document paragraph.AppendText("PageNumber_FirstPageFooter ") paragraph.AppendField("Page", FieldType.FieldPage) 'Add a paragraph to section paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") paragraph.AppendBreak(Syncfusion.DocIO.DLS.BreakType.PageBreak) paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") paragraph.AppendBreak(Syncfusion.DocIO.DLS.BreakType.PageBreak) paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Limit number of converting arabic to \"A\" format. Index of A char in the ASCII table. Properties key Initializes a new instance of the class. The sec. Sets the property value for page setup property. Name of the property. Value of the property. Initializes page setup for .docx format Compares the current section properties with another section properties The paragraph format Inserts the page numbers. True to insert the page number at the top of the page; False to insert the page number at the bottom of the page. The horizontal alignment of the page number. The following code example demonstrates how to insert page number. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into Word document IWSection section = document.AddSection(); section.PageSetup.PageStartingNumber = 1; section.PageSetup.RestartPageNumbering = true; section.PageSetup.PageNumberStyle = PageNumberStyle.Arabic; section.PageSetup.InsertPageNumbers(false, PageNumberAlignment.Center); //Add the paragraph IWParagraph paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into Word document Dim section As IWSection = document.AddSection() section.PageSetup.PageStartingNumber = 1 section.PageSetup.RestartPageNumbering = True section.PageSetup.PageNumberStyle = PageNumberStyle.Arabic section.PageSetup.InsertPageNumbers(False, PageNumberAlignment.Center) 'Add the paragraph Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds letter instead of number. String builder object. Number to be converted to letter. Utility metnod. Helps to convert arabic number to \"A\" format. Arabic number. Sequence of number. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Registers child objects in XDSL holder. Returns a string that represents the current object. A string that represents the current object. Clones itself. Closes the item. Clone page size PageSize Sets the property value. The property key. The value. Gets the property value. The prop key. Ensures the composites. Get the DefValues for the key. Returns the default values. The integer that specifies the key. An object that specifies the default value. Gets / sets endnote numbering format Gets / sets footnote numbering format Gets / sets the restart index for endnote Gets / sets the restart index for footnotes Gets / sets footnote position in the document Gets / sets endnote position in the document Gets / sets the initial footnote number Gets / sets the initial endnote number Gets or sets the length of the auto tab. The length of the auto tab. "This property has been deprecated. Use the DefaultTabWidth property of WordDocument class to set default tab width for the document. Gets or sets page size in points. Gets or sets the orientation of the page. Gets sets the vertical alignment of text on each page in a document or section. Gets or sets the distance (in points) between the all four edge of the page and the all four boundary of the body text. Gets or sets the distance (in points) between the header and the top of the page. Gets or sets the distance (in points) between the footer and the bottom of the page. Gets width of client area. Read-only. float value represents the text rendering area width. Gets or sets a value indicating whether a different header or footer is used on the first page. The default is false True if a different header or footer is used on the first page; otherwise, false Gets or sets a value indicating whether a different header or footer is used on the odd and even pages. The default is false True if a different header or footer is used on the odd and even pages; otherwise, false Gets or sets the way line numbering runs� that is, whether it starts over at the beginning of a new page or section or runs continuously. The following code example illustrates how to add a line number for a section. //Open existing Word document. WordDocument document = new WordDocument("Sample.docx"); //Iterate each section foreach (WSection section in document.Sections) { //Set the Line numbering mode for the Particular Section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous; } //Save the resultant Word document. document.Save("Sample.docx"); //Close the document instance. document.Close(); //Open existing Word document. Dim document As New WordDocument("Sample.docx") //Iterate each section For Each section As WSection In document.Sections //Set the Line Numbering Mode for the Particular Section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous Next //Save the resultant Word document. document.Save("Sample.docx") //Close the document instance. document.Close() Gets or sets the numeric increment for line numbers. For example, if the CountBy property is set to 5, every fifth line will display the line number. The following code example illustrates how to add a line number with step value for a section. //Open existing Word document. WordDocument document = new WordDocument("Sample.docx"); //Iterate each section foreach (WSection section in document.Sections) { //Set the line numbering mode for the Particular section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous; //Set the Step value for the LineNumberingMode. section.PageSetup.LineNumberingStep=2; } //Save the resultant Word document. document.Save("Sample.docx"); //Close the document instance. document.Close(); //Open existing Word document. Dim document As New WordDocument("Sample.docx") //Iterate each section For Each section As WSection In document.Sections //Set the line numbering mode for the Particular section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous //Set the Step value for the LineNumberingMode. section.PageSetup.LineNumberingStep = 2 Next //Save the resultant Word document. document.Save("Sample.docx") //Close the document instance. document.Close() Gets or sets the starting line number. The following code example illustrates how to add a line number with start value for a section. //Open existing Word document. WordDocument document = new WordDocument("Sample.docx"); //Iterate each section foreach (WSection section in document.Sections) { //Set the line numbering mode for the Particular Section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous; //Set the Starting value for the LineNumberingMode. section.PageSetup.LineNumberingStartValue = 100; } //Save the resultant Word document. document.Save("Sample.docx"); //Close the document instance. document.Close(); //Open existing Word document. Dim document As New WordDocument("Sample.docx") //Iterate each section For Each section As WSection In document.Sections //Set the line numbering mode for the Particular Section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous //Set the Starting Value for the LineNumbering Mode. section.PageSetup.LineNumberingStartValue = 100 Next //Save the resultant Word document. document.Save("Sample.docx") //Close the document instance. document.Close() Gets or sets the distance (in points) between the right edge of line numbers and the left edge of the document text. The following code example illustrates how to add a line number and its distance from margins of the document for a section. //Open existing Word document. WordDocument document = new WordDocument("Sample.docx"); //Iterate each section foreach (WSection section in document.Sections) { //Set the line numbering mode for the particular section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous; //Set the Distance value for the LineNumbering Mode. section.PageSetup.LineNumberingDistanceFromText = 55.7f; } //Save the resultant Word document. document.Save("Sample.docx"); //Close the document instance. document.Close(); //Open existing Word document. Dim document As New WordDocument("Sample.docx") //Iterate each section For Each section As WSection In document.Sections //Set the line numbering mode for the particular section. section.PageSetup.LineNumberingMode = LineNumberingMode.Continuous //Set the Distance value for the LineNumbering Mode. section.PageSetup.LineNumberingDistanceFromText = 55.7F Next //Save the resultant Word document. document.Save("Sample.docx") //Close the document instance. document.Close() Gets or sets the value that determine on which pages border is applied. Gets or sets the position of page border. Gets or sets a value indicating whether the current page border is the front page border. The default is true. True if the current page border is front page; otherwise, false. Gets the page border. Read-only. The collection represents the left, right, top and bottom borders of the page Gets or sets a value indication whether section contains right-to-left text. The default is false. True if the section contains right-to-left text; otherwise, false Get/set Equal column width property. Gets or sets the page number style. Gets or sets the starting page number. The page starting number. Gets or sets a value indicating whether to restart page numbering. True if restart page numbering; otherwise, false. Gets or sets the page line pitch. The line pitch. Gets or sets the type of the pitch. The type of the pitch. Gets or sets a value indicating whether to draw lines between columns. if draw lines between columns, set to true. Gets the page number setup. Read-only. Gets or sets value for first paper source of the current section in paper settings The following code example illustrates how to add a line number with start value for a section. //Creates an instance of WordDocument. WordDocument document = new WordDocument(); //Adds a new section into the Word document. IWSection section= document.AddSection(); //Sets the PrinterPaperTray value for FirstPageTray in pagesetup options. section.PageSetup.FirstPageTray = PrinterPaperTray.EnvelopeFeed; //Adds a new simple paragraph into the section. IWParagraph paragraph = section.AddParagraph(); //Adds new text to the paragraph. paragraph.AppendText("Added paper source"); //Saves the resultant Word document. document.Save("Sample.docx"); //Closes the document. document.Close(); //Creates an instance of WordDocument. Dim document As WordDocument = New WordDocument() //Adds a new section into the Word document. Dim section As IWSection = document.AddSection() //Sets the PrinterPaperTray value for FirstPageTray in pagesetup options. section.PageSetup.FirstPageTray = PrinterPaperTray.EnvelopeFeed //Adds a new simple paragraph into the section. Dim paragraph As IWParagraph = section.AddParagraph() //Adds new text to the paragraph. paragraph.AppendText("Added paper source") //Saves the resultant Word document. document.Save("Sample.docx") //Closes the document. document.Close() Gets or sets value for other paper source of the current section in paper settings The following code example illustrates how to add a line number with start value for a section. //Creates an instance of WordDocument. WordDocument document = new WordDocument(); //Adds a new section into the Word document. IWSection section= document.AddSection(); //Sets the PrinterPaperTray value for OtherPagesTray in pagesetup options. section.PageSetup.OtherPagesTray = PrinterPaperTray.MiddleBin; //Adds a new simple paragraph into the section. IWParagraph paragraph = section.AddParagraph(); //Adds new text to the paragraph. paragraph.AppendText("Added paper source"); //Saves the resultant Word document. document.Save("Sample.docx"); //Closes the document. document.Close(); //Creates an instance of WordDocument. Dim document As WordDocument = New WordDocument() //Adds a new section into the Word document. Dim section As IWSection = document.AddSection() //Sets the PrinterPaperTray value for OtherPagesTray in pagesetup options. section.PageSetup.OtherPagesTray = PrinterPaperTray.MiddleBin //Adds a new simple paragraph into the section. Dim paragraph As IWParagraph = section.AddParagraph() //Adds new text to the paragraph. paragraph.AppendText("Added paper source") //Saves the resultant Word document. document.Save("Sample.docx") //Closes the document. document.Close() Gets or sets value for Number of columns. Gets or sets value for Columnspace. Represents the page numbers in the Word document. The following code example demonstrates how to chapter numbering in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into Word document IWSection section = document.AddSection(); //Add the page number to document section.PageSetup.PageStartingNumber = 1; section.PageSetup.RestartPageNumbering = true; section.PageSetup.PageNumberStyle = PageNumberStyle.Arabic; //Specify the chapter number for heading 1 section.PageSetup.PageNumbers.HeadingLevelForChapter = HeadingLevel.Heading1; //SPecify t he chapter number and page number separator section.PageSetup.PageNumbers.ChapterPageSeparator = ChapterPageSeparatorType.Colon; //Add a footer paragraph text to the document IWParagraph paragraph = section.HeadersFooters.Footer.AddParagraph(); paragraph.ParagraphFormat.Tabs.AddTab(523f, TabJustification.Right, Syncfusion.DocIO.DLS.TabLeader.NoLeader); //Add text for the footer paragraph paragraph.AppendText("Copyright Northwind Inc. 2001 - 2024"); //Add page number field to the document paragraph.AppendText("\tPage "); paragraph.AppendField("Page", FieldType.FieldPage); //Add the paragraph to the text body of the section paragraph = section.AddParagraph(); paragraph.AppendText("First Title with Heading 1 Style"); //Apply Heading 1 built-in style paragraph.ApplyStyle(BuiltinStyle.Heading1); WParagraphStyle paraStyle = document.Styles.FindByName("Heading 1") as WParagraphStyle; //Add the number format list for the Heading 1 style paraStyle.ListFormat.ApplyDefNumberedStyle(); paraStyle.ListFormat.CurrentListLevel.PatternType = ListPatternType.UpLetter; //Add the paragraph paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Add the page break paragraph.AppendBreak(Syncfusion.DocIO.DLS.BreakType.PageBreak); //Add the another paragraph to section paragraph = section.AddParagraph(); paragraph.AppendText("Second Title with Heading 1 Style"); //Apply Heading 1 built-in style paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add the paragraph paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into Word document Dim section As IWSection = document.AddSection() 'Add the page number to document section.PageSetup.PageStartingNumber = 1 section.PageSetup.RestartPageNumbering = True section.PageSetup.PageNumberStyle = PageNumberStyle.Arabic 'Specify the chapter number for heading 1 section.PageSetup.PageNumbers.HeadingLevelForChapter = HeadingLevel.Heading1 'SPecify t he chapter number and page number separator section.PageSetup.PageNumbers.ChapterPageSeparator = ChapterPageSeparatorType.Colon 'Add a footer paragraph text to the document Dim paragraph As IWParagraph = section.HeadersFooters.Footer.AddParagraph() paragraph.ParagraphFormat.Tabs.AddTab(523F, TabJustification.Right, Syncfusion.DocIO.DLS.TabLeader.NoLeader) 'Add text for the footer paragraph paragraph.AppendText("Copyright Northwind Inc. 2001 - 2024") 'Add page number field to the document paragraph.AppendText(vbTab & "Page ") paragraph.AppendField("Page", FieldType.FieldPage) 'Add the paragraph to the text body of the section paragraph = section.AddParagraph() paragraph.AppendText("First Title with Heading 1 Style") 'Apply Heading 1 built-in style paragraph.ApplyStyle(BuiltinStyle.Heading1) Dim paraStyle As WParagraphStyle = TryCast(document.Styles.FindByName("Heading 1"), WParagraphStyle) 'Add the number format list for the Heading 1 style paraStyle.ListFormat.ApplyDefNumberedStyle() paraStyle.ListFormat.CurrentListLevel.PatternType = ListPatternType.UpLetter 'Add the paragraph paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") 'Add the page break paragraph.AppendBreak(Syncfusion.DocIO.DLS.BreakType.PageBreak) 'Add the another paragraph to section paragraph = section.AddParagraph() paragraph.AppendText("Second Title with Heading 1 Style") 'Apply Heading 1 built-in style paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add the paragraph paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initialize key for the properties. Creates duplicate copy of the page number. The reference to the newly created . Sets the property value. The property key. The value. Compares the current section properties with another section properties The paragraph format Gets the property value. The prop key. Initializes a new instance of class. Return the default values for the property. Gets or sets the separator between chapter number and page number. The member that specifies the numbering separator. Gets or sets the heading level to include chapter number along with page number. The member that specifies the heading level of the chapter. Represents the paragraph of text in the Word document. Represents a paragraph inside a Section. Represents style holders Applies a new style. The string that represents the style name. Specified style must exists in Document.Styles collection Applies the built-in style. The member that specifies the built-in style. Gets the style name. The string that represents the style name. Applies the style with the specified name to the paragraph. The string that represents the style name. The specified style must exists in collection. Applies the specified built-in style to the paragraph. The member that specifies the style. Appends the specified text to the end of the paragraph. The string that specifies the text to be appended. The instance that represents the newly added text. The following example illustrates how to append text to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text to the paragraph IWTextRange text = paragraph.AppendText("A new text is added to the paragraph."); text.CharacterFormat.FontSize = 14; text.CharacterFormat.Bold = true; text.CharacterFormat.TextColor = Color.Green; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text to the paragraph Dim text As IWTextRange = paragraph.AppendText("A new text is added to the paragraph.") text.CharacterFormat.FontSize = 14 text.CharacterFormat.Bold = True text.CharacterFormat.TextColor = Color.Green 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following example illustrates how to append inline content control to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new inline control to the paragraph IInlineContentControl inlineControl = paragraph.AppendInlineContentControl(ContentControlType.RichText); WTextRange controlText = new WTextRange(document); controlText.CharacterFormat.Bold = true; controlText.CharacterFormat.TextColor = Color.Green; controlText.Text = "Inline content control inserted."; //Add text range to the control added inlineControl.ParagraphItems.Add(controlText); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new inline control to the paragraph Dim inlineControl As IInlineContentControl = paragraph.AppendInlineContentControl(ContentControlType.RichText) Dim textRange As New WTextRange(document) textRange.CharacterFormat.Bold = True textRange.CharacterFormat.TextColor = Color.Green textRange.Text = "Inline content control inserted." 'Add text range to the control added inlineControl.ParagraphItems.Add(textRange) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the specified image to the end of paragraph. The to be added. The instance that represents the newly added image. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin applications. The following example illustrates how to append image to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add image to the paragraph IWPicture picture = paragraph.AppendPicture(Image.FromFile("Image.png")); //Set height and width for the image picture.Height = 100; picture.Width = 100; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add image to the paragraph Dim picture As IWPicture = paragraph.AppendPicture(Image.FromFile("Image.png")) 'Set height and width for the image picture.Height = 100 picture.Width = 100 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the image specified by the array to the end of paragraph. The array of the image to be added. The instance that represents the newly added image. The following example illustrates how to append image to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph firstParagraph = section.AddParagraph(); //Get the image and convert to byte array. Image image = Image.FromFile("Image.png"); MemoryStream stream = new MemoryStream(); image.Save(stream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = stream.ToArray(); //Add image to the paragraph IWPicture picture = firstParagraph.AppendPicture(imageBytes); //Set height and width for the image picture.Height = 100; picture.Width = 100; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim firstParagraph As IWParagraph = section.AddParagraph() 'Get the image and convert to byte array. Dim image__1 As Image = Image.FromFile("Image.png") Dim stream As New MemoryStream() image__1.Save(stream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes As Byte() = stream.ToArray() 'Add image to the paragraph Dim picture As IWPicture = firstParagraph.AppendPicture(imageBytes) 'Set height and width for the image picture.Height = 100 picture.Width = 100 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following example illustrates how to append image to the paragraph. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph firstParagraph = section.AddParagraph(); //Get the image as byte array. byte[] imageBytes = File.ReadAllBytes("Image.png"); //Get the SVG image as byte array. byte[] svgData = File.ReadAllBytes("Image.svg"); //Add SVG image to the paragraph IWPicture picture = firstParagraph.AppendPicture(svgData, imageBytes); //Set height and width for the image picture.Height = 100; picture.Width = 100; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim firstParagraph As IWParagraph = section.AddParagraph() 'Get the png image as byte array. Dim imageBytes As Byte() = File.ReadAllBytes("Image.png") 'Get the SVG image as byte array. Dim svgData As Byte() = File.ReadAllBytes("Image.svg") 'Add SVG image to the paragraph Dim picture As IWPicture = firstParagraph.AppendPicture(svgData, imageBytes); 'Set height and width for the image picture.Height = 100 picture.Width = 100 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Appends a chart to the end of the paragraph with the specified data, width and height. The two-dimensional array that specifies the data for chart. The float that represents the width for chart. The float that represents the height for chart. The instance that represents the newly added chart. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin applications. The following example illustrates how to append new chart to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Input data for chart object[][] data = new object[6][]; for (int i = 0; i < 6; i++) data[i] = new object[3]; data[0][0] = ""; data[1][0] = "Gravad lax"; data[2][0] = "Louisiana Hot spiced Okara"; data[3][0] = "Mascarpone Fabioli"; data[4][0] = "Wimmers gute SemmelKnodel"; data[5][0] = "Maxilaku"; data[0][1] = "Sum of Purchases"; data[1][1] = 286; data[2][1] = 680; data[3][1] = 288; data[4][1] = 200; data[5][1] = 731; data[0][2] = "Sum of Future Expenses"; data[1][2] = 1300; data[2][2] = 700; data[3][2] = 1280; data[4][2] = 1200; data[5][2] = 2660; /// //Create and Append chart to the paragraph WChart chart = paragraph.AppendChart(data, 470, 300); //Set chart type and title chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set series type chart.Series[0].SerieType = OfficeChartType.Line_Markers; chart.Series[1].SerieType = OfficeChartType.Bar_Clustered; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Input data for chart Dim data As Object()() = New Object(5)() {} For i As Integer = 0 To 5 data(i) = New Object(2) {} Next data(0)(0) = "" data(1)(0) = "Gravad lax" data(2)(0) = "Louisiana Hot spiced Okara" data(3)(0) = "Mascarpone Fabioli" data(4)(0) = "Wimmers gute SemmelKnodel" data(5)(0) = "Maxilaku" data(0)(1) = "Sum of Purchases" data(1)(1) = 286 data(2)(1) = 680 data(3)(1) = 288 data(4)(1) = 200 data(5)(1) = 731 data(0)(2) = "Sum of Future Expenses" data(1)(2) = 1300 data(2)(2) = 700 data(3)(2) = 1280 data(4)(2) = 1200 data(5)(2) = 2660 'Create and Append chart to the paragraph Dim chart As WChart = paragraph.AppendChart(data, 470, 300) 'Set chart type and title chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set series type chart.Series(0).SerieType = OfficeChartType.Line_Markers chart.Series(1).SerieType = OfficeChartType.Bar_Clustered chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends chart to the end of the paragraph with the specified width and height. The float that represents the width for chart. The float that represents the height for chart. The instance that represents the newly added chart. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin applications. The following example illustrates how to append new chart to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Create and Append chart to the paragraph WChart chart = paragraph.AppendChart(446, 270); //Set chart type chart.ChartType = OfficeChartType.Pie; //Set chart title chart.ChartTitle = "Best Selling Products"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; //Set data for chart chart.ChartData.SetValue(1, 1, ""); chart.ChartData.SetValue(1, 2, "Sales"); chart.ChartData.SetValue(2, 1, "Cote de Blaye"); chart.ChartData.SetValue(2, 2, 141.396); chart.ChartData.SetValue(3, 1, "Thuringer Rostbratwurst"); chart.ChartData.SetValue(3, 2, 80.368); chart.ChartData.SetValue(4, 1, "Raclette Courdavault"); chart.ChartData.SetValue(4, 2, 71.155); chart.ChartData.SetValue(5, 1, "Tarte au sucre"); chart.ChartData.SetValue(5, 2, 47.234); chart.ChartData.SetValue(6, 1, "Camembert Pierrot"); chart.ChartData.SetValue(6, 2, 46.825); chart.ChartData.SetValue(7, 1, "Gnocchi di nonna Alice"); chart.ChartData.SetValue(7, 2, 42.593); chart.ChartData.SetValue(8, 1, "Manjimup Dried Apples"); chart.ChartData.SetValue(8, 2, 41.819); chart.ChartData.SetValue(9, 1, "Alice Mutton"); chart.ChartData.SetValue(9, 2, 32.698); chart.ChartData.SetValue(10, 1, "Carnarvon Tigers"); chart.ChartData.SetValue(10, 2, 29.171); chart.ChartData.SetValue(11, 1, "R�ssle Sauerkraut."); chart.ChartData.SetValue(11, 2, 25.696); //Create a new chart series with the name �Sales� IOfficeChartSerie pieSeries = chart.Series.Add("Sales"); pieSeries.Values = chart.ChartData[2, 2, 11, 2]; //Set data label pieSeries.DataPoints.DefaultDataPoint.DataLabels.IsValue = true; pieSeries.DataPoints.DefaultDataPoint.DataLabels.Position = OfficeDataLabelPosition.Outside; //Set background color chart.ChartArea.Fill.ForeColor = Color.FromArgb(242, 242, 242); chart.PlotArea.Fill.ForeColor = Color.FromArgb(242, 242, 242); chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set category labels chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 11, 1]; //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Create and Append chart to the paragraph Dim chart As WChart = paragraph.AppendChart(446, 270) 'Set chart type chart.ChartType = OfficeChartType.Pie 'Set chart title chart.ChartTitle = "Best Selling Products" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 'Set data for chart chart.ChartData.SetValue(1, 1, "") chart.ChartData.SetValue(1, 2, "Sales") chart.ChartData.SetValue(2, 1, "Cote de Blaye") chart.ChartData.SetValue(2, 2, 141.396) chart.ChartData.SetValue(3, 1, "Thuringer Rostbratwurst") chart.ChartData.SetValue(3, 2, 80.368) chart.ChartData.SetValue(4, 1, "Raclette Courdavault") chart.ChartData.SetValue(4, 2, 71.155) chart.ChartData.SetValue(5, 1, "Tarte au sucre") chart.ChartData.SetValue(5, 2, 47.234) chart.ChartData.SetValue(6, 1, "Camembert Pierrot") chart.ChartData.SetValue(6, 2, 46.825) chart.ChartData.SetValue(7, 1, "Gnocchi di nonna Alice") chart.ChartData.SetValue(7, 2, 42.593) chart.ChartData.SetValue(8, 1, "Manjimup Dried Apples") chart.ChartData.SetValue(8, 2, 41.819) chart.ChartData.SetValue(9, 1, "Alice Mutton") chart.ChartData.SetValue(9, 2, 32.698) chart.ChartData.SetValue(10, 1, "Carnarvon Tigers") chart.ChartData.SetValue(10, 2, 29.171) chart.ChartData.SetValue(11, 1, "R�ssle Sauerkraut.") 'Create a new chart series with the name �Sales� Dim pieSeries As IOfficeChartSerie = chart.Series.Add("Sales") pieSeries.Values = chart.ChartData(2, 2, 11, 2) 'Set data label pieSeries.DataPoints.DefaultDataPoint.DataLabels.IsValue = True pieSeries.DataPoints.DefaultDataPoint.DataLabels.Position = OfficeDataLabelPosition.Outside 'Set background color chart.ChartArea.Fill.ForeColor = Color.FromArgb(242, 242, 242) chart.PlotArea.Fill.ForeColor = Color.FromArgb(242, 242, 242) chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set category labels chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 11, 1) 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends chart to the end of the paragraph from the excel file with specified sheet number, range of data, width, and height. The excel stream that has data for chart [Excel stream should be "*.xlsx" format]. The integer represents the worksheet number that has data for chart. The string represents the data range in the worksheet from which the chart is to be created. The float that represents the width for chart. The float that represents the height for chart. The instance that represents the newly added chart. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin applications. The following example illustrates how to append new chart to the paragraph using the excel stream. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the excel file as stream Stream excelStream = File.OpenRead("Excel_Template.xlsx"); //Create and Append chart to the paragraph with excel stream as parameter WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered; chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set name to chart series chart.Series[0].Name = "Sum of Purchases"; chart.Series[1].Name = "Sum of Future Expenses"; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the excel file as stream Dim excelStream As Stream = File.OpenRead("Excel_Template.xlsx") 'Create and Append chart to the paragraph with excel stream as parameter Dim chart As WChart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300) 'Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set name to chart series chart.Series(0).Name = "Sum of Purchases" chart.Series(1).Name = "Sum of Future Expenses" chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends field to end of the paragraph with the specified field name and field type. The string that specifies the field name. The member that specifies the type of the field. The instance of the newly added field. The following example illustrates how to append field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Add a new section into the Word Document IWSection section = document.AddSection(); //Add a new paragraph into Word document and append text into paragraph IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Today's Date: "); //Add the new Date field in Word document with field name and its type. WField field = paragraph.AppendField("Date", FieldType.FieldDate) as WField; //Field code used to describe how to display the date field.FieldCode = @"DATE \@" + "\"MMMM d, yyyy\""; //Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Add a new section into the Word Document Dim section As IWSection = document.AddSection() 'Add a new paragraph into Word document and append text into paragraph Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Today's Date: ") 'Add the new Date field in Word document with field name and its type. Dim field As WField = TryCast(paragraph.AppendField("Date", FieldType.FieldDate), WField) 'Field code used to describe how to display the date field.FieldCode = "DATE \@" + """MMMM d, yyyy""" 'Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Appends start of the bookmark with specified name to the paragraph. The string specifying the bookmark name. The instance that represents the newly added bookmark start. The following example illustrates how to add a bookmark to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Add a new section into the Word Document IWSection section = document.AddSection(); //Add a new paragraph into Word document and append text into paragraph IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Northwind Database"); paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center; //Add a paragraph into section paragraph = section.AddParagraph(); //Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind"); //Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases."); //Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind"); //Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data."); //Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Add a new section into the Word Document Dim section As IWSection = document.AddSection() 'Add a new paragraph into Word document and append text into paragraph Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Northwind Database") paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center 'Add a paragraph into section paragraph = section.AddParagraph() 'Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind") 'Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases.") 'Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind") 'Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data.") 'Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Appends end of the bookmark with specified name to the paragraph. The string specifying the bookmark name. The instance that represents the newly added bookmark end. The following example illustrates how to add a bookmark to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Add a new section into the Word Document IWSection section = document.AddSection(); //Add a new paragraph into Word document and append text into paragraph IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Northwind Database"); paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center; //Add a paragraph into section paragraph = section.AddParagraph(); //Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind"); //Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases."); //Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind"); //Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data."); //Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Add a new section into the Word Document Dim section As IWSection = document.AddSection() 'Add a new paragraph into Word document and append text into paragraph Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Northwind Database") paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center 'Add a paragraph into section paragraph = section.AddParagraph() 'Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind") 'Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases.") 'Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind") 'Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data.") 'Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Appends the comment to the paragraph. The string that specifies the comment. The instance that represents the newly added comment. The following example illustrates how to add a comment to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Creates a new Word document. WordDocument document = new WordDocument(); //Add a section and a paragraph in the document document.EnsureMinimal(); IWParagraph paragraph = document.LastParagraph; //Append text to the paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"); //Add comment to a paragraph WComment comment = paragraph.AppendComment("comment test"); //Specify the author of the comment comment.Format.User = "Peter"; //Specify the initial of the author comment.Format.UserInitials = "St"; //Save and close the Word document document.Save("Comment.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Creates a new Word document. Dim document As New WordDocument() 'Add a section and a paragraph in the document document.EnsureMinimal() Dim paragraph As IWParagraph = document.LastParagraph 'Append text to the paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua") 'Add comment to a paragraph Dim comment As WComment = paragraph.AppendComment("comment test") 'Specify the author of the comment comment.Format.User = "Peter" 'Specify the initial of the author comment.Format.UserInitials = "St" 'Save and close the Word document document.Save("Comment.docx", FormatType.Docx) document.Close() End Sub Appends footnote or endnotes specified by the type to the paragraph. The member that specifies the type of footnote. The instance that represents the newly added footnote. The footnotes and endnotes are differentiated by the type of the footnote. The following example illustrates how to add a footnote to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Create a section IWSection section = document.AddSection(); //Add a paragraph to a section IWParagraph paragraph = section.AddParagraph(); //Append the text to paragraph paragraph.AppendText("Working with footnotes"); //Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add a paragraph to a section paragraph = section.AddParagraph(); //Append the footnotes WFootnote footnote = (WFootnote) paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Footnote); //Set the footnote character format footnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript; //Inserts the text into the paragraph paragraph.AppendText("Sample content for footnotes").CharacterFormat.Bold = true; //Add footnote text paragraph = footnote.TextBody.AddParagraph(); paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Create a section Dim section As IWSection = document.AddSection() 'Add a paragraph to a section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to paragraph paragraph.AppendText("Working with footnotes") 'Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add a paragraph to a section paragraph = section.AddParagraph() 'Append the footnotes Dim footnote As WFootnote = DirectCast(paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Footnote), WFootnote) 'Set the footnote character format footnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript 'Inserts the text into the paragraph paragraph.AppendText("Sample content for footnotes").CharacterFormat.Bold = True 'Add footnote text paragraph = footnote.TextBody.AddParagraph() paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") �Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub The following example illustrates how to add a endnote to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new document WordDocument document = new WordDocument(); //Create a section IWSection section = document.AddSection(); //Add a paragraph to a section IWParagraph paragraph = section.AddParagraph(); //Append the text to paragraph paragraph.AppendText("Working with endnotes"); //Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add a paragraph to a section paragraph = section.AddParagraph(); //Append the endnote WFootnote endnote = (WFootnote) paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Endnote); //Set the endnote character format endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript; //Insert the text into the paragraph paragraph.AppendText("Sample content for endnotes").CharacterFormat.Bold = true; //Add footnote text paragraph = endnote.TextBody.AddParagraph(); paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new document Dim document As New WordDocument() 'Create a section Dim section As IWSection = document.AddSection() 'Add a paragraph to a section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to paragraph paragraph.AppendText("Working with endnotes") 'Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add a paragraph to a section paragraph = section.AddParagraph() 'Append the endnote Dim endnote As WFootnote = DirectCast(paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Endnote), WFootnote) 'Set the endnote character format endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript 'Insert the text into the paragraph paragraph.AppendText("Sample content for endnotes").CharacterFormat.Bold = True 'Add footnote text paragraph = endnote.TextBody.AddParagraph() paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") �Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Append textbox to the end of the paragraph with the specified width and height. The float specifies the width of the textbox. The float specifies the height of the textbox. The instance that represents the newly added textbox. The following example illustrates how to add a endnote to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Append new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 75); //Add new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Append new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 75) 'Add new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph() textboxParagraph.AppendText("Text inside text box") 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends special symbol specified by the character code to end of the paragraph. The byte represents the character code of the symbol. The instance that represents the newly added symbol. The following example illustrates how to add a symbol to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Example of adding symbols to the paragraph: "); //Insert symbol with character code 100 paragraph.AppendSymbol(100); //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Example of adding symbols to the paragraph: ") 'Insert symbol with character code 100 paragraph.AppendSymbol(100) 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends break of the specified type to end of the paragraph. The member that specifies the type of break. The instance that represents the newly added break. The following example illustrates how to add a break to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Before line break"); //Add line break to the paragraph paragraph.AppendBreak(BreakType.LineBreak); paragraph.AppendText("After line break"); IWParagraph pageBreakPara = section.AddParagraph(); pageBreakPara.AppendText("Before page break"); //Add page break to the paragraph pageBreakPara.AppendBreak(BreakType.PageBreak); pageBreakPara.AppendText("After page break"); IWSection secondSection = document.AddSection(); //Add columns to the section secondSection.AddColumn(100, 2); secondSection.AddColumn(100, 2); IWParagraph columnBreakPara = secondSection.AddParagraph(); columnBreakPara.AppendText("Before column break"); //Add column break to the paragraph columnBreakPara.AppendBreak(BreakType.ColumnBreak); columnBreakPara.AppendText("After column break"); //Save and Close the document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Before line break") 'Add line break to the paragraph paragraph.AppendBreak(BreakType.LineBreak) paragraph.AppendText("After line break") Dim pageBreakPara As IWParagraph = section.AddParagraph() pageBreakPara.AppendText("Before page break") 'Add page break to the paragraph pageBreakPara.AppendBreak(BreakType.PageBreak) pageBreakPara.AppendText("After page break") Dim secondSection As IWSection = document.AddSection() 'Add columns to the section secondSection.AddColumn(100, 2) secondSection.AddColumn(100, 2) Dim columnBreakPara As IWParagraph = secondSection.AddParagraph() columnBreakPara.AppendText("Before column break") 'Add column break to the paragraph columnBreakPara.AppendBreak(BreakType.ColumnBreak) columnBreakPara.AppendText("After column break") 'Save and Close the document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends of specified type, width and height to the end of paragraph. The member that specifies the shape type. The float that specifies the width of the shape. The float that specifies the height of the shape. The instance that represents the newly added shape. The following example illustrates how to add a shape to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Add new shape to the document Shape rectangle = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100); //Set position for shape rectangle.VerticalPosition = 72; rectangle.HorizontalPosition = 72; paragraph = section.AddParagraph() as WParagraph; //Add text body contents to the shape paragraph = rectangle.TextBody.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("This text is in rounded rectangle shape"); text.CharacterFormat.TextColor = Color.Green; text.CharacterFormat.Bold = true; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) 'Add new shape to the document Dim rectangle As Shape = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100) 'Set position for shape rectangle.VerticalPosition = 72 rectangle.HorizontalPosition = 72 paragraph = TryCast(section.AddParagraph(), WParagraph) 'Add text body contents to the shape paragraph = TryCast(rectangle.TextBody.AddParagraph(), WParagraph) Dim text As IWTextRange = paragraph.AppendText("This text is in rounded rectangle shape") text.CharacterFormat.TextColor = Color.Green text.CharacterFormat.Bold = True 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following example illustrates how to append html text to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; IWParagraph paragraph = document.Sections[0].Body.Paragraphs[0]; //Append the Html string to first paragraph in the document paragraph.AppendHTML(htmlstring); //Save and close the document document.Save("Sample.docx"); document.Close(); }
Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" Dim paragraph As IWParagraph = document.Sections(0).Body.Paragraphs(0) 'Append the Html string to first paragraph in the document paragraph.AppendHTML(htmlstring) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub
Returns the applied to the paragraph. The of the current paragraph. Returns first entry of given string in the paragraph, taking into consideration case sensitive and whole word options. The string that specifies the text to find. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The that contains the found text in the paragraph. The following code example demonstrates how to find a particular text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of a particular text in the paragraph TextSelection textSelection = paragraph.Find("panda", true, true); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of a particular text in the paragraph Dim textSelection As TextSelection = paragraph.Find("panda", true, true) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the paragraph with , taking into consideration case sensitive and whole word options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of the regular expression TextSelection selection = paragraph.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, true, false); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of the regular expression Dim selection As TextSelection = paragraph.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, True, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the paragraph with , taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true if to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of the regular expression TextSelection selection = paragraph.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, true, false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of the regular expression Dim selection As TextSelection = paragraph.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, True, False, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends the check box to the paragraph. The instance that represents the newly added checkbox. The following example illustrates how to add a checkbox to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Gender\t"); //Append new Checkbox WCheckBox checkbox = paragraph.AppendCheckBox(); checkbox.Checked = false; //Set Checkbox size checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; //Set help text checkbox.Help = "Help text"; paragraph.AppendText("Male\t"); checkbox = paragraph.AppendCheckBox(); checkbox.Checked = false; checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; paragraph.AppendText("Female"); //Save the Word document document.Save("Checkbox.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("Gender" & vbTab) 'Append new Checkbox Dim checkbox As WCheckBox = paragraph.AppendCheckBox() checkbox.Checked = False 'Set Checkbox size checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True 'Set help text checkbox.Help = "Help text" paragraph.AppendText("Male" & vbTab) checkbox = paragraph.AppendCheckBox() checkbox.Checked = False checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True paragraph.AppendText("Female") 'Save the Word document document.Save("Checkbox.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the text form field to the paragraph with the specified default text. The string specifying the default text. To insert default Word text, "null" can be passed as parameter. The instance that represents the newly added text form field. The following example illustrates how to add a text form field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("General Information"); section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("Name\t"); text.CharacterFormat.Bold = true; //Append Text form field WTextFormField textfield = paragraph.AppendTextFormField(null); //Set type of Text form field textfield.Type = TextFormFieldType.RegularText; textfield.CharacterFormat.FontName = "Calibri"; textfield.CalculateOnExit = true; //Save the Word document document.Save("Textfield.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("General Information") section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) Dim text As IWTextRange = paragraph.AppendText("Name" & vbTab) text.CharacterFormat.Bold = True 'Append Text form field Dim textfield As WTextFormField = paragraph.AppendTextFormField(Nothing) 'Set type of Text form field textfield.Type = TextFormFieldType.RegularText textfield.CharacterFormat.FontName = "Calibri" textfield.CalculateOnExit = True 'Save the Word document document.Save("Textfield.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the drop down form field to the paragraph. The instance that represents the newly added drop down form field. Appends the check box to the paragraph with specified name and default value. The string that specifies the name of the check box. A Boolean indicating the default value of the checkbox. True if the checkbox should be checked by default; otherwise, false. The instance that represents the newly added checkbox. The following example illustrates how to add a checkbox to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Gender\t"); //Append new Checkbox WCheckBox checkbox = paragraph.AppendCheckBox("CheckBox1", true); //checkbox.Checked = false; //Set Checkbox size checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; //Set help text checkbox.Help = "Help text"; paragraph.AppendText("Male\t"); checkbox = paragraph.AppendCheckBox("CheckBox2",false); //checkbox.Checked = false; checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; paragraph.AppendText("Female"); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("Gender" & vbTab) 'Append new Checkbox Dim checkbox As WCheckBox = paragraph.AppendCheckBox("CheckBox1", True) 'checkbox.Checked = false; 'Set Checkbox size checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True 'Set help text checkbox.Help = "Help text" paragraph.AppendText("Male" & vbTab) checkbox = paragraph.AppendCheckBox("CheckBox2", False) 'checkbox.Checked = false; checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True paragraph.AppendText("Female") 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the text form field to the paragraph with the specified field name and default text. The string that specifies the name of the form field. The string specifying the default text. To insert default Word text, "null" can be passed as parameter. The instance that represents the newly added text form field. The following example illustrates how to add a text form field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("General Information"); section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("Date of Birth\t"); text.CharacterFormat.Bold = true; //Append Text form field WTextFormField textfield = paragraph.AppendTextFormField("Date field", DateTime.Now.ToString("MM/DD/YY")); textfield.StringFormat = "MM/DD/YY"; //Set Text form field type textfield.Type = TextFormFieldType.DateText; textfield.CalculateOnExit = true; //Save the Word document document.Save("Textfield.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("General Information") section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) Dim text As IWTextRange = paragraph.AppendText("Date of Birth" & vbTab) text.CharacterFormat.Bold = True 'Append Text form field Dim textfield As WTextFormField = paragraph.AppendTextFormField("Date field", DateTime.Now.ToString("MM/DD/YY")) textfield.StringFormat = "MM/DD/YY" 'Set Text form field type textfield.Type = TextFormFieldType.DateText textfield.CalculateOnExit = True 'Save the Word document document.Save("Textfield.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the drop down form field to the paragraph. The string that specifies the name of the drop drop down field. The instance that represents the newly added drop down form field. The following example illustrates how to add a checkbox to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Educational Qualification\t"); //Append Dropdown field WDropDownFormField dropdownfield = paragraph.AppendDropDownFormField("FieldName"); //Add items to the dropdown items collection dropdownfield.DropDownItems.Add("Higher"); dropdownfield.DropDownItems.Add("Vocational"); dropdownfield.DropDownItems.Add("Universal"); dropdownfield.Enabled = true; //Set the item index for default value dropdownfield.DropDownSelectedIndex = 1; dropdownfield.CalculateOnExit = true; //Save the Word document document.Save("Dropdown.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("Educational Qualification" & vbTab) 'Append Dropdown field Dim dropdownfield As WDropDownFormField = paragraph.AppendDropDownFormField("FieldName") 'Add items to the dropdown items collection dropdownfield.DropDownItems.Add("Higher") dropdownfield.DropDownItems.Add("Vocational") dropdownfield.DropDownItems.Add("Universal") dropdownfield.Enabled = True 'Set the item index for default value dropdownfield.DropDownSelectedIndex = 1 dropdownfield.CalculateOnExit = True 'Save the Word document document.Save("Dropdown.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the hyperlink to the paragraph with the specified link, display text and type of link. The string that specifies the link. The string that specifies the text to display. The member that specifies the link type. The instance that represents the newly added hyperlink. The following example illustrates how to append field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Web Hyperlink: "); paragraph = section.AddParagraph(); //Append web hyperlink to the paragraph IWField field = paragraph.AppendHyperlink("http://www.syncfusion.com", "Syncfusion", HyperlinkType.WebLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Web Hyperlink: ") paragraph = section.AddParagraph() 'Append web hyperlink to the paragraph Dim field As IWField = paragraph.AppendHyperlink("http://www.syncfusion.com", "Syncfusion", HyperlinkType.WebLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the hyperlink to the paragraph with the specified link, picture and type of link. The string that specifies the link. The picture to display. The member that specifies the link type. The instance that represents the newly added hyperlink. The following example illustrates how to append field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Image Hyperlink"); paragraph = section.AddParagraph(); //Create a new image instance and load image WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Append new image hyperlink to the paragraph paragraph.AppendHyperlink("http://www.syncfusion.com", picture, HyperlinkType.WebLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Image Hyperlink") paragraph = section.AddParagraph() 'Create a new image instance and load image Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Append new image hyperlink to the paragraph paragraph.AppendHyperlink("http://www.syncfusion.com", picture, HyperlinkType.WebLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Removes the absolute position data, if paragraph has absolute position in the document. Appends the table of content to the end of the paragraph with the specified lower and upper heading levels. The integer specifying the starting heading level of the table of content. The integer specifying the ending heading level of the table of content. The instance that represents the newly added table of content. The following example illustrates how to add a table of contents to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into the Word document IWSection section = document.AddSection(); string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Add the paragraph into the created section IWParagraph paragraph = section.AddParagraph(); //Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries paragraph.AppendTOC(1, 3); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("First Chapter"); //Set a build in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add the text into the paragraph section.AddParagraph().AppendText(paraText); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("Second Chapter"); //Set a build in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading2); //Add the text into the paragraph section.AddParagraph().AppendText(paraText); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text into the headings paragraph.AppendText("Third Chapter"); //Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading3); //Add the text into the paragraph. section.AddParagraph().AppendText(paraText); //Update the table of contents document.UpdateTableOfContents(); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into the Word document Dim section As IWSection = document.AddSection() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Add the paragraph into the created section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries paragraph.AppendTOC(1, 3) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("First Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add the text into the paragraph. section.AddParagraph().AppendText(paraText) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("Second Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading2) 'Add the text into the paragraph section.AddParagraph().AppendText(paraText) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text into the headings paragraph.AppendText("Third Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading3) 'Add the text into the paragraph section.AddParagraph().AppendText(paraText) 'Update the table of contents document.UpdateTableOfContents() �Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends a Cross-Reference of specified reference type, reference kind, entity, hyperlink, separators at the end of the paragraph. The member that specifies the type of item for which a cross-reference is to be inserted. The member that specifies the information to be included in the cross-reference. The for which a cross-reference is to be inserted. True if to insert the cross-reference as a hyperlink to the referenced item; otherwise, false. True if to insert "above" or "below," depending on the location of the reference item in relation to the cross-reference. True if to use a separator to separate the numbers from the associated text; otherwise, false.(Used only if the ReferenceKind parameter is set to ParagraphNumberFullContext). The string that specifies a separator if the separateNumber parameter is set to true. The cross reference fields can be created and updated only for the in a document. Use the method to get a list of items that can have cross-reference. The following example illustrates how to append a cross-reference for bookmark to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); IWParagraph paragraph = section.AddParagraph(); //Add text, bookmark start and end in the paragraph paragraph.AppendBookmarkStart("Title"); paragraph.AppendText("Northwind Database"); paragraph.AppendBookmarkEnd("Title"); paragraph = section.AddParagraph(); paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases."); section = document.AddSection(); section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; //Get the collection of bookmark start in the word document List<Entity> items = document.GetCrossReferenceItems(ReferenceType.Bookmark); paragraph.AppendText("Bookmark Cross Reference starts here "); //Append the cross reference for bookmark �Title� with ContentText as reference kind paragraph.AppendCrossReference(ReferenceType.Bookmark, ReferenceKind.ContentText, items[0], true, false, false, string.Empty); //Update the document Fields document.UpdateDocumentFields(); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() Dim paragraph As IWParagraph = section.AddParagraph() 'Add text, bookmark start and end in the paragraph paragraph.AppendBookmarkStart("Title") paragraph.AppendText("Northwind Database") paragraph.AppendBookmarkEnd("Title") paragraph = section.AddParagraph() paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases.") section = document.AddSection() section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) 'Get the collection of bookmark start in the word document Dim items As List(Of Entity) = document.GetCrossReferenceItems(ReferenceType.Bookmark) paragraph.AppendText("Bookmark Cross Reference starts here ") 'Append the cross reference for bookmark �Title� with ContentText as reference kind paragraph.AppendCrossReference(ReferenceType.Bookmark, ReferenceKind.ContentText, items(0), True, False, False, String.Empty) 'Update the document Fields document.UpdateDocumentFields() document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends the OLE object to the paragraph with the specified stream, picture and object type. The represents the file stream. The instance for the OLE picture. The member that specifies the type of OLE object. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Open the file to be embedded FileStream stream = new FileStream("Book1.xlsx", FileMode.Open); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Append the Ole object to the paragraph WOleObject ole = paragraph.AppendOleObject(stream, picture, OleObjectType.ExcelWorksheet); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Open the file to be embedded Dim stream As New FileStream("Book1.xlsx", FileMode.Open) 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Append the Ole object to the paragraph Dim ole As WOleObject = paragraph.AppendOleObject(stream, picture, OleObjectType.ExcelWorksheet) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified byte array, picture and object type. The byte array of the file. The instance for the OLE picture. The member that specifies the type of OLE object. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Get the file as byte array byte[] olebytes = File.ReadAllBytes("Excel_Template.xlsx"); paragraph = sec.AddParagraph(); //Append OLE object paragraph.AppendOleObject(olebytes, picture, OleObjectType.ExcelWorksheet); //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Get the file as byte array Dim olebytes As Byte() = File.ReadAllBytes("Excel_Template.xlsx") paragraph = sec.AddParagraph() 'Append OLE object paragraph.AppendOleObject(olebytes, picture, OleObjectType.ExcelWorksheet) 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified stream, picture and file link type. The represents the file stream. The instance for the OLE picture. The member that specifies the link type of OLE object. The instance that represents the newly created OLE object. The OLE object type must be explicitly specified when appending OLE objects using this method. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); FileStream stream = new FileStream("Excel_Template.xlsx", FileMode.Open); WOleObject ole = paragraph.AppendOleObject(stream, picture, OleLinkType.Embed); ole.ObjectType = "Excel Worksheet"; //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) Dim stream As New FileStream("Excel_Template.xlsx", FileMode.Open) Dim ole As WOleObject = paragraph.AppendOleObject(stream, picture, OleLinkType.Embed) ole.ObjectType = "Excel Worksheet" 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified byte array of the file, picture and link type. The byte array of the file. The instance for the OLE picture. The member that specifies the link type of OLE object. The instance that represents the newly created OLE object. The OLE object type must be explicitly specified when appending OLE objects using this method. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Get the file as byte array byte[] olebytes = File.ReadAllBytes("Excel_Template.xlsx"); WOleObject ole = paragraph.AppendOleObject(olebytes, picture, OleLinkType.Embed); ole.ObjectType = "Excel Worksheet"; //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Get the file as byte array Dim olebytes As Byte() = File.ReadAllBytes("Excel_Template.xlsx") Dim ole As WOleObject = paragraph.AppendOleObject(olebytes, picture, OleLinkType.Embed) ole.ObjectType = "Excel Worksheet" 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified byte array of the file, picture and file extension. The byte array of the file. The instance for the OLE picture. The string that specifies the file extension. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Get the file as byte array byte[] olebytes = File.ReadAllBytes("Excel_Template.xlsx"); paragraph = sec.AddParagraph(); //Append OLE object paragraph.AppendOleObject(olebytes, picture, ".xlsx"); //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Get the file as byte array Dim olebytes As Byte() = File.ReadAllBytes("Excel_Template.xlsx") paragraph = sec.AddParagraph() 'Append OLE object paragraph.AppendOleObject(olebytes, picture, ".xlsx") 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified file stream, picture and file extension. The represents the file stream. The instance for the OLE picture. The string that specifies the file extension. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Open the file to be embedded FileStream stream = new FileStream("Excel_Template.xlsx", FileMode.Open); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Append the Ole object to the paragraph WOleObject ole = paragraph.AppendOleObject(stream, picture, "xlsx"); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Open the file to be embedded Dim stream As New FileStream("Excel_Template.xlsx", FileMode.Open) 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Append the Ole object to the paragraph Dim ole As WOleObject = paragraph.AppendOleObject(stream, picture, "xlsx") 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified path, picture and object type. The string specifying the path to file. The instance for the OLE picture. The member that specifies the type of OLE object. The instance that represents the newly created OLE object. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin applications. The following example illustrates how to append a OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); paragraph = sec.AddParagraph(); paragraph.AppendOleObject(@"..\..\Data\Excel_Template.xlsx", picture, OleObjectType.ExcelWorksheet); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) paragraph = sec.AddParagraph() paragraph.AppendOleObject("..\..\Data\Excel_Template.xlsx", picture, OleObjectType.ExcelWorksheet) document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends the OLE object to the paragraph with the specified path and picture. The string specifying the path to file. The instance for the OLE picture. The instance that represents the newly created OLE object. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin applications. The following example illustrates how to append a OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); WOleObject ole = paragraph.AppendOleObject(@"..\..\Data\Excel_Template.xlsx", picture); //Set how to display the Ole object ole.DisplayAsIcon = false; //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) Dim ole As WOleObject = paragraph.AppendOleObject("..\..\Data\Excel_Template.xlsx", picture) 'Set how to display the Ole object ole.DisplayAsIcon = False 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Appends the mathematical equation to the paragraph. The instance that represents the newly added mathematical equation. Appends a mathematical equation to the paragraph using LaTeX syntax. The LaTeX syntax representing the mathematical equation. The instance that represents the newly added mathematical equation. The following example illustrates how to append math using LaTeX to the paragraph. //Create a new Word document using(WordDocument wordDocument = new WordDocument()) { //Adds one section and one paragraph to the document wordDocument.EnsureMinimal(); //Appends a new mathematical equation to the paragraph using LaTeX syntax. wordDocument.LastParagraph.AppendMath(@"\dot{a}"); //Saves the Word document wordDocument.Save("Result.docx", FormatType.Docx); } 'Create a new Word document Dim wordDocument As New WordDocument() 'Adds one section and one paragraph to the document wordDocument.EnsureMinimal() 'Appends a new mathematical equation to the paragraph using LaTeX syntax. wordDocument.LastParagraph.AppendMath("\dot{a}") 'Saves the Word document wordDocument.Save("Result.docx", FormatType.Docx) 'Close the document wordDocument.Close() Inserts a section break. Creates new section with the break type new page. A reference to the newly created section. The following code example illustrates how to insert a section break. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); document.EnsureMinimal(); //Add text to the first section document.LastParagraph.AppendText("First section"); //Insert section break WSection newsection = document.LastParagraph.InsertSectionBreak(); //Add new paragraph to the second section IWParagraph paragraph = newsection.AddParagraph(); paragraph.AppendText("Second section"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() document.EnsureMinimal() 'Add text to the first section document.LastParagraph.AppendText("First section") 'Insert section break Dim newsection As WSection = document.LastParagraph.InsertSectionBreak() 'Add new paragraph to the second section Dim paragraph As IWParagraph = newsection.AddParagraph() paragraph.AppendText("Second section") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Inserts the section break. Creates new section with the specified break type. The member that specifies the break type. A reference to the newly created section. The following code example illustrates how to insert a section break. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); document.EnsureMinimal(); //Add text to the first section document.LastParagraph.AppendText("First section"); //Insert section break WSection newsection = document.LastParagraph.InsertSectionBreak(SectionBreakCode.Oddpage); //Add new paragraph to the second section IWParagraph paragraph = newsection.AddParagraph(); paragraph.AppendText("Second section"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() document.EnsureMinimal() 'Add text to the first section document.LastParagraph.AppendText("First section") 'Insert section break Dim newsection As WSection = document.LastParagraph.InsertSectionBreak(SectionBreakCode.Oddpage) 'Add new paragraph to the second section Dim paragraph As IWParagraph = newsection.AddParagraph() paragraph.AppendText("Second section") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the name of the style applied to the current paragraph. Read-only. The string that represents the style name. Gets or sets text of the paragraph. The string that represents the text. All the internal formatting will be cleared when new text is set. Gets or sets a value indicating whether the paragraph mark is treated as special hidden and it allows Microsoft Word to join paragraphs formatted using different paragraph styles. True if the paragraph mark is treated as special hidden; otherwise, false. Gets the paragraph item at the specified index. Read-only. The zero-based index of the item to get from the collection. The at the specified index. Gets the paragraph format of the current paragraph. Read-only. The of the paragraph. Gets the paragraph format. Gets the format for the list in the paragraph. Read-only. The of the list in the paragraph. Gets the character format for the break symbol. Read-only. The of the paragraph. Gets a value indicating whether the current paragraph is in cell. Read-only. True if this paragraph is in cell; otherwise, false. Gets a value indicating whether the current paragraph is end of the section. Read-only. True if this paragraph is end of section; otherwise false. Gets a value indicating whether the current paragraph is end of document. Read-only. True if this paragraph is end of document; otherwise, false. Gets a string that represent the appearance of the list value of the paragraph. The string that represents a string value of the list of the paragraph. Default value is string.Empty The following example illustrates how to get a numeric string value of the list paragraph. // Loads an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Gets the document text document.GetText(); // Gets a numeric string value of the numbering list paragraph. String listString = document.LastParagraph.ListString; // Saves the document in the given name and format. document.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. document.Close(); ' Loads an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") ' Gets the document text. document.GetText() ' Gets a numeric string value of the numbering list paragraph Dim listString As String = document.LastParagraph.ListString ' Saves the document in the given name and format. document.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. document.Close() This property holds the static string of the list value recently calculated while saving the document as Text. It is not updated automatically for each modification done in the document. Hence, you should either invoke WordDocument.GetText() method or save the document as Text, to get the actual list value from this property. For a picture bulleted list, this property is not valid and will return string.Empty. Member that represents the paragraph style. The paragraph text Returns a numeric string of the of the list paragraph. Member that represents the paragraph format. Member that represents the list format. Member that represents the collection of paragraph items. The paragraph items with one empty item. The paragraph items. Specifies the owner textbody item. Denotes the owner table, if the current body item is in table cell. Determines whether the empty text range is need to added or not for break item. Determine whether the paragraph contains DIN Offc font text. If we can create excat Din font, we need to return true or else need to return false. Creates font based on given font details. Name of the font. Size of the font. Style of the font. The created font. Determine whether the paragraph contains floating items alone Determine whether the last item of the paragraph is a break or not. Initializes a new instance of the class with the specified instance. The instance. Get Outline Level of the Heading. The member that specifies the outline level. Move the paragraph items to another paragraph. Checks whether we need to fit the symbol inside the shape or not. returns true if need to fit symbol. otherwise false Checks whether paragraph has inline item returns true if item is inline item. otherwise false Splits the textrange into new paragraphs if new line character exsists in the text Insert the page/column break after formattings. Applies the style with the specified name to the paragraph. The string that represents the style name. The specified style must exists in collection. Applies the style with the specified name to the paragraph. The string that represents the style name. The specified style must exists in collection. Applies the specified built-in style to the paragraph. The member that specifies the style. Applies the specified built-in style to the paragraph. The member that specifies the style. Returns the applied to the paragraph. The of the current paragraph. Removes the absolute position data, if paragraph has absolute position in the document. /// Find the verticalmerge end cell has the Exactly height property. Owner cell of the paragraph Height of end merge cell row Finds whether the paragraph preserved inside row and which height type is exactly. True; if paragraph preserved inside exactly table row otherwise false. Appends the specified text to the end of the paragraph. The string that specifies the text to be appended. The instance that represents the newly added text. The following example illustrates how to append text to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text to the paragraph IWTextRange text = paragraph.AppendText("A new text is added to the paragraph."); text.CharacterFormat.FontSize = 14; text.CharacterFormat.Bold = true; text.CharacterFormat.TextColor = Color.Green; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text to the paragraph Dim text As IWTextRange = paragraph.AppendText("A new text is added to the paragraph.") text.CharacterFormat.FontSize = 14 text.CharacterFormat.Bold = True text.CharacterFormat.TextColor = Color.Green 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the inline content control to the paragraph. The control type that specifies the type of the content control to be appended. The instance that represents the newly added text. Thrown when is , or The following example illustrates how to append inline content control to the paragraph. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new inline control to the paragraph IInlineContentControl inlineControl = paragraph.AppendInlineContentControl(ContentControlType.RichText); WTextRange controlText = new WTextRange(document); controlText.CharacterFormat.Bold = true; controlText.CharacterFormat.TextColor = Color.Green; controlText.Text = "Inline content control inserted."; //Add text range to the control added inlineControl.ParagraphItems.Add(controlText); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new inline control to the paragraph Dim inlineControl As IInlineContentControl = paragraph.AppendInlineContentControl(ContentControlType.RichText) Dim textRange As New WTextRange(document) textRange.CharacterFormat.Bold = True textRange.CharacterFormat.TextColor = Color.Green textRange.Text = "Inline content control inserted." 'Add text range to the control added inlineControl.ParagraphItems.Add(textRange) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Appends the image specified by the array to the end of paragraph. The array of the image to be added. The instance that represents the newly added image. The following example illustrates how to append image to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph firstParagraph = section.AddParagraph(); //Get the image and convert to byte array. Image image = Image.FromFile("Image.png"); MemoryStream stream = new MemoryStream(); image.Save(stream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = stream.ToArray(); //Add image to the paragraph IWPicture picture = firstParagraph.AppendPicture(imageBytes); //Set height and width for the image picture.Height = 100; picture.Width = 100; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim firstParagraph As IWParagraph = section.AddParagraph() 'Get the image and convert to byte array. Dim image__1 As Image = Image.FromFile("Image.png") Dim stream As New MemoryStream() image__1.Save(stream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes As Byte() = stream.ToArray() 'Add image to the paragraph Dim picture As IWPicture = firstParagraph.AppendPicture(imageBytes) 'Set height and width for the image picture.Height = 100 picture.Width = 100 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the SVG image specified by the array to the end of paragraph. The array of the SVG image to be added. The array of the image to be added. The instance that represents the newly added image. Thrown when is null Thrown when is not a *svg format The following example illustrates how to append image to the paragraph. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph firstParagraph = section.AddParagraph(); //Get the image as byte array. byte[] imageBytes = File.ReadAllBytes("Image.png"); //Get the SVG image as byte array. byte[] svgData = File.ReadAllBytes("Image.svg"); //Add SVG image to the paragraph IWPicture picture = firstParagraph.AppendPicture(svgData, imageBytes); //Set height and width for the image picture.Height = 100; picture.Width = 100; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim firstParagraph As IWParagraph = section.AddParagraph() 'Get the png image as byte array. Dim imageBytes As Byte() = File.ReadAllBytes("Image.png") 'Get the SVG image as byte array. Dim svgData As Byte() = File.ReadAllBytes("Image.svg") 'Add SVG image to the paragraph Dim picture As IWPicture = firstParagraph.AppendPicture(svgData, imageBytes); 'Set height and width for the image picture.Height = 100 picture.Width = 100 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Appends a chart to the end of the paragraph with the specified data, width and height. The two-dimensional array that specifies the data for chart. The float that represents the width for chart. The float that represents the height for chart. The instance that represents the newly added chart. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. The following example illustrates how to append new chart to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Input data for chart object[][] data = new object[6][]; for (int i = 0; i < 6; i++) data[i] = new object[3]; data[0][0] = ""; data[1][0] = "Gravad lax"; data[2][0] = "Louisiana Hot spiced Okara"; data[3][0] = "Mascarpone Fabioli"; data[4][0] = "Wimmers gute SemmelKnodel"; data[5][0] = "Maxilaku"; data[0][1] = "Sum of Purchases"; data[1][1] = 286; data[2][1] = 680; data[3][1] = 288; data[4][1] = 200; data[5][1] = 731; data[0][2] = "Sum of Future Expenses"; data[1][2] = 1300; data[2][2] = 700; data[3][2] = 1280; data[4][2] = 1200; data[5][2] = 2660; /// //Create and Append chart to the paragraph WChart chart = paragraph.AppendChart(data, 470, 300); //Set chart type and title chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set series type chart.Series[0].SerieType = OfficeChartType.Line_Markers; chart.Series[1].SerieType = OfficeChartType.Bar_Clustered; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Input data for chart Dim data As Object()() = New Object(5)() {} For i As Integer = 0 To 5 data(i) = New Object(2) {} Next data(0)(0) = "" data(1)(0) = "Gravad lax" data(2)(0) = "Louisiana Hot spiced Okara" data(3)(0) = "Mascarpone Fabioli" data(4)(0) = "Wimmers gute SemmelKnodel" data(5)(0) = "Maxilaku" data(0)(1) = "Sum of Purchases" data(1)(1) = 286 data(2)(1) = 680 data(3)(1) = 288 data(4)(1) = 200 data(5)(1) = 731 data(0)(2) = "Sum of Future Expenses" data(1)(2) = 1300 data(2)(2) = 700 data(3)(2) = 1280 data(4)(2) = 1200 data(5)(2) = 2660 'Create and Append chart to the paragraph Dim chart As WChart = paragraph.AppendChart(data, 470, 300) 'Set chart type and title chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set series type chart.Series(0).SerieType = OfficeChartType.Line_Markers chart.Series(1).SerieType = OfficeChartType.Bar_Clustered chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends chart to the end of the paragraph with the specified width and height. The float that represents the width for chart. The float that represents the height for chart. The instance that represents the newly added chart. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. The following example illustrates how to append new chart to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Create and Append chart to the paragraph WChart chart = paragraph.AppendChart(446, 270); //Set chart type chart.ChartType = OfficeChartType.Pie; //Set chart title chart.ChartTitle = "Best Selling Products"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; //Set data for chart chart.ChartData.SetValue(1, 1, ""); chart.ChartData.SetValue(1, 2, "Sales"); chart.ChartData.SetValue(2, 1, "Cote de Blaye"); chart.ChartData.SetValue(2, 2, 141.396); chart.ChartData.SetValue(3, 1, "Thuringer Rostbratwurst"); chart.ChartData.SetValue(3, 2, 80.368); chart.ChartData.SetValue(4, 1, "Raclette Courdavault"); chart.ChartData.SetValue(4, 2, 71.155); chart.ChartData.SetValue(5, 1, "Tarte au sucre"); chart.ChartData.SetValue(5, 2, 47.234); chart.ChartData.SetValue(6, 1, "Camembert Pierrot"); chart.ChartData.SetValue(6, 2, 46.825); chart.ChartData.SetValue(7, 1, "Gnocchi di nonna Alice"); chart.ChartData.SetValue(7, 2, 42.593); chart.ChartData.SetValue(8, 1, "Manjimup Dried Apples"); chart.ChartData.SetValue(8, 2, 41.819); chart.ChartData.SetValue(9, 1, "Alice Mutton"); chart.ChartData.SetValue(9, 2, 32.698); chart.ChartData.SetValue(10, 1, "Carnarvon Tigers"); chart.ChartData.SetValue(10, 2, 29.171); chart.ChartData.SetValue(11, 1, "Rössle Sauerkraut."); chart.ChartData.SetValue(11, 2, 25.696); //Create a new chart series with the name “Sales” IOfficeChartSerie pieSeries = chart.Series.Add("Sales"); pieSeries.Values = chart.ChartData[2, 2, 11, 2]; //Set data label pieSeries.DataPoints.DefaultDataPoint.DataLabels.IsValue = true; pieSeries.DataPoints.DefaultDataPoint.DataLabels.Position = OfficeDataLabelPosition.Outside; //Set background color chart.ChartArea.Fill.ForeColor = Color.FromArgb(242, 242, 242); chart.PlotArea.Fill.ForeColor = Color.FromArgb(242, 242, 242); chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set category labels chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 11, 1]; //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Create and Append chart to the paragraph Dim chart As WChart = paragraph.AppendChart(446, 270) 'Set chart type chart.ChartType = OfficeChartType.Pie 'Set chart title chart.ChartTitle = "Best Selling Products" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 'Set data for chart chart.ChartData.SetValue(1, 1, "") chart.ChartData.SetValue(1, 2, "Sales") chart.ChartData.SetValue(2, 1, "Cote de Blaye") chart.ChartData.SetValue(2, 2, 141.396) chart.ChartData.SetValue(3, 1, "Thuringer Rostbratwurst") chart.ChartData.SetValue(3, 2, 80.368) chart.ChartData.SetValue(4, 1, "Raclette Courdavault") chart.ChartData.SetValue(4, 2, 71.155) chart.ChartData.SetValue(5, 1, "Tarte au sucre") chart.ChartData.SetValue(5, 2, 47.234) chart.ChartData.SetValue(6, 1, "Camembert Pierrot") chart.ChartData.SetValue(6, 2, 46.825) chart.ChartData.SetValue(7, 1, "Gnocchi di nonna Alice") chart.ChartData.SetValue(7, 2, 42.593) chart.ChartData.SetValue(8, 1, "Manjimup Dried Apples") chart.ChartData.SetValue(8, 2, 41.819) chart.ChartData.SetValue(9, 1, "Alice Mutton") chart.ChartData.SetValue(9, 2, 32.698) chart.ChartData.SetValue(10, 1, "Carnarvon Tigers") chart.ChartData.SetValue(10, 2, 29.171) chart.ChartData.SetValue(11, 1, "Rössle Sauerkraut.") 'Create a new chart series with the name “Sales” Dim pieSeries As IOfficeChartSerie = chart.Series.Add("Sales") pieSeries.Values = chart.ChartData(2, 2, 11, 2) 'Set data label pieSeries.DataPoints.DefaultDataPoint.DataLabels.IsValue = True pieSeries.DataPoints.DefaultDataPoint.DataLabels.Position = OfficeDataLabelPosition.Outside 'Set background color chart.ChartArea.Fill.ForeColor = Color.FromArgb(242, 242, 242) chart.PlotArea.Fill.ForeColor = Color.FromArgb(242, 242, 242) chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set category labels chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData(2, 1, 11, 1) 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends chart to the end of the paragraph from the excel file with specified sheet number, range of data, width, and height. The excel stream that has data for chart [Excel stream should be "*.xlsx" format]. The integer represents the worksheet number that has data for chart. The string represents the data range in the worksheet from which the chart is to be created. The float that represents the width for chart. The float that represents the height for chart. The instance that represents the newly added chart. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. The following example illustrates how to append new chart to the paragraph using the excel stream. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the excel file as stream Stream excelStream = File.OpenRead("Excel_Template.xlsx"); //Create and Append chart to the paragraph with excel stream as parameter WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered; chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set name to chart series chart.Series[0].Name = "Sum of Purchases"; chart.Series[1].Name = "Sum of Future Expenses"; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the excel file as stream Dim excelStream As Stream = File.OpenRead("Excel_Template.xlsx") 'Create and Append chart to the paragraph with excel stream as parameter Dim chart As WChart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300) 'Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set name to chart series chart.Series(0).Name = "Sum of Purchases" chart.Series(1).Name = "Sum of Future Expenses" chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Method to identify the Excel file format Excel file stream Appends field to end of the paragraph with the specified field name and field type. The string that specifies the field name. The member that specifies the type of the field. The instance of the newly added field. The following example illustrates how to append field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Add a new section into the Word Document IWSection section = document.AddSection(); //Add a new paragraph into Word document and append text into paragraph IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Today's Date: "); //Add the new Date field in Word document with field name and its type. WField field = paragraph.AppendField("Date", FieldType.FieldDate) as WField; //Field code used to describe how to display the date field.FieldCode = @"DATE \@" + "\"MMMM d, yyyy\""; //Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Add a new section into the Word Document Dim section As IWSection = document.AddSection() 'Add a new paragraph into Word document and append text into paragraph Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Today's Date: ") 'Add the new Date field in Word document with field name and its type. Dim field As WField = TryCast(paragraph.AppendField("Date", FieldType.FieldDate), WField) 'Field code used to describe how to display the date field.FieldCode = "DATE \@" + """MMMM d, yyyy""" 'Save the document in the given name and format document.Save("Sample.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Appends the hyperlink to the paragraph with the specified link, display text and type of link. The string that specifies the link. The string that specifies the text to display. The member that specifies the link type. The instance that represents the newly added hyperlink. The following example illustrates how to append field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Web Hyperlink: "); paragraph = section.AddParagraph(); //Append web hyperlink to the paragraph IWField field = paragraph.AppendHyperlink("http://www.syncfusion.com", "Syncfusion", HyperlinkType.WebLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Web Hyperlink: ") paragraph = section.AddParagraph() 'Append web hyperlink to the paragraph Dim field As IWField = paragraph.AppendHyperlink("http://www.syncfusion.com", "Syncfusion", HyperlinkType.WebLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the hyperlink to the paragraph with the specified link, picture and type of link. The string that specifies the link. The picture to display. The member that specifies the link type. The instance that represents the newly added hyperlink. The following example illustrates how to append field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Image Hyperlink"); paragraph = section.AddParagraph(); //Create a new image instance and load image WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Append new image hyperlink to the paragraph paragraph.AppendHyperlink("http://www.syncfusion.com", picture, HyperlinkType.WebLink); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Image Hyperlink") paragraph = section.AddParagraph() 'Create a new image instance and load image Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Append new image hyperlink to the paragraph paragraph.AppendHyperlink("http://www.syncfusion.com", picture, HyperlinkType.WebLink) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends start of the bookmark with specified name to the paragraph. The string specifying the bookmark name. The instance that represents the newly added bookmark start. The following example illustrates how to add a bookmark to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Add a new section into the Word Document IWSection section = document.AddSection(); //Add a new paragraph into Word document and append text into paragraph IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Northwind Database"); paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center; //Add a paragraph into section paragraph = section.AddParagraph(); //Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind"); //Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases."); //Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind"); //Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data."); //Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Add a new section into the Word Document Dim section As IWSection = document.AddSection() 'Add a new paragraph into Word document and append text into paragraph Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Northwind Database") paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center 'Add a paragraph into section paragraph = section.AddParagraph() 'Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind") 'Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases.") 'Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind") 'Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data.") 'Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Appends end of the bookmark with specified name to the paragraph. The string specifying the bookmark name. The instance that represents the newly added bookmark end. The following example illustrates how to add a bookmark to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Add a new section into the Word Document IWSection section = document.AddSection(); //Add a new paragraph into Word document and append text into paragraph IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Northwind Database"); paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center; //Add a paragraph into section paragraph = section.AddParagraph(); //Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind"); //Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases."); //Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind"); //Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data."); //Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx); //Release the resources occupied by WordDocument instance document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Add a new section into the Word Document Dim section As IWSection = document.AddSection() 'Add a new paragraph into Word document and append text into paragraph Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Northwind Database") paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center 'Add a paragraph into section paragraph = section.AddParagraph() 'Add a new bookmark start into paragraph with name "Northwind" paragraph.AppendBookmarkStart("Northwind") 'Add a text between the bookmark start and end into paragraph paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases.") 'Add a new bookmark end into paragraph with name " Northwind " paragraph.AppendBookmarkEnd("Northwind") 'Add a text after the bookmark end paragraph.AppendText(" Using Northwind, you can become familiar with how a relational database is structured and how the database objects work together to help you enter, store, manipulate, and print your data.") 'Save the document in the given name and format document.Save("Bookmarks.docx", FormatType.Docx) 'Release the resources occupied by WordDocument instance document.Close() End Sub Appends end of the editable range with specified id to the paragraph. The string specifying the editable range id. The instance that represents the newly added editable range end. Appends the comment to the paragraph. The string that specifies the comment. The instance that represents the newly added comment. The following example illustrates how to add a comment to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Creates a new Word document. WordDocument document = new WordDocument(); //Add a section and a paragraph in the document document.EnsureMinimal(); IWParagraph paragraph = document.LastParagraph; //Append text to the paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"); //Add comment to a paragraph WComment comment = paragraph.AppendComment("comment test"); //Specify the author of the comment comment.Format.User = "Peter"; //Specify the initial of the author comment.Format.UserInitials = "St"; //Save and close the Word document document.Save("Comment.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Creates a new Word document. Dim document As New WordDocument() 'Add a section and a paragraph in the document document.EnsureMinimal() Dim paragraph As IWParagraph = document.LastParagraph 'Append text to the paragraph paragraph.AppendText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua") 'Add comment to a paragraph Dim comment As WComment = paragraph.AppendComment("comment test") 'Specify the author of the comment comment.Format.User = "Peter" 'Specify the initial of the author comment.Format.UserInitials = "St" 'Save and close the Word document document.Save("Comment.docx", FormatType.Docx) document.Close() End Sub Appends footnote or endnotes specified by the type to the paragraph. The member that specifies the type of footnote. The instance that represents the newly added footnote. The footnotes and endnotes are differentiated by the type of the footnote. The following example illustrates how to add a footnote to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Create a section IWSection section = document.AddSection(); //Add a paragraph to a section IWParagraph paragraph = section.AddParagraph(); //Append the text to paragraph paragraph.AppendText("Working with footnotes"); //Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add a paragraph to a section paragraph = section.AddParagraph(); //Append the footnotes WFootnote footnote = (WFootnote) paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Footnote); //Set the footnote character format footnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript; //Inserts the text into the paragraph paragraph.AppendText("Sample content for footnotes").CharacterFormat.Bold = true; //Add footnote text paragraph = footnote.TextBody.AddParagraph(); paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Create a section Dim section As IWSection = document.AddSection() 'Add a paragraph to a section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to paragraph paragraph.AppendText("Working with footnotes") 'Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add a paragraph to a section paragraph = section.AddParagraph() 'Append the footnotes Dim footnote As WFootnote = DirectCast(paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Footnote), WFootnote) 'Set the footnote character format footnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript 'Inserts the text into the paragraph paragraph.AppendText("Sample content for footnotes").CharacterFormat.Bold = True 'Add footnote text paragraph = footnote.TextBody.AddParagraph() paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") ‘Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub The following example illustrates how to add a endnote to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new document WordDocument document = new WordDocument(); //Create a section IWSection section = document.AddSection(); //Add a paragraph to a section IWParagraph paragraph = section.AddParagraph(); //Append the text to paragraph paragraph.AppendText("Working with endnotes"); //Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add a paragraph to a section paragraph = section.AddParagraph(); //Append the endnote WFootnote endnote = (WFootnote) paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Endnote); //Set the endnote character format endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript; //Insert the text into the paragraph paragraph.AppendText("Sample content for endnotes").CharacterFormat.Bold = true; //Add footnote text paragraph = endnote.TextBody.AddParagraph(); paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new document Dim document As New WordDocument() 'Create a section Dim section As IWSection = document.AddSection() 'Add a paragraph to a section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the text to paragraph paragraph.AppendText("Working with endnotes") 'Formatting the text paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add a paragraph to a section paragraph = section.AddParagraph() 'Append the endnote Dim endnote As WFootnote = DirectCast(paragraph.AppendFootnote(Syncfusion.DocIO.FootnoteType.Endnote), WFootnote) 'Set the endnote character format endnote.MarkerCharacterFormat.SubSuperScript = SubSuperScript.SuperScript 'Insert the text into the paragraph paragraph.AppendText("Sample content for endnotes").CharacterFormat.Bold = True 'Add footnote text paragraph = endnote.TextBody.AddParagraph() paragraph.AppendText("Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula") ‘Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Append textbox to the end of the paragraph with the specified width and height. The float specifies the width of the textbox. The float specifies the height of the textbox. The instance that represents the newly added textbox. The following example illustrates how to add a endnote to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Append new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 75); //Add new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Append new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 75) 'Add new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph() textboxParagraph.AppendText("Text inside text box") 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends the check box to the paragraph. The instance that represents the newly added checkbox. The following example illustrates how to add a checkbox to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Gender\t"); //Append new Checkbox WCheckBox checkbox = paragraph.AppendCheckBox(); checkbox.Checked = false; //Set Checkbox size checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; //Set help text checkbox.Help = "Help text"; paragraph.AppendText("Male\t"); checkbox = paragraph.AppendCheckBox(); checkbox.Checked = false; checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; paragraph.AppendText("Female"); //Save the Word document document.Save("Checkbox.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("Gender" & vbTab) 'Append new Checkbox Dim checkbox As WCheckBox = paragraph.AppendCheckBox() checkbox.Checked = False 'Set Checkbox size checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True 'Set help text checkbox.Help = "Help text" paragraph.AppendText("Male" & vbTab) checkbox = paragraph.AppendCheckBox() checkbox.Checked = False checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True paragraph.AppendText("Female") 'Save the Word document document.Save("Checkbox.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the check box to the paragraph with specified name and default value. The string that specifies the name of the check box. A Boolean indicating the default value of the checkbox. True if the checkbox should be checked by default; otherwise, false. The instance that represents the newly added checkbox. The following example illustrates how to add a checkbox to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Gender\t"); //Append new Checkbox WCheckBox checkbox = paragraph.AppendCheckBox("CheckBox1", true); //checkbox.Checked = false; //Set Checkbox size checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; //Set help text checkbox.Help = "Help text"; paragraph.AppendText("Male\t"); checkbox = paragraph.AppendCheckBox("CheckBox2",false); //checkbox.Checked = false; checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; paragraph.AppendText("Female"); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("Gender" & vbTab) 'Append new Checkbox Dim checkbox As WCheckBox = paragraph.AppendCheckBox("CheckBox1", True) 'checkbox.Checked = false; 'Set Checkbox size checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True 'Set help text checkbox.Help = "Help text" paragraph.AppendText("Male" & vbTab) checkbox = paragraph.AppendCheckBox("CheckBox2", False) 'checkbox.Checked = false; checkbox.CheckBoxSize = 10 checkbox.CalculateOnExit = True paragraph.AppendText("Female") 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the text form field to the paragraph with the specified default text. The string specifying the default text. To insert default Word text, "null" can be passed as parameter. The instance that represents the newly added text form field. The following example illustrates how to add a text form field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("General Information"); section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("Name\t"); text.CharacterFormat.Bold = true; //Append Text form field WTextFormField textfield = paragraph.AppendTextFormField(null); //Set type of Text form field textfield.Type = TextFormFieldType.RegularText; textfield.CharacterFormat.FontName = "Calibri"; textfield.CalculateOnExit = true; //Save the Word document document.Save("Textfield.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("General Information") section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) Dim text As IWTextRange = paragraph.AppendText("Name" & vbTab) text.CharacterFormat.Bold = True 'Append Text form field Dim textfield As WTextFormField = paragraph.AppendTextFormField(Nothing) 'Set type of Text form field textfield.Type = TextFormFieldType.RegularText textfield.CharacterFormat.FontName = "Calibri" textfield.CalculateOnExit = True 'Save the Word document document.Save("Textfield.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the text form field to the paragraph with the specified field name and default text. The string that specifies the name of the form field. The string specifying the default text. To insert default Word text, "null" can be passed as parameter. The instance that represents the newly added text form field. The following example illustrates how to add a text form field to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("General Information"); section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("Date of Birth\t"); text.CharacterFormat.Bold = true; //Append Text form field WTextFormField textfield = paragraph.AppendTextFormField("Date field", DateTime.Now.ToString("MM/DD/YY")); textfield.StringFormat = "MM/DD/YY"; //Set Text form field type textfield.Type = TextFormFieldType.DateText; textfield.CalculateOnExit = true; //Save the Word document document.Save("Textfield.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("General Information") section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) Dim text As IWTextRange = paragraph.AppendText("Date of Birth" & vbTab) text.CharacterFormat.Bold = True 'Append Text form field Dim textfield As WTextFormField = paragraph.AppendTextFormField("Date field", DateTime.Now.ToString("MM/DD/YY")) textfield.StringFormat = "MM/DD/YY" 'Set Text form field type textfield.Type = TextFormFieldType.DateText textfield.CalculateOnExit = True 'Save the Word document document.Save("Textfield.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the drop down form field to the paragraph. The instance that represents the newly added drop down form field. Appends the drop down form field to the paragraph. The string that specifies the name of the drop drop down field. The instance that represents the newly added drop down form field. The following example illustrates how to add a checkbox to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Educational Qualification\t"); //Append Dropdown field WDropDownFormField dropdownfield = paragraph.AppendDropDownFormField("FieldName"); //Add items to the dropdown items collection dropdownfield.DropDownItems.Add("Higher"); dropdownfield.DropDownItems.Add("Vocational"); dropdownfield.DropDownItems.Add("Universal"); dropdownfield.Enabled = true; //Set the item index for default value dropdownfield.DropDownSelectedIndex = 1; dropdownfield.CalculateOnExit = true; //Save the Word document document.Save("Dropdown.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("Educational Qualification" & vbTab) 'Append Dropdown field Dim dropdownfield As WDropDownFormField = paragraph.AppendDropDownFormField("FieldName") 'Add items to the dropdown items collection dropdownfield.DropDownItems.Add("Higher") dropdownfield.DropDownItems.Add("Vocational") dropdownfield.DropDownItems.Add("Universal") dropdownfield.Enabled = True 'Set the item index for default value dropdownfield.DropDownSelectedIndex = 1 dropdownfield.CalculateOnExit = True 'Save the Word document document.Save("Dropdown.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends special symbol specified by the character code to end of the paragraph. The byte represents the character code of the symbol. The instance that represents the newly added symbol. The following example illustrates how to add a symbol to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Example of adding symbols to the paragraph: "); //Insert symbol with character code 100 paragraph.AppendSymbol(100); //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Example of adding symbols to the paragraph: ") 'Insert symbol with character code 100 paragraph.AppendSymbol(100) 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends break of the specified type to end of the paragraph. The member that specifies the type of break. The instance that represents the newly added break. The following example illustrates how to add a break to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Before line break"); //Add line break to the paragraph paragraph.AppendBreak(BreakType.LineBreak); paragraph.AppendText("After line break"); IWParagraph pageBreakPara = section.AddParagraph(); pageBreakPara.AppendText("Before page break"); //Add page break to the paragraph pageBreakPara.AppendBreak(BreakType.PageBreak); pageBreakPara.AppendText("After page break"); IWSection secondSection = document.AddSection(); //Add columns to the section secondSection.AddColumn(100, 2); secondSection.AddColumn(100, 2); IWParagraph columnBreakPara = secondSection.AddParagraph(); columnBreakPara.AppendText("Before column break"); //Add column break to the paragraph columnBreakPara.AppendBreak(BreakType.ColumnBreak); columnBreakPara.AppendText("After column break"); //Save and Close the document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Before line break") 'Add line break to the paragraph paragraph.AppendBreak(BreakType.LineBreak) paragraph.AppendText("After line break") Dim pageBreakPara As IWParagraph = section.AddParagraph() pageBreakPara.AppendText("Before page break") 'Add page break to the paragraph pageBreakPara.AppendBreak(BreakType.PageBreak) pageBreakPara.AppendText("After page break") Dim secondSection As IWSection = document.AddSection() 'Add columns to the section secondSection.AddColumn(100, 2) secondSection.AddColumn(100, 2) Dim columnBreakPara As IWParagraph = secondSection.AddParagraph() columnBreakPara.AppendText("Before column break") 'Add column break to the paragraph columnBreakPara.AppendBreak(BreakType.ColumnBreak) columnBreakPara.AppendText("After column break") 'Save and Close the document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends of specified type, width and height to the end of paragraph. The member that specifies the shape type. The float that specifies the width of the shape. The float that specifies the height of the shape. The instance that represents the newly added shape. The following example illustrates how to add a shape to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; //Add new shape to the document Shape rectangle = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100); //Set position for shape rectangle.VerticalPosition = 72; rectangle.HorizontalPosition = 72; paragraph = section.AddParagraph() as WParagraph; //Add text body contents to the shape paragraph = rectangle.TextBody.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("This text is in rounded rectangle shape"); text.CharacterFormat.TextColor = Color.Green; text.CharacterFormat.Bold = true; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) 'Add new shape to the document Dim rectangle As Shape = paragraph.AppendShape(AutoShapeType.RoundedRectangle, 150, 100) 'Set position for shape rectangle.VerticalPosition = 72 rectangle.HorizontalPosition = 72 paragraph = TryCast(section.AddParagraph(), WParagraph) 'Add text body contents to the shape paragraph = TryCast(rectangle.TextBody.AddParagraph(), WParagraph) Dim text As IWTextRange = paragraph.AppendText("This text is in rounded rectangle shape") text.CharacterFormat.TextColor = Color.Green text.CharacterFormat.Bold = True 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the table of content to the end of the paragraph with the specified lower and upper heading levels. The integer specifying the starting heading level of the table of content. The integer specifying the ending heading level of the table of content. The instance that represents the newly added table of content. The following example illustrates how to add a table of contents to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into the Word document IWSection section = document.AddSection(); string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Add the paragraph into the created section IWParagraph paragraph = section.AddParagraph(); //Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries paragraph.AppendTOC(1, 3); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("First Chapter"); //Set a build in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add the text into the paragraph section.AddParagraph().AppendText(paraText); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("Second Chapter"); //Set a build in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading2); //Add the text into the paragraph section.AddParagraph().AppendText(paraText); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text into the headings paragraph.AppendText("Third Chapter"); //Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading3); //Add the text into the paragraph. section.AddParagraph().AppendText(paraText); //Update the table of contents document.UpdateTableOfContents(); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into the Word document Dim section As IWSection = document.AddSection() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Add the paragraph into the created section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries paragraph.AppendTOC(1, 3) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("First Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add the text into the paragraph. section.AddParagraph().AppendText(paraText) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("Second Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading2) 'Add the text into the paragraph section.AddParagraph().AppendText(paraText) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text into the headings paragraph.AppendText("Third Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading3) 'Add the text into the paragraph section.AddParagraph().AppendText(paraText) 'Update the table of contents document.UpdateTableOfContents() ‘Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends a Cross-Reference of specified reference type, reference kind, entity, hyperlink, separators at the end of the paragraph. The member that specifies the type of item for which a cross-reference is to be inserted. The member that specifies the information to be included in the cross-reference. The for which a cross-reference is to be inserted. True if to insert the cross-reference as a hyperlink to the referenced item; otherwise, false. True if to insert "above" or "below," depending on the location of the reference item in relation to the cross-reference. True if to use a separator to separate the numbers from the associated text; otherwise, false.(Used only if the ReferenceKind parameter is set to ParagraphNumberFullContext). The string that specifies a separator if the separateNumber parameter is set to true. The cross reference fields can be created and updated only for the in a document. Use the method to get a list of items that can have cross-reference. The following example illustrates how to append a cross-reference for bookmark to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); IWParagraph paragraph = section.AddParagraph(); //Add text, bookmark start and end in the paragraph paragraph.AppendBookmarkStart("Title"); paragraph.AppendText("Northwind Database"); paragraph.AppendBookmarkEnd("Title"); paragraph = section.AddParagraph(); paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases."); section = document.AddSection(); section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; //Get the collection of bookmark start in the word document List<Entity> items = document.GetCrossReferenceItems(ReferenceType.Bookmark); paragraph.AppendText("Bookmark Cross Reference starts here "); //Append the cross reference for bookmark “Title” with ContentText as reference kind paragraph.AppendCrossReference(ReferenceType.Bookmark, ReferenceKind.ContentText, items[0], true, false, false, string.Empty); //Update the document Fields document.UpdateDocumentFields(); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() Dim paragraph As IWParagraph = section.AddParagraph() 'Add text, bookmark start and end in the paragraph paragraph.AppendBookmarkStart("Title") paragraph.AppendText("Northwind Database") paragraph.AppendBookmarkEnd("Title") paragraph = section.AddParagraph() paragraph.AppendText("The Northwind sample database (Northwind.mdb) is included with all versions of Access. It provides data you can experiment with and database objects that demonstrate features you might want to implement in your own databases.") section = document.AddSection() section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) 'Get the collection of bookmark start in the word document Dim items As List(Of Entity) = document.GetCrossReferenceItems(ReferenceType.Bookmark) paragraph.AppendText("Bookmark Cross Reference starts here ") 'Append the cross reference for bookmark “Title” with ContentText as reference kind paragraph.AppendCrossReference(ReferenceType.Bookmark, ReferenceKind.ContentText, items(0), True, False, False, String.Empty) 'Update the document Fields document.UpdateDocumentFields() document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends the specified image to the end of paragraph. The to be added. The instance that represents the newly added image. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. The following example illustrates how to append image to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add image to the paragraph IWPicture picture = paragraph.AppendPicture(Image.FromFile("Image.png")); //Set height and width for the image picture.Height = 100; picture.Width = 100; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add image to the paragraph Dim picture As IWPicture = paragraph.AppendPicture(Image.FromFile("Image.png")) 'Set height and width for the image picture.Height = 100 picture.Width = 100 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub The following example illustrates how to append html text to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx"); //Html string to be inserted string htmlstring = "

This text is inserted as HTML string.

"; IWParagraph paragraph = document.Sections[0].Body.Paragraphs[0]; //Append the Html string to first paragraph in the document paragraph.AppendHTML(htmlstring); //Save and close the document document.Save("Sample.docx"); document.Close(); }
Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx") 'Html string to be inserted Dim htmlstring As String = "

This text is inserted as HTML string.

" Dim paragraph As IWParagraph = document.Sections(0).Body.Paragraphs(0) 'Append the Html string to first paragraph in the document paragraph.AppendHTML(htmlstring) 'Save and close the document document.Save("Sample.docx") document.Close() End Sub
Appends the OLE object to the paragraph with the specified path, picture and object type. The string specifying the path to file. The instance for the OLE picture. The member that specifies the type of OLE object. The instance that represents the newly created OLE object. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. The following example illustrates how to append a OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); paragraph = sec.AddParagraph(); paragraph.AppendOleObject(@"..\..\Data\Excel_Template.xlsx", picture, OleObjectType.ExcelWorksheet); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) paragraph = sec.AddParagraph() paragraph.AppendOleObject("..\..\Data\Excel_Template.xlsx", picture, OleObjectType.ExcelWorksheet) document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Appends the OLE object to the paragraph with the specified path and picture. The string specifying the path to file. The instance for the OLE picture. The instance that represents the newly created OLE object. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. The following example illustrates how to append a OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); WOleObject ole = paragraph.AppendOleObject(@"..\..\Data\Excel_Template.xlsx", picture); //Set how to display the Ole object ole.DisplayAsIcon = false; //Save and close the document document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) Dim ole As WOleObject = paragraph.AppendOleObject("..\..\Data\Excel_Template.xlsx", picture) 'Set how to display the Ole object ole.DisplayAsIcon = False 'Save and close the document document.Save("Sample.docx") document.Close() End Sub Appends the OLE object to the paragraph with the specified stream, picture and object type. The represents the file stream. The instance for the OLE picture. The member that specifies the type of OLE object. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Open the file to be embedded FileStream stream = new FileStream("Book1.xlsx", FileMode.Open); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Append the Ole object to the paragraph WOleObject ole = paragraph.AppendOleObject(stream, picture, OleObjectType.ExcelWorksheet); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Open the file to be embedded Dim stream As New FileStream("Book1.xlsx", FileMode.Open) 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Append the Ole object to the paragraph Dim ole As WOleObject = paragraph.AppendOleObject(stream, picture, OleObjectType.ExcelWorksheet) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified byte array, picture and object type. The byte array of the file. The instance for the OLE picture. The member that specifies the type of OLE object. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Get the file as byte array byte[] olebytes = File.ReadAllBytes("Excel_Template.xlsx"); paragraph = sec.AddParagraph(); //Append OLE object paragraph.AppendOleObject(olebytes, picture, OleObjectType.ExcelWorksheet); //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Get the file as byte array Dim olebytes As Byte() = File.ReadAllBytes("Excel_Template.xlsx") paragraph = sec.AddParagraph() 'Append OLE object paragraph.AppendOleObject(olebytes, picture, OleObjectType.ExcelWorksheet) 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified stream, picture and file link type. The represents the file stream. The instance for the OLE picture. The member that specifies the link type of OLE object. The instance that represents the newly created OLE object. The OLE object type must be explicitly specified when appending OLE objects using this method. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); FileStream stream = new FileStream("Excel_Template.xlsx", FileMode.Open); WOleObject ole = paragraph.AppendOleObject(stream, picture, OleLinkType.Embed); ole.ObjectType = "Excel Worksheet"; //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) Dim stream As New FileStream("Excel_Template.xlsx", FileMode.Open) Dim ole As WOleObject = paragraph.AppendOleObject(stream, picture, OleLinkType.Embed) ole.ObjectType = "Excel Worksheet" 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified byte array of the file, picture and link type. The byte array of the file. The instance for the OLE picture. The member that specifies the link type of OLE object. The instance that represents the newly created OLE object. The OLE object type must be explicitly specified when appending OLE objects using this method. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Get the file as byte array byte[] olebytes = File.ReadAllBytes("Excel_Template.xlsx"); WOleObject ole = paragraph.AppendOleObject(olebytes, picture, OleLinkType.Embed); ole.ObjectType = "Excel Worksheet"; //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Get the file as byte array Dim olebytes As Byte() = File.ReadAllBytes("Excel_Template.xlsx") Dim ole As WOleObject = paragraph.AppendOleObject(olebytes, picture, OleLinkType.Embed) ole.ObjectType = "Excel Worksheet" 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified byte array of the file, picture and file extension. The byte array of the file. The instance for the OLE picture. The string that specifies the file extension. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Get the file as byte array byte[] olebytes = File.ReadAllBytes("Excel_Template.xlsx"); paragraph = sec.AddParagraph(); //Append OLE object paragraph.AppendOleObject(olebytes, picture, ".xlsx"); //Save the Word document document.Save("Sample.docx", FormatType.Word2010); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Get the file as byte array Dim olebytes As Byte() = File.ReadAllBytes("Excel_Template.xlsx") paragraph = sec.AddParagraph() 'Append OLE object paragraph.AppendOleObject(olebytes, picture, ".xlsx") 'Save the Word document document.Save("Sample.docx", FormatType.Word2010) 'Close the document document.Close() End Sub Appends the OLE object to the paragraph with the specified file stream, picture and file extension. The represents the file stream. The instance for the OLE picture. The string that specifies the file extension. The instance that represents the newly created OLE object. The following example illustrates how to append OLE object to the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Open the file to be embedded FileStream stream = new FileStream("Excel_Template.xlsx", FileMode.Open); //Load the picture instance with the image need to be displayed WPicture picture = new WPicture(document); picture.LoadImage(Image.FromFile("Image.png")); //Append the Ole object to the paragraph WOleObject ole = paragraph.AppendOleObject(stream, picture, "xlsx"); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Open the file to be embedded Dim stream As New FileStream("Excel_Template.xlsx", FileMode.Open) 'Load the picture instance with the image need to be displayed Dim picture As New WPicture(document) picture.LoadImage(Image.FromFile("Image.png")) 'Append the Ole object to the paragraph Dim ole As WOleObject = paragraph.AppendOleObject(stream, picture, "xlsx") 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Appends the mathematical equation to the paragraph. The instance that represents the newly added mathematical equation. Appends a mathematical equation to the paragraph using LaTeX syntax. The LaTeX syntax representing the mathematical equation. The instance that represents the newly added mathematical equation. The following example illustrates how to append math using LaTeX to the paragraph. //Create a new Word document using(WordDocument wordDocument = new WordDocument()) { //Adds one section and one paragraph to the document wordDocument.EnsureMinimal(); //Appends a new mathematical equation to the paragraph using LaTeX syntax. wordDocument.LastParagraph.AppendMath(@"\dot{a}"); //Saves the Word document wordDocument.Save("Result.docx", FormatType.Docx); } 'Create a new Word document Dim wordDocument As New WordDocument() 'Adds one section and one paragraph to the document wordDocument.EnsureMinimal() 'Appends a new mathematical equation to the paragraph using LaTeX syntax. wordDocument.LastParagraph.AppendMath("\dot{a}") 'Saves the Word document wordDocument.Save("Result.docx", FormatType.Docx) 'Close the document wordDocument.Close() Get the owner entity of the paragraph. Heading Styles must be omitted in Header,Footer,Footnote and Endnote while converting the Word document headings into PDF bookmarks. Checks wheather the paragraph is in HeadFooter or not. Return true, If this paragraph is in HeadFooter, else Fasle. Gets the first paragraph in the owner textbody Appends the field mark. The type. Appends lineBreak The line break text. Appends the hyperlink. The link. The text. The picture. The type. Loads the picture. The picture. The image record. Appends the index entry. The entry to mark. Append merge field Gets the list format. Gets the list format, list level, tab level index and indents. Gets the list level. The list format. The list style hierarchy index. Gets the list text. Gets the list level. The list format. Get the paragraph margin left and first line indent based on heirarchy Check whether current paragraph have zero line spacing value Checks whether the paragraph has line numbers. Determines whether the paragraph contains an item, which need to updated in TOC. Represents a paragraph need to check its items. Returns true, if paragraph contains any item which need to updated in TOC; otherwise returns false. Currently, we implemented the behaviour of updating images from heading to the table of contents. In future, need to remove this method based on feature implementation for updating images in TOC. Returns first entry of the specified in the paragraph. The used to find the text. The that contains the found text in the paragraph. The following code example demonstrates how to find a particular text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of a particular text in the paragraph TextSelection textSelection = paragraph.Find(new Regex("Panda")); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of a particular text in the paragraph Dim textSelection As TextSelection = paragraph.Find(New Regex("Panda")) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Returns first entry of given string in the paragraph, taking into consideration case sensitive and whole word options. The string that specifies the text to find. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The that contains the found text in the paragraph. The following code example demonstrates how to find a particular text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of a particular text in the paragraph TextSelection textSelection = paragraph.Find("panda", true, true); //Get the found text as single text range WTextRange textRange = textSelection.GetAsOneRange(); //Modify the text textRange.Text = "Replaced text"; //Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow; //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of a particular text in the paragraph Dim textSelection As TextSelection = paragraph.Find("panda", true, true) 'Get the found text as single text range Dim textRange As WTextRange = textSelection.GetAsOneRange() 'Modify the text textRange.Text = "Replaced text" 'Set highlight color textRange.CharacterFormat.HighlightColor = Color.Yellow 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of the given with the replace string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Replace all occurrence of a particular text in the paragraph paragraph.Replace(new Regex("Paragraph"),"paragraph"); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Replace all occurrence of a particular text in the paragraph paragraph.Replace(New Regex("Paragraph"), "paragraph") 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the paragraph with replace string, taking into consideration case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Replace all occurrence of a particular text in the paragraph paragraph.Replace("Paragraph","paragraph", false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Replace all occurrence of a particular text in the paragraph paragraph.Replace("Paragraph", "paragraph", False, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces the specified regular expression with a in the paragraph. The used to find the text. The specifies the text to replace. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of the regular expression TextSelection selection = paragraph.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace(new Regex("Giant panda"), selection); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of the regular expression Dim selection As TextSelection = paragraph.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace(New Regex("Giant panda"), selection) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the paragraph with the along with its formatting. The used to find the text. The specifies the text to replace. Set to true to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of the regular expression TextSelection selection = paragraph.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace(new Regex("Giant panda"), selection, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of the regular expression Dim selection As TextSelection = paragraph.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace(New Regex("Giant panda"), selection, True) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the paragraph with , taking into consideration case sensitive and whole word options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of the regular expression TextSelection selection = paragraph.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, true, false); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of the regular expression Dim selection As TextSelection = paragraph.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, True, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the paragraph with , taking into consideration case sensitive, whole word and formatting options. The string represents the text to be found. The specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. Set to true if to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following code example demonstrates how to replace all the entries of a text in the paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Template.docx"); WParagraph paragraph = document.Sections[0].Paragraphs[1]; //Find the first occurrence of the regular expression TextSelection selection = paragraph.Find(new Regex("Panda")); //Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, true, false, true); //Save and Close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Template.docx") Dim paragraph As WParagraph = document.Sections(0).Paragraphs(1) 'Find the first occurrence of the regular expression Dim selection As TextSelection = paragraph.Find(New Regex("Panda")) 'Replace all occurrence of a particular regular expression with the text selection in the paragraph paragraph.Replace("Giant panda", selection, True, False, False) 'Save and Close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces first entry of given string with replace string, taking into consideration caseSensitive and wholeWord options. The string to replace Replace string Is case sensitive replace? Search for whole word? Replaces all entries of given regular expression with replace string. Inserts a section break. Creates new section with the break type new page. A reference to the newly created section. The following code example illustrates how to insert a section break. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); document.EnsureMinimal(); //Add text to the first section document.LastParagraph.AppendText("First section"); //Insert section break WSection newsection = document.LastParagraph.InsertSectionBreak(); //Add new paragraph to the second section IWParagraph paragraph = newsection.AddParagraph(); paragraph.AppendText("Second section"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() document.EnsureMinimal() 'Add text to the first section document.LastParagraph.AppendText("First section") 'Insert section break Dim newsection As WSection = document.LastParagraph.InsertSectionBreak() 'Add new paragraph to the second section Dim paragraph As IWParagraph = newsection.AddParagraph() paragraph.AppendText("Second section") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Inserts the section break. Creates new section with the specified break type. The member that specifies the break type. A reference to the newly created section. The following code example illustrates how to insert a section break. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); document.EnsureMinimal(); //Add text to the first section document.LastParagraph.AppendText("First section"); //Insert section break WSection newsection = document.LastParagraph.InsertSectionBreak(SectionBreakCode.Oddpage); //Add new paragraph to the second section IWParagraph paragraph = newsection.AddParagraph(); paragraph.AppendText("Second section"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() document.EnsureMinimal() 'Add text to the first section document.LastParagraph.AppendText("First section") 'Insert section break Dim newsection As WSection = document.LastParagraph.InsertSectionBreak(SectionBreakCode.Oddpage) 'Add new paragraph to the second section Dim paragraph As IWParagraph = newsection.AddParagraph() paragraph.AppendText("Second section") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the owner section. Gets the paragraph items. Clears the items. Returns all entries of given regex. The pattern. Returns first entry of given regex. The pattern. Removes the items range. The start index. if it speicifes the end, set to true. Clones without paragraph items. Appends paragraph item to the end of paragraph. Updates the text. The p item. The new text. Flag to check update the text by removing existing or by inserting in between. Updates the text. The paragraph item. Length of the text to remove. The new text. Flag to check update text by removing existing or by inserting inbetween. Updates the start position of next items from the inputed paragraph item. An item where to start updating start position in the paragraph. A value to add with start position of next items. Applies the specified style. Style name Specified style must exist in Document.Styles collection Checks whether text contains non-breaking space character or not and Word version is 2010 or 2013. Checks whether space combined with non breaking space character or not. Text which contains non-breaking space character. Position of the empty space character. Find the index of the space to split the Word. It space not combined with non-breaking space character, returns the index of the space character. Otherwise returns index of the last character in the Word. Text which contains non-breaking space character. Position of the empty space character. Applies the specified style. Style name Specified style must exist in Document.Styles collection Replaces the substring. The start. The length. The replacement. Adds the self. Apply the based on style to formattings. Destination Word document. Gets the current list level paragraph format properties and which is not available in paragrph inline. Clones the relations. While cloning the paragraph need to remove adding the Footnotes/Comments if the owner textBody is Wcomment/WFootnote for the Alternate chunk document To identify whether the current item need to be add current item into floating item collection Current entity trueif the current item is floating item, otherwisefalse Updates the merge formatting. The doc. Updates the source formatting. The doc. Clones the style relations. The doc. Imports the style to destination document. Creates a duplicate copy of the paragraph. The reference of the newly created paragraph. Clones itself without paragraph items. Clones the paragraph as text only. Determines whether next sibling item is non hidden paragraph or other textbody item. Determines whether the previous paragraph mark is hidden. Determines whether the previous paragraph mark is hidden. Determines whether the previous paragraph mark is in deletion revision. First previous deleted paragraph returns true if any previous deleted paragraphs has content in it. Otherwise returns false Determines whether the previous paragraph mark is in deletion revision. Determine whether the next entity is a non-delete revision list paragraph or not. If the next entity is a delete revision paragraph, then continue getting the next entity until a non-delete revision item occurs and retrieve the list entity. Store non delete revision list paragraph True if next entity is a non delete revision list paragraph, otherwise return False if is not a non delete revision list paragraph Determine whether the paragraph mark is deleted or not. Retrieves the previous or next non-delete revision entity based on the specified flag. Flag indicating whether to retrieve the previous entity (true) or the next entity (false). The previous or next non-delete revision entity. Checks wheather the previous paragraph has contents Gets the text. The start index. The end index. Determine whether the paragraph having only the empty spaces and bookmarks Applies the list style. The built-in style. Checks the normal style. Closes the item. Applies the list paragraph style. Gets the Owner table cell for paragraph. Owner textbody Determine whether the paragraph has section break Determines whether the paragraph is section end mark. true if the paragraph is section end mark; otherwise, false. Whether the paragraph's having childentites and checked the IsEmptyParagraph method. Modifies the text. The text. Update the bookmark end while moving the bookmark start from one paragraph to another paragraph Checks whether the frame height type is atleast or not Accepts or rejects changes tracked from the moment of last change acceptance. if it accepts changes, set to true. Removes the character format changes. Removes the paragraph/table format changes. Accepts the changes for character format. Accepts changes in paragraph/table format. Defines whether paragraph format is changed. Checks a value indicating whether this item was inserted to the document, when "Track Changes" is or was set to "true". if this instance was inserted, set to true. Checks a value indicating whether this item was deleted from the document, when "Track Changes" is or was set to "true". if this instance is delete revision, set to true. Defines whether format was changed. Checks whether full paragraph can be removed. Determines whether item has tracked changes. if has tracked changes, set to true. Sets the delete rev. if specifies delete revision, set to true. Sets the insert rev. if it specifies insert revision, set to true. Sets the changed C format. if it specifies formatting, set to true. Sets the changed P format. if it specifies changed format, set to true. Check that paragraph only has spaces or Not Return a Suitable bool value Check whether paragraph contains only textrange. Gets Next the text body item in the document. Writes object data as xml attributes. The object. Registers paragraph elements for xml serialization. Restores object references after deserialization. The string that specifies the name. The zero-based index. Determines the paragraph has no items. Checks whether any renderable items from the particular Index in Paragraph. The paragraph Index value. True, If any renderable items present from index else false. Gets the owner base entity. The entity returns the baseEntity Determines whether the specified layouted widget is first line of the paragrph. The lt widget. Remove split string widgets from the widget collection Gets previous widget Gets the previous inline items for the specified widget. The widget to get the previous inline items. The previous inline items for the specified widget, or null if there are no previous inline items. Determines whether the specified layouted widget is last line of the paragrph. The lt widget. Gets Next widget Initializing LayoutInfo to null Creates layout information. Updates the character spacing for the paragraph if it is in a table cell and the table cell is set to fit text. Updates the character spacing or scaling value for each text range in the paragraph. The width of the cell content. Specifies the total text length in a paragraph. Specifies the owner of the current paragraph. Splits the last character of a paragraph text into two text ranges. Specifies the last textrange in a paragraph. Determine whether the current paragraph is need to be hidden Determine whether the previous paragraph mark is in delete revision or not. If the previous paragraph including its items also in delete revison means, then continue getting the previous entity until a delete revision paragraph occurs. True if the previous paragraph is in a delete revision; otherwise false if it is a non delete revision paragraph Combine the widget by consicutive LTR and RTL texts. Determines the paragraph has no items. Splits the textranges by script types. Splits the textranges by consicutive LTR and RTL texts. To check whether the specified language is arabic language or not. Specify the language local id Return true if the language id is represent the arabic Gets the valid text from the paragraph. Determine whether the current paragraph is vertically aligned Determine whether the current paragraph is need to be hidden Splits the widget by line break character. Paragraph items Determine the whether the paragraph is the firstparagraph of the owner text body. returns the IsFirstParagraphOfOwnerTextBody Checks whether the childEntity is the first child of ownerBaseEntity or not. The owner Base Entity The child entity returns the isFirstParagraph Determines whether to skip cell mark layouting. For the cell mark present after a table in nested tables. true if is skip cell mark; otherwise, false. Returns the first inline item height of the current paragraph. The paragraph to which the height of first item to be found. The that specifies the first item in the paragraph. The float represents the height of the first item in the paragraph. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Returns the height of the specified paragraph item. The paragraph item to get the height. The float that specifies the height of the break character in the paragraph. The float represents the height of the paragraph item. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. Determine whether the current paragraph is having the same border values of Adjacent paragraphs Adjacent paragraph Determine whether the border properties are equivalent to Adjacent border To ensure wether current paragraph and adjacent paragraph is having same left indent value Adjacent paragraph Current paragraph left indent position truewhen the two paragraphs are having same left indent value, otherwisefalse Is paragraph before spacing need to be skip Get the default tab width Paragraph Default tab width value Implemented alternative method to improve the performance Gets the minimum and maximum and pargraph word width. Boolean to decide whether the ParagraphWidth calculation should do or not Gets the Paragraph Content Width The total content length of paragraph The total content length of paragraph Paragraph Items Sum of the paraitems width String builder to store the text of the paragraph Compare the two paragraphs formatting to mark the formatting differences. Original paragraph Compare the character format for matched text Compare the character format and apply format revision The original entity character format The revised entity character format Compare paragraph formats and character format for the current matched text A value indicating whether the character formats are equal. A value indicating whether current match is the first match in the paragraph The original document instance The matched text range index in the paragraph The matched text as TextSelection Compare paragraph formats for the current matched delimiter. A value indicating whether current match is the first match in the paragraph. The original document paragraph. Compare Two ParagraphFormat and return true if Equal else false. Apply paragraph format changes The original document paragraph Gets style name Id using the document. Style Name Document to get style name id Update the body item index when the end of the section is reached Start index of the last matched word End index of the last matched word Index of the matched item in paragraph Compare the revised document paragraph with the original document. The original document instance Check whether is there any item need to delete or insert before the matched word Add the skipped bookmarks while getting the match word Original document Skipped bookmark collection Matched word Compare the non renderable items Original document Original Textbody Para item index of revised Start range index of the current item in revised Check and remove the current bookmark if it is present in original document or textbody Original document Original textbody Current bookmark name Reset the para item index after removing the non renderable items Original document Original Textbody Start owner para index End owner para index Start item index End item index Split the matched text and unmatched text from the current textrange from both original document and revised document. Split the current textrange Mark insertion and deletion for the document items A value indicating whether to mark insert revisions A value indicating whether to mark delete revisions The original document instance The current matched test range as TextSelection Start text range index Compare empty paragraphs between documents The original document instance Compare the empty paragraphs before the current matched paragraph between documents The original document instance Compare the current item with current item in orginal document only. Not traverse to find next similar item in orginal document. Get the current paragraph item from document or textbody Update the next para item index for the revised document. Get the field code as string based on the field type Compare fields between the original and revised document The original document Index of the field Character index Character index Index of the word to match True if the last item is matched, else false Index of the current paragraph item Find the field from the collection Get the result part of the field Current document Current matched field Return a document containing the field result alone Clears headers and footers of Word document Compare the field result part of matched field in both revised and original document Original document Matched field from original document Matched field from revised document Compares the content of inline content controls between original and revised documents and applies track changes. The original document containing the inline content control. The revised document containing the inline content control. The text body of the original document. The text body of the revised document. The inline content control in the original document. The inline content control in the revised document. Retrieves the content of the inline content control as a separate document. The document containing the inline content control, or null if not provided. The text body of the document. The inline content control whose content is to be retrieved. The content of the inline content control as a separate document Move the field items from field begin to field separator from revised document to original document Original field Revised field Original document Revised document Remove the items between the field begin and field separator Compare pictures between the original and revised document The original document Index of the picture Character index Character index Index of the word to match True if the last item is matched, else false Index of the current paragraph item Mark revisions for the drawing elements Compare ole object from both original and revised document Insert or delete the unmatched items before the current matched item Move the current position to the next item in the document Splits the revised document text range Character index Start text range index Index of the current matched item Index of the word Character index The current matched word Splits the text range in the original document The original document instance Copy indexes from Document to textbody. Copy indexes from textbody to Document. Splits the text range in the original text body The original text body instance Splits the specified text range in the current paragraph Character index Character index Index of the text range to split Text range index The matched word Word index in the text range Find the exact match from the list of possible matches. Matches found in the original document Index of the current section Index of the owner paragraph Index of the current text range Index of the last matched word's last character Insert the paragraph items from the revised document to the original document The matched text range as TextSelection The original document instance The matched paragraph item index in the revised document Insert the missed items from revised to original. Original document Para item index in revised document Start textrange index of matched paragraph in original document Matched Body item index of original document Matched section index of original document Append the remaining para items from the revised to the paragraph end of the original. Set insertion mark to the paragraph and its items Add deletion mark to the paragraph and its items Remove the deletion mark for the paragraph and its items Remove the insertion mark of the paragraph and its items Mark deletion for the items in original document Updates track changes revision of paragraph while adding the entity. Boolean, to decide whether paragrapgh child revision should update or not Apply insertion revision Mark insert revision for the paragraph item The paragraph item instance Mark delete revision for the unmatched items The current matched text range index Apply delete revision for the unmatched items in the original document. Add delete revision mark in textbody from start to end Apply delete revisions for the items from start index to end index from the paragraph Mark delete revision for the paragraph item The paragraph item index Check the para item Gets the word to find in the original document The current item index in the paragraph The index of the text in the text range The start index of the (text range)word in the paragraph The word to find the match. Skip the previous non-renderable items and split the full text based on the delimiters Check whether paragraph item is non-renderable item Check whether the character is a special delimiter. The character to check True, if it is delimiter else false Compare the delimiter before the matched word with the previous text range. Check for spaces in the previous ranges Original text Revised text Character index Compare the delimiters in the text ranges Original text range Revised text range Get the special characters in the text range Text range instance Compare the paragraphs between two text body Text body instance. Compare the textranges Checks if a paragraph contains only comments or comment marks. Split the unmatched text as separate text range in the paragraph items. The paragraph instance The matched text range index Start character index End character index Compare the special delimiters and split as separate textrange if the formatting are different Split the delimiter from the given text range to separate text range. Return the separate delimiter text range Split the textrange of both original and revised document based on delimiter Skip the bookmarks Gets the paragraph text for word comparison Handled for preservation of inline SDT items in Doc to PDF conversion. Defines whether the paragraph has SDT inline items or not. Gets or sets a value indicating whether the splitwidget is drawn or not true if the splitwidget is drawn; otherwise, false. Gets or sets a value indicating whether the style is applied true if the style is applied; otherwise, false. Gets the boolean value to indicate whether need to measure size of the BookMarks Gets the type of the entity. Read-only. The of the current item. Gets the child elements of the paragraph. Read-only. The . Gets the name of the style applied to the current paragraph. Read-only. The string that represents the style name. Gets a string that represent the appearance of the list value of the paragraph. The string that represents a string value of the list of the paragraph. Default value is string.Empty The following example illustrates how to get a numeric string value of the list paragraph. // Loads an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Gets the document text document.GetText(); // Gets a numeric string value of the numbering list paragraph. String listString = document.LastParagraph.ListString; // Saves the document in the given name and format. document.Save("Document.docx", FormatType.Docx); // Releases the resources occupied by WordDocument instance. document.Close(); ' Loads an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") ' Gets the document text. document.GetText() ' Gets a numeric string value of the numbering list paragraph Dim listString As String = document.LastParagraph.ListString ' Saves the document in the given name and format. document.Save("Document.docx", FormatType.Docx) ' Releases the resources occupied by WordDocument instance. document.Close() This property holds the static string of the list value recently calculated while saving the document as Text. It is not updated automatically for each modification done in the document. Hence, you should either invoke WordDocument.GetText() method or save the document as Text, to get the actual list value from this property. For a picture bulleted list, this property is not valid and will return string.Empty. Gets or sets ID to the paragraph The string that represents the id. Gets or sets text of the paragraph. The string that represents the text. All the internal formatting will be cleared when new text is set. Gets or sets a value indicating whether the paragraph mark is treated as special hidden and it allows Microsoft Word to join paragraphs formatted using different paragraph styles. True if the paragraph mark is treated as special hidden; otherwise, false. Gets the paragraph item at the specified index. Read-only. The zero-based index of the item to get from the collection. The at the specified index. Gets the collection of in the current paragraph. Read-only. The of the paragraph. Gets the paragraph format of the current paragraph. Read-only. The of the paragraph. Gets the character format for the break symbol. Read-only. The of the paragraph. Gets the format for the list in the paragraph. Read-only. The of the list in the paragraph. Gets a value indicating whether the current paragraph is in cell. Read-only. True if this paragraph is in cell; otherwise, false. Gets or sets a value indicating whether this paragraph contains "\par" RTF tag. if this paragraph contains "\par" RTF tag, set to true. It's presence in last paragraph of the RTF from clipboard means that the copied content includes the last paragraph mark and its formatting should be copied in the pasted document. Also, the last paragraph should be preserved as separate paragraph and should not be merged in cursor position. Gets a value indicating whether the current paragraph is end of the section. Read-only. True if this paragraph is end of section; otherwise false. Gets a value indicating whether the current paragraph is end of document. Read-only. True if this paragraph is end of document; otherwise, false. Gets or sets a value indicating whether the Paragraph is last item in the Word document for Alternate chunk updated. true if the paragraph is the last item in Alternate chunk document; otherwise, false. Gets or sets a value indicating whether this instance is need to skip. true if this instance is need to skip; otherwise, false. Gets or sets a value indicating whether this instance is top margin value updated. true if this instance is top margin value updated; otherwise, false. Gets count of child items. Gets child widgets. Gets child item by index. Gets the paragraph items collection. The instance. Gets or sets a value indicating whether to remove empty paragraph. if its specifies to remove empty paragraph, set to true. Gets the last item. The last item. Gets the paragraph style. The style. Gets a value indicating whether the paragraph is section end mark. true if the paragraph is section end mark; otherwise, false. Gets or sets a value indicating whether this instance is text replaced. true if this instance is text replaced; otherwise, false. Gets or sets a value indicating whether HTML is appending in this paragraph. true if HTML is appending in this paragraph; otherwise, false. Gets or sets a value indicating whether the Paragraph created using span tag in HTML. true if the paragraph is created using span tag in HTML; otherwise, false. This property is implemented for document editor internal use only. Get or set the internal text property The class specifies the Layout paragraph information. Summary description for ParagraphLayoutInfo. Summary description for LayoutInfo. Summary description for ILayoutInfo. Gets or sets a value indicating whether this instance is clipped. true if this instance is clipped; otherwise, false. Gets a value indicating whether this instance is skip. true if this instance is skip; otherwise, false. Gets or sets a value indicating whether this instance is skip bottom align. true if this instance is skip bottom align; otherwise, false. Gets a value indicating whether this instance is line container. true if this instance is line container; otherwise, false. Gets the children layout direction. The children layout direction. Gets or sets a value indicating whether this instance is line break. true if this instance is line break; otherwise, false. Gets or sets a value indicating whether [text wrap]. true if [text wrap]; otherwise, false. Gets or sets a value indicating whether this instance is page break item. true if this instance is page break item; otherwise, false. Gets a value indicating whether this instance is first Text Body Item of current page. true if this instance is first Text Body Item of current page; otherwise, false. Gets or sets a value indicating whether this instance is keep with next. true if this instance is keep with next; otherwise, false. Gets or sets a value indicating whether this instance is hidden. true if this instance is hidden; otherwise, false. Gets/Sets the Size of the widget Initializes a new instance of the class. Initializes a new instance of the class. The child layout direction. Gets or sets a value indicating whether this instance is clipped. true if this instance is clipped; otherwise, false. Gets/Sets the Size of the Widget Currently We have handled the Size property as specifically to get the text size of the TextRange and Empty textrange size of the paragraph. In Feature, We need to use this property to get the size of the all widgets Gets a value indicating whether this instance is skip. true if this instance is skip; otherwise, false. Gets or sets a value indicating whether this instance is skip bottom align. true if this instance is skip bottom align; otherwise, false. Gets or sets a value indicating whether the owner table cell is having text direction as vertical true if this instance is having the text direction as vertical; otherwise, false. Gets a value indicating whether this instance is line container. true if this instance is line container; otherwise, false. Gets the children layout direction. The children layout direction. Gets or sets a value indicating whether this instance is line break. true if this instance is line break; otherwise, false. Gets or sets a value indicating whether this instance is line Number Item. true if this instance is line Number Item.; otherwise, false. Gets or sets a value indicating whether [text wrap]. true if [text wrap]; otherwise, false. Gets or sets a value indicating whether this instance is page break item. true if this instance is page break item; otherwise, false. Gets a value indicating whether this instance is first Text Body Item of current page. true if this instance is first Text Body Item of current page; otherwise, false. Gets or sets a value indicating whether this instance is keep with next. true if this instance is keep with next; otherwise, false. Gets or sets a value indicating whether this instance is hidden. true if this instance is hidden; otherwise, false. Summary description for ILayoutSpacingsInfo. Gets the paddings. The paddings. Gets the margins. The margins. Holds the Y position for List value. Initializes a new instance of the class. The child layout direction. Initializes a new instance of the class. The child layout direction. Is page break. Initializes a new instance of the class. Initializes the layout info values as null. Gets or sets a value indicating whether this instance is page break. true if this instance is page break; otherwise, false. True, if we can break the pragraph for page break, column break, section break. Based on this, we setting state for layouting to split page. Gets or sets the level number. The level number. Gets or sets the justification. The justification. Gets or sets the first line indent. The first line indent. Gets or sets a value indicating whether this instance is keep together. true if this instance is keep together; otherwise, false. Gets or sets the list tab. The list tab. Get the list tab width Gets or sets the Y position. The Y position. Holds the current paragraph original Y position. This property value won't change when paragraph wrapped by floating item. At now handled to hold the value for negative vertical position Need to handled for all cases The Y position. Gets the Y positions for List value. The Y positions of List. Gets or sets the list value. The list value. Gets or sets the Current list Type. The list value. Gets or sets the character format for the list. The character format. Gets or sets alignment of the list number (left, right, or centered). Gets or sets the current list tab stop. Gets or sets a value indicating whether the line is the first line of the paragraph. true if this line is first line of the paragraph; otherwise, false. Gets or sets Top Padding of the paragraph. Gets or sets Bottom padding of the paragraph. Gets or sets TopMargin of the paragraph. Gets or sets BottomMargin of the paragraph. Gets or sets a value indicating whether the paragraph is last paragraph of the page. true if this paragraph paragraph is last paragraph of the page; otherwise, false. Gets or sets a value indicating whether [x position re update]. true if [x position re update]; otherwise, false. Gets or sets the X position. The Y position. Gets or sets a value indicating whether this instance is section end mark. true if this instance is section end mark; otherwise, false. Gets the paddings. The paddings. Gets the margins. The margins. Initializes a new instance of the class. The paragraph. Get the Empty size of the empty TextRange Updates IsClipped Property for the Paragraph. Get Base Entity. The entity. Determines the list format. Update List Paragraph After/Before spacing Get the size of the list value List level Size Updates the width of the list value, if the follow character is space or nothing. The level. Updates the list tab. Updates the width of the tab, based on the list text. The tabs. The width. Copys Character formatting Determines the borders. Determines the borders. Determines the page breaks. Retrieves the first paragraph from the given entity, which can be a WParagraph, WTable, or BlockContentControl. The entity from which to retrieve the first paragraph. This can be a WParagraph, WTable, or BlockContentControl. The first WParagraph found within the given entity, or null if no paragraph is found. To identify if the current paragraph is the last paragraph of its owner text body. True if the current paragraph is the last paragraph of its owner text body; otherwise, false. Determines the format. Check next and previous cell's paragraph and adjust its top and bottom margin of current paragraph. Check next and previous cell's paragraph and adjust its top and bottom margin of current paragraph. Returs true if para have bullets or numbering. Adjust the para top and bottom margin when next item or prev item is table and current para is not first or last para. Get the next table first paragraph. Check owner table previos item is table then its nested table continously iterates to get previous paragraph of base table. Update Paragraph After/Before Spacing check whethere current para and next or previous para have same style. if same style means return true else return false. Updates the after spacing value for the paragraph. Updates the top margin value based on previous section last paragraph after spacing. Gets the previous sibling. Gets the next sibling. Gets the last item of previous section. Index of the current section. Determine whether the paragraph contains list type. Gets the document. The document. Summary description for TabsLayoutInfo. Initializes a new instance of the class. if set to true [b top subtract area]. Gets the next tab position. The position. Adds the tab. The position. The justification. The leader. Updates the tabs. The paragraph format. Remove the clear tab from the tabs collection Update tabs collection Gets the width of the default tab. The width of the default tab. Gets the Page MarginLeft. The Page MarginLeft. Gets the Page MarginRight. The Page MarginRight. Determine whether the tab preserved inbetween the indent Gets/sets the width of the tab The width of the tab. Gets the current tab leader. The current tab leader. Gets the current tab justification. The current tab justification. Gets the layouted tab collections Initializes a new instance of the class. Initializes a new instance of the class. The position. The justification. The leader. Gets or sets the justification. The justification. Gets or sets the tab leader. The tab leader. Gets or sets the position. The position. Initializes a new instance of the class. The paragrath. Skipped bookmarks while getting the match word Bookmark end or not Bookmark Name Represents the section of a Word document which contains header, footer, text body, etc. Represents a section. Adds a new to the section. The float that specifies the width of the column. The float that specifies the spacing between the columns. The reference to the newly added object. The following example illustrates how to have multiple columns in a section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into Word document IWSection section = document.AddSection(); //Add the column into the section section.AddColumn(150, 20); //Add the column into the section section.AddColumn(150, 20); //Add the column into the section section.AddColumn(150, 20); //Add a paragraph to created section IWParagraph paragraph = section.AddParagraph(); //Add a paragraph to created section paragraph = section.AddParagraph(); paragraph.Text = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Append the text to the created paragraph paragraph.AppendText(paragraph.Text); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Add a paragraph to created section paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText(paragraph.Text); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Add a paragraph to created section paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText(paragraph.Text); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into Word document Dim section As IWSection = document.AddSection() 'Add the column into the section section.AddColumn(150, 20) 'Add the column into the section section.AddColumn(150, 20) 'Add the column into the section section.AddColumn(150, 20) 'Add a paragraph to created section Dim paragraph As IWParagraph = section.AddParagraph() 'Add a paragraph to created section paragraph = section.AddParagraph() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Add a paragraph to created section paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Add a paragraph to created section paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds the to the section body. The reference to the newly created paragraph. The following example illustrates how to add a paragraph to the section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Gets the first section in the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("First paragraph in section"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Gets the first section in the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("First paragraph in section") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds the to the section body. The reference to the newly created table. The following example illustrates how to add a table to the section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Gets the first section in the document IWSection section = document.AddSection(); //Add new table to the section IWTable table = section.AddTable(); //Set rows and columns count table.ResetCells(2, 2); //Add contents to the table IWParagraph paragraph = table[0, 0].AddParagraph(); paragraph.AppendText("Apple"); paragraph = table[0, 1].AddParagraph(); paragraph.AppendText("Red"); paragraph = table[1, 0].AddParagraph(); paragraph.AppendText("Banana"); paragraph = table[1, 1].AddParagraph(); paragraph.AppendText("Yellow"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Gets the first section in the document Dim section As IWSection = document.AddSection() 'Add new table to the section Dim table As IWTable = section.AddTable() 'Set rows and columns count table.ResetCells(2, 2) 'Add contents to the table Dim paragraph As IWParagraph = table(0, 0).AddParagraph() paragraph.AppendText("Apple") paragraph = table(0, 1).AddParagraph() paragraph.AppendText("Red") paragraph = table(1, 0).AddParagraph() paragraph.AppendText("Banana") paragraph = table(1, 1).AddParagraph() paragraph.AppendText("Yellow") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Clones the , creates a duplicate copy. The cloned object. Makes all columns in the current section to be of equal width. The following example illustrates how to have make the columns to be of equal width in a section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument("Sample.docx"); //Gets the first section in the document IWSection section = document.Sections[0]; //Make the columns to be of equal width section.MakeColumnsEqual(); //Save and close the document document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument("Sample.docx") 'Gets the first section in the document Dim section As IWSection = document.Sections(0) 'Make the columns to be of equal width section.MakeColumnsEqual() 'Save and close the document document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Gets the paragraphs in the current section. Read-only. The that represents the collection of in the section. Gets the tables in the current section. Read-only. The that represents the collection of in the section. Gets the section body. Read-only. The of the current section. Gets the page setup of the current section. Read-only. The of the current section. Gets the collection of columns which logically divide page on many printing or publishing areas. Read-only. The collection of columns in the section. Gets or sets section break code of the current section. The member that specifies the break code. Gets or sets a value indicating whether to allow editing of form fields in the section. True if to allow editing of form fields; otherwise, false. Gets headers and footers of the current section. Read-only. The instance that specifies current section header, footer. Specifies the Section format. The headers / footers, related with current section. PreviousHeaderCount for Alternate chunk PreviousFooteCount for Alternate chunk Gets the section body. Read-only. Initializes a new instance of the class with the instance. The instance. Adds a new to the section. The float that specifies the width of the column. The float that specifies the spacing between the columns. The reference to the newly added object. The following example illustrates how to have multiple columns in a section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add the section into Word document IWSection section = document.AddSection(); //Add the column into the section section.AddColumn(150, 20); //Add the column into the section section.AddColumn(150, 20); //Add the column into the section section.AddColumn(150, 20); //Add a paragraph to created section IWParagraph paragraph = section.AddParagraph(); //Add a paragraph to created section paragraph = section.AddParagraph(); paragraph.Text = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Append the text to the created paragraph paragraph.AppendText(paragraph.Text); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Add a paragraph to created section paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText(paragraph.Text); //Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak); //Add a paragraph to created section paragraph = section.AddParagraph(); //Append the text to the created paragraph paragraph.AppendText(paragraph.Text); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add the section into Word document Dim section As IWSection = document.AddSection() 'Add the column into the section section.AddColumn(150, 20) 'Add the column into the section section.AddColumn(150, 20) 'Add the column into the section section.AddColumn(150, 20) 'Add a paragraph to created section Dim paragraph As IWParagraph = section.AddParagraph() 'Add a paragraph to created section paragraph = section.AddParagraph() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Add a paragraph to created section paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Add the column breaks paragraph.AppendBreak(BreakType.ColumnBreak) 'Add a paragraph to created section paragraph = section.AddParagraph() 'Append the text to the created paragraph paragraph.AppendText(paraText) 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new to the section. The float that specifies the width of the column. The float that specifies the spacing between the columns. The bool that specifies whether the document is opened. The reference to the newly added object. Makes all columns in the current section to be of equal width. The following example illustrates how to have make the columns to be of equal width in a section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument("Sample.docx"); //Gets the first section in the document IWSection section = document.Sections[0]; //Make the columns to be of equal width section.MakeColumnsEqual(); //Save and close the document document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument("Sample.docx") 'Gets the first section in the document Dim section As IWSection = document.Sections(0) 'Make the columns to be of equal width section.MakeColumnsEqual() 'Save and close the document document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Creates a duplicate copy of the current section. The reference to the newly created section. Adds the to the section body. The reference to the newly created paragraph. The following example illustrates how to add a paragraph to the section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Gets the first section in the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("First paragraph in section"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Gets the first section in the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("First paragraph in section") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds the to the section body. The reference to the newly created table. The following example illustrates how to add a table to the section. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Gets the first section in the document IWSection section = document.AddSection(); //Add new table to the section IWTable table = section.AddTable(); //Set rows and columns count table.ResetCells(2, 2); //Add contents to the table IWParagraph paragraph = table[0, 0].AddParagraph(); paragraph.AppendText("Apple"); paragraph = table[0, 1].AddParagraph(); paragraph.AppendText("Red"); paragraph = table[1, 0].AddParagraph(); paragraph.AppendText("Banana"); paragraph = table[1, 1].AddParagraph(); paragraph.AppendText("Yellow"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Gets the first section in the document Dim section As IWSection = document.AddSection() 'Add new table to the section Dim table As IWTable = section.AddTable() 'Set rows and columns count table.ResetCells(2, 2) 'Add contents to the table Dim paragraph As IWParagraph = table(0, 0).AddParagraph() paragraph.AppendText("Apple") paragraph = table(0, 1).AddParagraph() paragraph.AppendText("Red") paragraph = table(1, 0).AddParagraph() paragraph.AppendText("Banana") paragraph = table(1, 1).AddParagraph() paragraph.AppendText("Yellow") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds the alternate chunk. Adds the self. Gets the text. Add Empty paragraph to the section when the section doesn't have any items in the body collection or else it's last item is table in order to preserve section break Checks whether the section has valid line numberings. Clones the without body items. Creates new section by cloning the page setup, column and header footers of the current section. Clones the relations. Creates a duplicate copy of the section. An object that can be casted as . Accepts or rejects changes tracked from the moment of last change acceptance. Determines whether section has tracked changes. if has tracked changes, set to true. Compare header and footer of two sections and mark the revisions. Clear the object from the allocated memory. Get the first paragraph in section. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Create layout information. Gets or sets the PreviousHeaderCount for Alternate chunk Gets or sets the PreviousFooteCount for Alternate chunk Gets the section body. Read-only. The of the current section. Gets headers and footers of the current section. Read-only. The instance that specifies current section header, footer. Gets the page setup of the current section. Read-only. The of the current section. Gets the section formatting. Gets the collection of columns which logically divide page on many printing or publishing areas. Read-only. The collection of columns in the section. Gets or sets section break code of the current section. The member that specifies the break code. Gets the type of the entity. Read-only. The of the current item. Gets the child elements of the section. Read-only. The collection of child elements. Gets the paragraphs in the current section. Read-only. The that represents the collection of in the section. Gets the tables in the current section. Read-only. The that represents the collection of in the section. Gets or sets the text direction. The text direction. Gets or sets a value indicating whether to allow editing of form fields in the section. True if to allow editing of form fields; otherwise, false. Gets or sets a value indicating whether to the continuous section fit in same page or not. True if no need to create new page for continous section break; otherwise, false. Returns the entity collection. The collection of entities in the text body. Gets the type of the elements present in the collection. The collection that contains the types of the elements. Represents a table in the Word document. Represents a table in a document. Adds a new row to the table. The reference to the newly added . The following example illustrates how to add new row to the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row to table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into first row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("$40"); //Add second row to table row = table.AddRow(false); //Add the first cell into first row cell = row.Cells[0]; cell.AddParagraph().AppendText("Orange"); //Add the second cell into first row cell = row.Cells[1]; cell.AddParagraph().AppendText("$30"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row to table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into first row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("$40") 'Add second row to table row = table.AddRow(False) 'Add the first cell into first row cell = row.Cells(0) cell.AddParagraph().AppendText("Orange") 'Add the second cell into first row cell = row.Cells(1) cell.AddParagraph().AppendText("$30") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new row to table specifying whether to have the same format as the previous row. True if to have the same format as previous row; otherwise, false. The reference to the newly added . The following example illustrates how to add new row to the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row to table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into first row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("$40"); //Add second row to table row = table.AddRow(false); //Add the first cell into first row cell = row.Cells[0]; cell.AddParagraph().AppendText("Orange"); //Add the second cell into first row cell = row.Cells[1]; cell.AddParagraph().AppendText("$30"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row to table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into first row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("$40") 'Add second row to table row = table.AddRow(False) 'Add the first cell into first row cell = row.Cells(0) cell.AddParagraph().AppendText("Orange") 'Add the second cell into first row cell = row.Cells(1) cell.AddParagraph().AppendText("$30") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new row to table specifying whether to have the same format and cells count similar to the previous row. True if to have the same format as previous row; otherwise, false. True if need to auto populate cells; otherwise, false. The reference to the newly added . The following example illustrates how to add a row with formatting similar to the previous row. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row into table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Item"); //Add the second cell into first row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Price($)"); //Add the second row into table row = table.AddRow(true, false); //Add the first cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("50"); //Add the third row into table row = table.AddRow(true, false); //Add the first cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Orange"); //Add the second cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("30"); document.Save("Table.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row into table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Item") 'Add the second cell into first row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Price($)") 'Add the second row into table row = table.AddRow(True, False) 'Add the first cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("50") 'Add the third row into table row = table.AddRow(True, False) 'Add the first cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Orange") 'Add the second cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("30") document.Save("Table.docx", FormatType.Docx) document.Close() End Sub Resets the table with the specified number of rows and columns. The integer specifies the number of rows. The integer specifies the number of columns. The following example illustrates how to add a table to the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Gets the first section in the document IWSection section = document.AddSection(); //Add new table to the section IWTable table = section.AddTable(); //Set rows and columns count table.ResetCells(2, 2); //Add contents to the table IWParagraph paragraph = table[0, 0].AddParagraph(); paragraph.AppendText("Apple"); paragraph = table[0, 1].AddParagraph(); paragraph.AppendText("Red"); paragraph = table[1, 0].AddParagraph(); paragraph.AppendText("Banana"); paragraph = table[1, 1].AddParagraph(); paragraph.AppendText("Yellow"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Gets the first section in the document Dim section As IWSection = document.AddSection() 'Add new table to the section Dim table As IWTable = section.AddTable() 'Set rows and columns count table.ResetCells(2, 2) 'Add contents to the table Dim paragraph As IWParagraph = table(0, 0).AddParagraph() paragraph.AppendText("Apple") paragraph = table(0, 1).AddParagraph() paragraph.AppendText("Red") paragraph = table(1, 0).AddParagraph() paragraph.AppendText("Banana") paragraph = table(1, 1).AddParagraph() paragraph.AppendText("Yellow") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Resets the table with the specified number of rows and columns, table format and cell width. The integer specifies the number of rows. The integer specifies the number of columns. The specifies the format for the table. The float specifies the width of the cells. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Add a new table into Word document IWTable table = section.AddTable(); RowFormat format = new RowFormat(); format.BackColor = Color.LightGray; format.CellSpacing = 2; format.Paddings.All = 2; //Set number of rows and columns table.ResetCells(2, 2, format, 200); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() 'Add a new table into Word document Dim table As IWTable = section.AddTable() Dim format As New RowFormat() format.BackColor = Color.LightGray format.CellSpacing = 2 format.Paddings.All = 2 'Set number of rows and columns table.ResetCells(2, 2, format, 200) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Applies the vertical merge for table cells specified by the column index, start row index and end row index. The integer specifies index of the column. The integer specifies start index of the row. The integer specifies end index of the row. The following example illustrates how to apply vertical merge for the table cells. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Vertical merging of Table cells"); IWTable table = section.AddTable(); table.ResetCells(5, 5); //Specify the vertical merge to the third cell, from second row to fifth row table.ApplyVerticalMerge(2, 1, 4); document.Save("VerticalMerge.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Vertical merging of Table cells") Dim table As IWTable = section.AddTable() table.ResetCells(5, 5) 'Specify the vertical merge to the third cell, from second row to fifth row table.ApplyVerticalMerge(2, 1, 4) document.Save("VerticalMerge.docx", FormatType.Docx) document.Close() End Sub Applies horizontal merge for table cells specified by the row index, start cell index and end cell index. The integer specifies index of the row. The integer specifies start index of the cell. The integer specifies end index of the cell. The following example illustrates how to apply horizontal merge for the table cells. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Vertical merging of Table cells"); IWTable table = section.AddTable(); table.ResetCells(5, 5); //Specify the horizontal merge from second cell to fifth cell in third row table.ApplyHorizontalMerge(2, 1, 4); document.Save("HorizontalMerge.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Vertical merging of Table cells") Dim table As IWTable = section.AddTable() table.ResetCells(5, 5) 'Specify the horizontal merge from second cell to fifth cell in third row table.ApplyHorizontalMerge(2, 1, 4) document.Save("HorizontalMerge.docx", FormatType.Docx) document.Close() End Sub Removes the absolute position data, if the table has absolute position in the document. Applies the built-in table style to the table. The to be applied for the table. The following example illustrates how to apply built-in style for the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; //Get the table WTable table = section.Tables[0] as WTable; //Apply "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) 'Get the table Dim table As WTable = TryCast(section.Tables(0), WTable) 'Apply "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets the style applied for the table. The of the current table. Gets the rows collection that represent all the rows in the table. Read-only. The collection of rows in the table. Gets the table format. Read-only. The object that specifies the table format. Gets the last cell in last row. Read-only. The object that represents the last cell. The following example illustrates how to get the last cell of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get the last cell WTableCell cell = table.LastCell; //Apply text direction to the last cell cell.CellFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.Vertical; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get the last cell Dim cell As WTableCell = table.LastCell 'Apply text direction to the last cell cell.CellFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.Vertical 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the first row in table. Read-only. The object that represents the first row in the table. The following example illustrates how to get the first row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get the last cell WTableRow row = table.FirstRow; //Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get the last cell Dim row As WTableRow = table.FirstRow 'Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the last row in table. Read-only. The object that represents the last row in the table. The following example illustrates how to get the last row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get the last cell WTableRow row = table.LastRow; //Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get the last cell Dim row As WTableRow = table.LastRow 'Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the table cell at the specified row and column index. Read-only. The integer that specifies the row index. The integer that specifies the column index. The object at the specified index. The index is not valid in the table. The following example illustrates how to get the cell in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Add new table. IWTable table = section.AddTable(); table.ResetCells(2, 2); //Add content to table cell table[0, 0].AddParagraph().AppendText("First row, First cell"); table[0, 1].AddParagraph().AppendText("First row, Second cell"); table[1, 0].AddParagraph().AppendText("Second row, First cell"); table[1, 1].AddParagraph().AppendText("Second row, Second cell"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Horizontal merging of Table cells") 'Add new table. Dim table As IWTable = section.AddTable() table.ResetCells(2, 2) 'Add content to table cell table(0, 0).AddParagraph().AppendText("First row, First cell") table(0, 1).AddParagraph().AppendText("First row, Second cell") table(1, 0).AddParagraph().AppendText("Second row, First cell") table(1, 1).AddParagraph().AppendText("Second row, Second cell") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the width of the table(in points). The float that specifies the width of the table. Gets or sets the table title. The string that specifies the title of the table. Gets or sets the table description. The string that specifies the description of the table. Gets or sets a value indicating whether to apply heading-row formatting to the first row of the table. The default value is true. True if need to apply style for first row; otherwise, false. The following example illustrates how to apply style for header row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Disable special formatting for header row of the table table.ApplyStyleForHeaderRow = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Disable special formatting for header row of the table table.ApplyStyleForHeaderRow = False 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply last-row formatting to the last row of the specified table. True if need to apply style for last row; otherwise, false. The following example illustrates how to apply style for last row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Enable special formatting for last row of the table table.ApplyStyleForLastRow = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for last row of the table table.ApplyStyleForLastRow = True 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table. The default value is true. True if need to apply style for first column; otherwise, false. The following example illustrates how to apply style for first column of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Disable special formatting for first column of the table table.ApplyStyleForFirstColumn = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Disable special formatting for first column of the table table.ApplyStyleForFirstColumn = False 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply last-column formatting to the last column of the specified table.. True if need to apply style for last column; otherwise, false. The following example illustrates how to apply style for last column of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Enable special formatting for last column of the table table.ApplyStyleForLastColumn = true; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for last column of the table table.ApplyStyleForLastColumn = True 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply style bands to the rows in a table, if an applied preset table style provides style banding for rows. The default value is True. True if need to apply style for banded rows; otherwise, false. The following example illustrates how to apply style for banded rows of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Disable special formatting for banded rows of the table table.ApplyStyleForBandedRows = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for banded rows of the table table.ApplyStyleForBandedRows = False 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply style bands to the columns in a table, if an applied preset table style provides style banding for columns. True if need to apply style for banded columns; otherwise, false. The following example illustrates how to apply style for banded columns of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Enable special formatting for banded columns of the table table.ApplyStyleForBandedColumns = true; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for banded columns of the table table.ApplyStyleForBandedColumns = True 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets the indent from left for the table. The float value that indicates the indent from left. The following example illustrates how to set the left indent for the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Add a new table into Word document IWTable table = section.AddTable(); //Set number of rows and columns table.ResetCells(2, 2); //Set left indent for table. table.IndentFromLeft = 10; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Set number of rows and columns table.ResetCells(2, 2) 'Set left indent for table. table.IndentFromLeft = 10 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Represents a Widget with table layout. Gets cell widget by row/column indexes. Gets row widget by row index. Gets the row index which contains max no of cells or columns Gets rows count. The table style Change the trackchanges table grid into current table grid Initializes a new instance of the class with the specified instance. The instance. Change the name of the style. Creates the default table grid style. Creates the default Normal table style. Initializes a new instance of the class with the specified instance and show border option. The instance. True if to show the table border; otherwise, false. Creates a duplicate copy of the table. The reference to the newly created object. Resets the table with the specified number of rows and columns. The integer specifies the number of rows. The integer specifies the number of columns. The following example illustrates how to add a table to the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Gets the first section in the document IWSection section = document.AddSection(); //Add new table to the section IWTable table = section.AddTable(); //Set rows and columns count table.ResetCells(2, 2); //Add contents to the table IWParagraph paragraph = table[0, 0].AddParagraph(); paragraph.AppendText("Apple"); paragraph = table[0, 1].AddParagraph(); paragraph.AppendText("Red"); paragraph = table[1, 0].AddParagraph(); paragraph.AppendText("Banana"); paragraph = table[1, 1].AddParagraph(); paragraph.AppendText("Yellow"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Gets the first section in the document Dim section As IWSection = document.AddSection() 'Add new table to the section Dim table As IWTable = section.AddTable() 'Set rows and columns count table.ResetCells(2, 2) 'Add contents to the table Dim paragraph As IWParagraph = table(0, 0).AddParagraph() paragraph.AppendText("Apple") paragraph = table(0, 1).AddParagraph() paragraph.AppendText("Red") paragraph = table(1, 0).AddParagraph() paragraph.AppendText("Banana") paragraph = table(1, 1).AddParagraph() paragraph.AppendText("Yellow") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub The number of cells must be between 1 and 63. Resets the table with the specified number of rows and columns, table format and cell width. The integer specifies the number of rows. The integer specifies the number of columns. The specifies the format for the table. The float specifies the width of the cells. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Add a new table into Word document IWTable table = section.AddTable(); RowFormat format = new RowFormat(); format.BackColor = Color.LightGray; format.CellSpacing = 2; format.Paddings.All = 2; //Set number of rows and columns table.ResetCells(2, 2, format, 200); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() 'Add a new table into Word document Dim table As IWTable = section.AddTable() Dim format As New RowFormat() format.BackColor = Color.LightGray format.CellSpacing = 2 format.Paddings.All = 2 'Set number of rows and columns table.ResetCells(2, 2, format, 200) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Applies the built-in table style to the table. The to be applied for the table. The following example illustrates how to apply built-in style for the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; //Get the table WTable table = section.Tables[0] as WTable; //Apply "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) 'Get the table Dim table As WTable = TryCast(section.Tables(0), WTable) 'Apply "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Applies the builtin style for the table Builtin style name true if the table cell shading information need to be cleared; otherwise false. Adds a new row to the table. The reference to the newly added . The following example illustrates how to add new row to the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row to table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into first row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("$40"); //Add second row to table row = table.AddRow(false); //Add the first cell into first row cell = row.Cells[0]; cell.AddParagraph().AppendText("Orange"); //Add the second cell into first row cell = row.Cells[1]; cell.AddParagraph().AppendText("$30"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row to table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into first row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("$40") 'Add second row to table row = table.AddRow(False) 'Add the first cell into first row cell = row.Cells(0) cell.AddParagraph().AppendText("Orange") 'Add the second cell into first row cell = row.Cells(1) cell.AddParagraph().AppendText("$30") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new row to table specifying whether to have the same format as the previous row. True if to have the same format as previous row; otherwise, false. The reference to the newly added . The following example illustrates how to add new row to the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row to table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into first row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("$40"); //Add second row to table row = table.AddRow(false); //Add the first cell into first row cell = row.Cells[0]; cell.AddParagraph().AppendText("Orange"); //Add the second cell into first row cell = row.Cells[1]; cell.AddParagraph().AppendText("$30"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row to table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into first row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("$40") 'Add second row to table row = table.AddRow(False) 'Add the first cell into first row cell = row.Cells(0) cell.AddParagraph().AppendText("Orange") 'Add the second cell into first row cell = row.Cells(1) cell.AddParagraph().AppendText("$30") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new row to table specifying whether to have the same format and cells count similar to the previous row. True if to have the same format as previous row; otherwise, false. True if need to auto populate cells; otherwise, false. The reference to the newly added . The following example illustrates how to add a row with formatting similar to the previous row. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row into table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Item"); //Add the second cell into first row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Price($)"); //Add the second row into table row = table.AddRow(true, false); //Add the first cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Apple"); //Add the second cell into second row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("50"); //Add the third row into table row = table.AddRow(true, false); //Add the first cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("Orange"); //Add the second cell into third row cell = row.AddCell(); //Specify the cell width cell.Width = 200; cell.AddParagraph().AppendText("30"); document.Save("Table.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row into table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Item") 'Add the second cell into first row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Price($)") 'Add the second row into table row = table.AddRow(True, False) 'Add the first cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Apple") 'Add the second cell into second row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("50") 'Add the third row into table row = table.AddRow(True, False) 'Add the first cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("Orange") 'Add the second cell into third row cell = row.AddCell() 'Specify the cell width cell.Width = 200 cell.AddParagraph().AppendText("30") document.Save("Table.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the table with the replace string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. The following example illustrates how to replace a text in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Replace the text table.Replace(new Regex("illustrates"), "describes"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Replace the text table.Replace(New Regex("illustrates"), "describes") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given string in the table with replace string, taking into consideration case sensitive and whole word options. The string represents the text to be found. The string specifies the text to replace. Set to true to match the case of the text similar to specified in the parameter; otherwise false. Set to true to match the whole word of the text similar to specified in the parameter; otherwise false. The integer that represents the count of the replacements made. The following example illustrates how to replace a text in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Replace the text table.Replace("illustrates", "describes", true, true); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Replace the text table.Replace("illustrates", "describes", True, True) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces the specified regular expression with a in the table. The used to find the text. The which specifies the text to replace. The integer that represents the count of the replacements made. The following example illustrates how to replace a text in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get first paragraph WParagraph paragraph = document.Sections[0].Paragraphs[0]; //Get the text using text selection TextSelection selection = new TextSelection(paragraph, 0, 20); //Replace the text table.Replace(new Regex("illustrates"), selection); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get first paragraph Dim paragraph As WParagraph = document.Sections(0).Paragraphs(0) 'Get the text using text selection Dim selection As New TextSelection(paragraph, 0, 20) 'Replace the text table.Replace(New Regex("illustrates"), selection) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Replaces all entries of given regular expression in the table with the along with its formatting. The used to find the text. The which specifies the text to replace. Set to true if to save source formatting; otherwise, false. The integer that represents the count of the replacements made. The following example illustrates how to replace a text in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get first paragraph WParagraph paragraph = document.Sections[0].Paragraphs[0]; //Get the text using text selection TextSelection selection = new TextSelection(paragraph, 0, 20); //Replace the text table.Replace(new Regex("illustrates"), selection, true); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get first paragraph Dim paragraph As WParagraph = document.Sections(0).Paragraphs(0) 'Get the text using text selection Dim selection As New TextSelection(paragraph, 0, 20) 'Replace the text table.Replace(New Regex("illustrates"), selection, True) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Returns first entry of the specified in the table. The that specifies the text to be found. The object which represents the text found. The following example illustrates how to find a text in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Find the text in the table TextSelection selection = table.Find(new Regex("content")); WTextRange text = selection.GetAsOneRange(); //Set the character format of the text found text.CharacterFormat.AllCaps = true; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Find the text in the table Dim selection As TextSelection = table.Find(New Regex("content")) Dim text As WTextRange = selection.GetAsOneRange() 'Set the character format of the text found text.CharacterFormat.AllCaps = True 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Applies the vertical merge for table cells specified by the column index, start row index and end row index. The integer specifies index of the column. The integer specifies start index of the row. The integer specifies end index of the row. The following example illustrates how to apply vertical merge for the table cells. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Vertical merging of Table cells"); IWTable table = section.AddTable(); table.ResetCells(5, 5); //Specify the vertical merge to the third cell, from second row to fifth row table.ApplyVerticalMerge(2, 1, 4); document.Save("VerticalMerge.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Vertical merging of Table cells") Dim table As IWTable = section.AddTable() table.ResetCells(5, 5) 'Specify the vertical merge to the third cell, from second row to fifth row table.ApplyVerticalMerge(2, 1, 4) document.Save("VerticalMerge.docx", FormatType.Docx) document.Close() End Sub Removes the last empty paragraph in merge start cell. The integer specifies index of the column. The integer specifies start index of the row. The integer specifies end index of the row. Removes the last empty paragraph in merge continue/end cell. The integer specifies index of the column. The integer specifies continue index of the row. The integer specifies end index of the row. Checks whether the following cells have renderable items. The integer specifies index of the column. The integer specifies start index of the row. The integer specifies end index of the row. True if following cells have renderable items; Otherwise false. Checks whether any renderable items present in the paragraph. The paragraph. Applies horizontal merge for table cells specified by the row index, start cell index and end cell index. The integer specifies index of the row. The integer specifies start index of the cell. The integer specifies end index of the cell. The following example illustrates how to apply horizontal merge for the table cells. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Vertical merging of Table cells"); IWTable table = section.AddTable(); table.ResetCells(5, 5); //Specify the horizontal merge from second cell to fifth cell in third row table.ApplyHorizontalMerge(2, 1, 4); document.Save("HorizontalMerge.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Vertical merging of Table cells") Dim table As IWTable = section.AddTable() table.ResetCells(5, 5) 'Specify the horizontal merge from second cell to fifth cell in third row table.ApplyHorizontalMerge(2, 1, 4) document.Save("HorizontalMerge.docx", FormatType.Docx) document.Close() End Sub Updates the textbody items in the merge start cell. The cell collection. The integer specifies start index of the cell. The integer specifies end index of the cell. Updates the textbody items in the merge continue cells. The cell collection. The integer specifies start index of the cell. The integer specifies end index of the cell. Updates and removes the last paragraph only if bookmark is present inside the last paragraph of the cell. The cell collection. The integer specifies the current cell index. The integer specifies the previous cell index. Updates and removes the last paragraph only if paragraph items other than bookmark present inside the cell. Checks whether the last paragraph contains bookmark and other items. The textbody item collection. The paragraph is empty. The paragraph item is not consider. Removes the absolute position data, if the table has absolute position in the document. Resizes the table based on the specified . The member that specifies the type of auto fit layout of table. DocIO can resize the table based on the content of the table cells or the width of the document window. You can also use this method to turn off AutoFit so that the table size is fixed, regardless of cell contents or window width. Setting the AutoFit behavior to FitToContent or FitToWindow sets the property to True if it's currently False. Likewise, setting the AutoFit behavior to FixedColumnWidth sets the property to False if it's currently True. The following example illustrates how to append html text to the paragraph. //Loads the template document WordDocument document = new WordDocument("Sample.docx"); //Accesses the instance of the first section in the Word document WSection section = document.Sections[0]; //Accesses the instance of the first table in the section WTable table = section.Tables[0] as WTable; //Auto fits the table with respect to window. table.AutoFit(AutoFitType.FitToWindow); //Saves and closes the document instance document.Save("TableAutoFit.docx"); document.Close(); Private Sub SurroundingSub() Dim document As WordDocument = New WordDocument("Sample.docx") Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) table.AutoFit(AutoFitType.FitToWindow) document.Save("TableAutoFit.docx") document.Close() End Sub Gets the minimum and maximum word width of the table. Checks whether the outertable cell width need to recalculate or not Checks whether need to skip resizing the nested table in cell Represents the width of nested table Check whether both table have different padding value. Previous sibiling of current table. Current table those need to merge on previous table. Padding key. Check whether both tables have same padding value Previous sibiling of current table. Current table those need to merge on previous table. Check whther is same padding as table for current cell. Current cell of row. Set the padding value for cells. Merge the two individual tables as single table. Sets borders for merged table rows The current table The previous table The current appended row Get the border for the corresponding string value String value that represents the border The borders Border for the corresponding string value from borders Checks whether the table has border True if table border has border else false Resizes the table based on the specified . Check whether table present inside the cell or not. Get the owner table cell for the table Gets the table text. Gets the style applied for the table. The of the current table. Applies the specified style. Style name Specified style must exist in Document.Styles collection Removes the shading information from all the cells in the table Applies the specified style. Applies the base style formats. Checks whether the table style or its base style contains the respective ConditionalFormattingType ConditionalFormattingType True, if the table style or its base style contains the respective ConditionalFormattingType else false Gets the combination of table style and its base style row conditional formatting. Current table style Row index The combination of table style and its base style row conditional formatting Get the row conditional formatting style for current row index Current table index Row index Gets the combination of table style and its base style cell conditional formatting. Current table style Conditional formatting type Row index Cell index Get the cell conditional formatting style for current row and cell index Current table style Conditional formatting type Row index Cell index Copy the souce key and paste in destination, if destination doesn't contains the same key Destination keys Source keys Copy the base paragraph format and character format Get the current cell format from its table style Updates the row borders. The dest. The src. The table borders. The index. The count. Whether the left and right width applicable Updates the column borders. The dest. The src. The table borders. The index. The count. Returns all entries of given regex. The pattern. Adds the self. Creates a duplicate copy of the table. The object that can be casted as . Clones the relations. Clones the style. The doc. Checks the table grid, after parsing Docx format documents. Determines whether the width and preferred width of a cell is zero. True if cell width and preferred width is zero; Otherwise false. Updates the cell width by equally partitioning the available width among all the cells in a row. The available width for table. Checks whether need to partition the width equally to all cells or not Updates the preferred cell width to undefined table cells. Updates the table grid. Checks whether the table grid should update based on maximum cell preferred width in percentage. The sum of maximum cell preferred width. The maximum cell preferred width list. True if the the table grid update based on maximum cell preferred width in percentage else False. Checks whether the table grid for autofit table should update based on maximum cell preferred width. The sum of maximum cell preferred width. The maximum cell preferred width list. True if the table grid should be updated based on the maximum cell preferred width; otherwise, False. Checks if the maximum preferred width of cells needs to be updated for columns. The list of maximum cell preferred width. True if the maximum preferred widths are updated, otherwise false. Update the table grid based on calculated maximum cell preferred width in percentage. The table width. The sum of maximum cell preferred width. The list of maximum cell preferred width. Update the maximum cell preferred width based on table width in percentage. The table width. The sum of maximum cell preferred width. The list of maximum cell preferred width. The updated list of maximum preferred widths of cells. Update the cell width and table grid based on calculated maximum cell preferred width. The list of maximum cell preferred width. Checks whether the table grid should update based on maximum cell preferred width. The table width. The sum of maximum cell preferred width. The maximum cell preferred width list. True if the the table grid update based on maximum cell preferred width else False. Update the maximum cell preferred width based on table width. The table width. The sum of maximum cell preferred width. The maximum cell preferred width list. Gets the maximum cell preferred width of each columns. The column index. The column span. The maximum cell preferred width list. Update the maximum cell preferred width based on spanned cells. The maximum cell preferred width list. Update the table grid based on calculated maximum cell preferred width. The table width. The sum of maximum cell preferred width. The maximum cell preferred width list. Checks whether the grid corrupted table should update based on cell preferred width. Checks whether any row in table has GridBeforeWidth or GridAfterWidth. True, any row in table has GridBeforeWidth or GridAfterWidth else false Updated the corrupted grid table based on cell preferred width. Checks wheather all the cells have the defined cell width. Check whether the neighbour tables need to merge True, if the table has only one neighbour table and both the table's have same style; else, false Create grid columns. Updates cell width of a table in DOC format document Check whether allrows in a table contains same row width Row width of first row True if all rows contain same row width. Else false Checks whether the table is need to autofit to content or not. True, If the preferred width of the column is not defined. Else returns false Checks whether we need to skip the grid value or not based on cell preferred width and maximumWordWidth. True, If the cell preferred width greater than maximum word width and no cell merge is there. Else returns false Checks whether the table contains misalligned cells. True, if the verical merge is need to consider; else false True, If the table have merge columns either vertically or horizontally or having cellspan. Else returns false Checks whether the auto table is need to skip the table grid. True, If condition satisfies . Else returns false Resize the columns width of each cell. Updates the grid span value of the each cells. Updates the grid span value of the each cells. Checks whether the table preferred width type auto or not. Gets the row span value. Get cell width Gets the minimum preferred width of the table. The cell. Set the column to each cells. Gets the maximum nested table width from last column Maximum nested table width from last column Sets the width to nested table cells Sets the cell width as column preferred width Update the table row before and after width Check whether the column has enough width True If the column preferred width doesn't enough to store MaximumWordWidth else False Checks whether column has enough width to store Maximum word width word in a column Table columns Table Width True if columns doesn't have enough width to store max word width. Otherwise False Checks whether the cell width need to assign base on content Sets the cell width of the table using Content Checks whether all cell in a table preferred width is 0 and the width type is auto True if all cell in a table preferred width is 0 and the width type is auto Otherwise False Gets the maximum cell count by comparing all rows in table Update the preferred width properites based on autofit type. Clears the Preferred width properties. Check whether all the cells in any of the row has defined cell width current table True, if all the cells in any of the rows have defined cell width; else false Gets the width of the max row. Width of the client. Updates the width of the cell. The row. Width of the client. Width of the table. Width of the max row. Checks whether need to do width calculation or not Recalculates the cell width of the row containing vMerge Vertical merge start cell Current cell Current row Table width List of cell width that is recalculated for a vertical merge row Checks whether the first cell in all row upto cell count has same preferred width True if first cell in all row upto cell count has same preferred width else false Returns the maximum sum of all cell preferred width conatins row index The Tablewidth Returns the maximum sum of all cell preferred width conatins row index Calculate cell width based on preferred cell width for fixed layout table Cell to calculate width Total row width Default preferred cell width, if cell width not mentioned in file level Total width to shrink the row Total width to expand the row Checks whether auto layout table have preferred width which exceeds the client width of page Checks whether need to do width calculation or not Gets the grid before after. The row. Width of the client. if set to true [is after width]. Width of the table. The curr offset. Maximum width of the row. if set to true [is table grid miss match]. Gets the grid before after. The width info. Width of the table. Gets the width of the cell. The cell. Width of the client. Width of the table. The curr offset. Width of the max row. if set to true [is table grid miss match]. True if the table has any one row having all cells have defined cell widths; else false Get the maximum cell preferred width from each columns Current table Total cell preferred width Maximum cell count A list of maximum preferred cell width for each columns Gets the width of the table owner. Gets the width of the table client. Width of the client. Calcualte the left and right padding considerd for table width Updates the table grid. The current offset. Gets the next TextBodyItem in the document. Updates the table format. The prop key. Closes the items in the table Updates the width. Get the section in which table is present Get the HeaderFooter that contains the current table. The HeaderFooter containing the table, or null if the table is not within a HeaderFooter. Get owner table of item Remove the unwanted continue horizontal merge cells Get the maximum cell count by comparing all rows Maximum cell count by comparing all rows and the row should not contains spanned cells Accepts or rejects changes tracked from the moment of last change acceptance. if it accepts the changes, set to true. Removes the character format changes. Removes the table format changes. Accepts the changes for character format. Accept changes in table format. Defines whether table format is changed. Checks a value indicating whether this item was deleted from the document, when "Track Changes" is or was set to "true". Checks a value indicating whether this item was inserted to the document, when "Track Changes" is or was set to "true". Defines whether table format was changed. Determines whether item has tracked changes. if has tracked changes, set to true. Remove added/deleted table rows, while number of rows > 1. Value indicating whether to completely remove table Sets the delete revision for table. if it specifies the revision to delete, set to true. Sets the insert revision for table. if it specifies the revision for insertion, set to true. Sets the changed Character format for table. if it specifies format to be change, set to true. Sets the changed Paragraph format for table. if it specifies the format to be changed, set to true. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Creates layout information. Determine whether the current row is need to be hidden Determine whether the paragraph is Hidden Determine whether the table is hidden Initializing LayoutInfo value to null Compare the revised document table with original document table The original document instance Compare the revised text body table with original text body table The original text body instance Compare one table format with another and return true if Equal else false. Get the matched table and indexes. The original document table The matched table Return, the longest matched table from orgDocTables Get the longest matched row index Get all matched row index Apply the formatting change for matched table by comparing current table Original document matched table Compare the cell format for matched cells Compare the row formats for the matched row Gets the complete text of table for word comparison Gets the type of the entity. Read-only. The of the current item. Gets the rows collection that represent all the rows in the table. Read-only. The collection of rows in the table. Gets the table format. Read-only. The object that specifies the table format. Gets the preferred width of the table. The width of the preferred table. Gets the name of the table style. Read-only. The string that specifies the style name. Gets the last cell in last row. Read-only. The object that represents the last cell. The following example illustrates how to get the last cell of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get the last cell WTableCell cell = table.LastCell; //Apply text direction to the last cell cell.CellFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.Vertical; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get the last cell Dim cell As WTableCell = table.LastCell 'Apply text direction to the last cell cell.CellFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.Vertical 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the first row in table. Read-only. The object that represents the first row in the table. The following example illustrates how to get the first row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get the last cell WTableRow row = table.FirstRow; //Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get the last cell Dim row As WTableRow = table.FirstRow 'Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the last row in table. Read-only. The object that represents the last row in the table. The following example illustrates how to get the last row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Get the last cell WTableRow row = table.LastRow; //Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Get the last cell Dim row As WTableRow = table.LastRow 'Apply text direction to the last cell row.RowFormat.BackColor = Color.LightGray 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the table cell at the specified row and column index. Read-only. The integer that specifies the row index. The integer that specifies the column index. The object at the specified index. The index is not valid in the table. The following example illustrates how to get the cell in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Add new table. IWTable table = section.AddTable(); table.ResetCells(2, 2); //Add content to table cell table[0, 0].AddParagraph().AppendText("First row, First cell"); table[0, 1].AddParagraph().AppendText("First row, Second cell"); table[1, 0].AddParagraph().AppendText("Second row, First cell"); table[1, 1].AddParagraph().AppendText("Second row, Second cell"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Horizontal merging of Table cells") 'Add new table. Dim table As IWTable = section.AddTable() table.ResetCells(2, 2) 'Add content to table cell table(0, 0).AddParagraph().AppendText("First row, First cell") table(0, 1).AddParagraph().AppendText("First row, Second cell") table(1, 0).AddParagraph().AppendText("Second row, First cell") table(1, 1).AddParagraph().AppendText("Second row, Second cell") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the width of the table(in points). The float that specifies the width of the table. Gets the child elements of the table. The collection of child elements. Gets the table grid. Gets or sets the indent from left for the table. The float value that indicates the indent from left. The following example illustrates how to set the left indent for the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Add a new table into Word document IWTable table = section.AddTable(); //Set number of rows and columns table.ResetCells(2, 2); //Set left indent for table. table.IndentFromLeft = 10; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Set number of rows and columns table.ResetCells(2, 2) 'Set left indent for table. table.IndentFromLeft = 10 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the docx table format. The docx table format. Gets the old row format. The old row format. Gets the track table grid. The track table grid. Gets or sets a value indicating whether to apply heading-row formatting to the first row of the table. The default value is true. True if need to apply style for first row; otherwise, false. The following example illustrates how to apply style for header row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Disable special formatting for header row of the table table.ApplyStyleForHeaderRow = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Disable special formatting for header row of the table table.ApplyStyleForHeaderRow = False 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply last-row formatting to the last row of the specified table. True if need to apply style for last row; otherwise, false. The following example illustrates how to apply style for last row of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Enable special formatting for last row of the table table.ApplyStyleForLastRow = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for last row of the table table.ApplyStyleForLastRow = True 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table. The default value is true. True if need to apply style for first column; otherwise, false. The following example illustrates how to apply style for first column of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Disable special formatting for first column of the table table.ApplyStyleForFirstColumn = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Disable special formatting for first column of the table table.ApplyStyleForFirstColumn = False 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply last-column formatting to the last column of the specified table.. True if need to apply style for last column; otherwise, false. The following example illustrates how to apply style for last column of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Enable special formatting for last column of the table table.ApplyStyleForLastColumn = true; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for last column of the table table.ApplyStyleForLastColumn = True 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply style bands to the rows in a table, if an applied preset table style provides style banding for rows. The default value is True. True if need to apply style for banded rows; otherwise, false. The following example illustrates how to apply style for banded rows of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Disable special formatting for banded rows of the table table.ApplyStyleForBandedRows = false; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for banded rows of the table table.ApplyStyleForBandedRows = False 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether to apply style bands to the columns in a table, if an applied preset table style provides style banding for columns. True if need to apply style for banded columns; otherwise, false. The following example illustrates how to apply style for banded columns of the table. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading); //Enable special formatting for banded columns of the table table.ApplyStyleForBandedColumns = true; //Save and close the document document.Save("TableStyle.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Applies "LightShading" built-in style to table table.ApplyStyle(BuiltinTableStyle.LightShading) 'Enable special formatting for banded columns of the table table.ApplyStyleForBandedColumns = True 'Save and close the document document.Save("TableStyle.docx", FormatType.Docx) document.Close() End Sub Gets or sets the table title. The string that specifies the title of the table. Gets or sets the table description. The string that specifies the description of the table. Gets a value indicating whether this instance is frame. true if this instance is frame; otherwise, false. Gets a value indicating whether this instance is complete frame. true if this instance is frame; otherwise, false. Gets or sets the a value indicating whether the table grid is updated when the width is not as expected. Gets or sets a value indicating whether the cell width is defined when the table width type is None. Gets or sets a value indicating whether to update cell width by equally partitioning the available width among all the cells in a row. Gets or sets a value indicating whether the cell width is defined when the table width type is None. Gets a value indicating whether the current table is in cell. Read-only. True if this paragraph is in cell; otherwise, false. Gets or sets a value whether all cells in the table have fixed width in points. This property is supported for DOCX format alone. Gets or sets a value whether all cells child entity is only paragraph. This property is supported for DOCX format alone. Gets or set whether the table cell width need to recalculate or not, based on last column Gets or sets a value indicating whether all cells only have horizontal text. true if all cells only have horizontal text; otherwise, false. This property is supported for DOCX format alone. Denotes any one of the cells have percentage type of preferred cell width. Denotes any one of the cells have auto type of preferred cell width. Denotes any one of the cells have none type of preferred cell width. Denotes any one of the cells have Point type of preferred cell width. Gets or Sets whether need to recalculate the nested and outer table Gets the recalculate nested table Gets or Sets whether need to recalculate the nested and outer table Gets or sets whether the table is appended from HTML Gets or setd whether the table have same cell count for all rows in the table Represents a table cell. Initializes a new instance of the class with the specified instance. The instance. Creates a duplicate copy of the entity. The reference to the newly created cell. Returns the index of the cell in the table row. The zero-based index of the cell. The following example illustrates how set get the index of the cell. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Find the text in the table TextSelection selection = table.Find(new Regex("Cell")); WTextRange text = selection.GetAsOneRange(); //Get the owner paragraph WParagraph paragraph = text.OwnerParagraph; //Get the owner cell WTableCell cell = paragraph.OwnerTextBody as WTableCell; //Get the index of the cell int index = cell.GetCellIndex(); //Apply text direction to the next cell cell = cell.OwnerRow.Cells[index + 1]; cell.CellFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.Vertical; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Find the text in the table Dim selection As TextSelection = table.Find(New Regex("Cell")) Dim text As WTextRange = selection.GetAsOneRange() 'Get the owner paragraph Dim paragraph As WParagraph = text.OwnerParagraph 'Get the owner cell Dim cell As WTableCell = TryCast(paragraph.OwnerTextBody, WTableCell) 'Get the index of the cell Dim index As Integer = cell.GetCellIndex() 'Apply text direction to the next cell cell = cell.OwnerRow.Cells(index + 1) cell.CellFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.Vertical 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Creates a duplicate copy of the entity. An that can be casted as table cell. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Determines whether the width and preferred width of a cell is zero. True if cell width and preferred width is zero; Otherwise false. Updates the width of the table preferred. Width of the prev. The new value. Applies the table style base formats. The cell format. The para format. The char format. Applies the table style base formats for inline content control. Checks whether table style has paragraph formatting. Checks whether paragraph format defined or not. Paragraph style format. Decides whether style hierarchy rule should override or not. Current paragraph. Checks whether font size defined in any of paragraph styles. Current paragraph style Checks whether the Normal Style font size is defined as per specification. Normal Style character format. Sets the document default font size to current formatting. Current inline formatting. Sets font size from table style as per overrideTableStyleFontSizeAndJustification behavior The owner paragraph of current item in cell The character format of paragraph item Character format from table style Boolean denotes overrideTableStyleFontSizeAndJustification tag A boolean which represents whether character format of an item has font size key or not A boolean which represents whether character format of an item has font bidi size key or not Sets font size from table style as per overrideTableStyleFontSizeAndJustification behavior The owner paragraph of current item in cell The character format of paragraph item Character format from table style Boolean denotes overrideTableStyleFontSizeAndJustification tag Character Format key denotes FontSizekey or FontSizeBidiKey A boolean which represents whether character format of an item has font size key or not Checks font size not defined in inline, Character style, paragraph style, Linked Character style, Linked Para Style, basedOn Para Style and basedOn Char Style The character format of paragraph item The owner paragraph of current item in cell Character Format key denotes FontSizekey or FontSizeBidiKey A boolean which represents whether character format of an item has font size key or not Checks whether FontSize key exists in default formatting and doesn't exists in current inline formatting. Current inline formatting. Font size key Clones the cell. Gets the next TextBodyItem in the document Gets the V merge cell. The cellindex. The rowindex. The curr row. Closes this instance. Gets the width of the cell. Gets the width. Gets the cell start position. Gets the cell end position. Index of the row. Index of the cell. Gets the index of the horizontal merge end cell. Gets the previous cell by excluding the horizontal merge continue cells. Returns Left Padding Returns Right Padding Returns Top Padding Returns Bottom Padding Gets the size info of of cell. Boolean to decide whether the ParagraphWidth calculation should do or not Gets the minimum and maximum word width. Gets the minimum and maximum word width. Gets the minimun preferred width. Check the cell width type and enable the property according to the preferred width type Gets the complete text of table cell for word comparison Create layout information. Creates the table cell layoutinfo. Returns the cell layout info. This method is used for RTF writer. Reset the cell layoutinfo. This method is used for RTF writer. Find the owner row of the vertical merged end cell owner cell of the paragraph if merged end cell is true;return Owner row of the merged end cell,otherwise return owner row of the table cell Checks the foot note in text body. The text body. Checks the foot note in paragraph. The paragraph. Initializing LayoutInfo value to null Add previous paragraph to current cell for paragraph property not lies between paragraph tag. Gets the number of grid columns spanned by the current cell. Read-only. The short specifies the number of grid columns in the parent table's table grid which shall be spanned by the current cell GridSpan allows cells to have the appearance of being merged, as they span vertical boundaries of other cells in the table. Gets/Sets the cell grid start index Cell grid start index Gets/Sets the cell content control in this cell. The following code illustrates how to set a cell content control to the table. WordDocument document = new WordDocument(); //Adds new section to the document. IWSection section = document.AddSection(); //Adds new table to the section. IWTable table = section.AddTable(); //Adds new row to the table. WTableRow tableRow = table.AddRow(); //Adds new cell to the row. WTableCell tableCell = tableRow.AddCell(); tableCell.Width = 100; //Adds new paragraph to the cell. IWParagraph paragraph = tableCell.AddParagraph(); //Adds new text to the paragraph. paragraph.AppendText("Content Control"); //Create the Cell Content Control for the document. CellContentControl control = new CellContentControl(document); //Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Green; //Set it to the row content control. tableCell.ContentControl = control; //Save the Word document. document.Save("Sample.docx", FormatType.Docx); //Close the document. document.Close(); Dim document As New WordDocument() 'Adds new section to the document. Dim section As IWSection = document.AddSection() 'Adds new table to the section. Dim table As IWTable = section.AddTable() 'Adds new row to the table. Dim tableRow As WTableRow = table.AddRow() 'Adds new cell to the row. Dim tableCell As WTableCell = tableRow.AddCell() tableCell.Width = 100 'Adds new paragraph to the cell. Dim paragraph As IWParagraph = tableCell.AddParagraph() 'Adds new text to the paragraph. paragraph.AppendText("Content Control") 'Create the Cell Content Control for the document. Dim control As New CellContentControl(document) 'Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Green ' Set it to the row content control. tableCell.ContentControl = control 'Save the Word document. document.Save("Sample.docx", FormatType.Docx) 'Close the document. document.Close() Gets the type of the entity. The of the current item. Gets the owner row of the cell. Read-only. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Find the text in the table TextSelection selection = table.Find(new Regex("Cell")); WTextRange text = selection.GetAsOneRange(); //Get the owner paragraph WParagraph paragraph = text.OwnerParagraph; //Get the owner cell WTableCell cell = paragraph.OwnerTextBody as WTableCell; //Get the index of the cell int index = cell.GetCellIndex(); //Apply text direction to the next cell WTableRow row = cell.OwnerRow; row.RowFormat.BackColor = Color.LightGray; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Find the text in the table Dim selection As TextSelection = table.Find(New Regex("Cell")) Dim text As WTextRange = selection.GetAsOneRange() 'Get the owner paragraph Dim paragraph As WParagraph = text.OwnerParagraph 'Get the owner cell Dim cell As WTableCell = TryCast(paragraph.OwnerTextBody, WTableCell) 'Get the index of the cell Dim index As Integer = cell.GetCellIndex() 'Apply text direction to the next cell Dim row As WTableRow = cell.OwnerRow row.RowFormat.BackColor = Color.LightGray 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the cell format. Read-only. Gets or sets the width(in points) of the cell. The float that specifies the cell width. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; foreach (WTableRow row in table.Rows) { foreach (WTableCell cell in row.Cells) { cell.Width = 100; } } //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) For Each row As WTableRow In table.Rows For Each cell As WTableCell In row.Cells cell.Width = 100 Next Next 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the color of the fore. The color of the fore. Gets or sets the texture style. The texture style. Gets if size of cell is fixed. Gets the old cell format. The old cell format. Gets the preferred width of the cell. The preferred cell width. Gets the cell start position. The cell start position. Gets the cell end position. The cell end position. Gets the size infor of the cell. Gets the body items of the cell. Represents a table row. Initializes a new instance of the class with the specified instance. The instance. Creates a duplicate copy of the entity. The reference to the newly created row. Adds a new cell to the row. The reference to the newly added cell. The following example illustrates how to add a cell to the row. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row into table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); cell.Width = 100; cell.AddParagraph().AppendText("Orange"); //Add the second cell into first row cell = row.AddCell(); cell.Width = 100; cell.AddParagraph().AppendText("$30"); //Add the second row into table row = table.AddRow(true, false); //Add the first cell into second row cell = row.AddCell(); cell.Width = 100; cell.AddParagraph().AppendText("Apple"); //Add the second cell into second row cell = row.AddCell(); cell.Width = 100; cell.AddParagraph().AppendText("$50"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row into table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() cell.Width = 100 cell.AddParagraph().AppendText("Orange") 'Add the second cell into first row cell = row.AddCell() cell.Width = 100 cell.AddParagraph().AppendText("$30") 'Add the second row into table row = table.AddRow(True, False) 'Add the first cell into second row cell = row.AddCell() cell.Width = 100 cell.AddParagraph().AppendText("Apple") 'Add the second cell into second row cell = row.AddCell() cell.Width = 100 cell.AddParagraph().AppendText("$50") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Adds a new cell to the row. True if to have format of the previous row; otherwise, false. The reference to the newly added cell. The following example illustrates how to add a cell to the row by specifying the copy format option. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); section.AddParagraph().AppendText("Price Details"); section.AddParagraph(); //Add a new table into Word document IWTable table = section.AddTable(); //Add the first row into table WTableRow row = table.AddRow(); //Add the first cell into first row WTableCell cell = row.AddCell(); cell.Width = 100; cell.AddParagraph().AppendText("Orange"); //Add the second cell into first row cell = row.AddCell(); cell.Width = 100; cell.AddParagraph().AppendText("$30"); //Add the second row into table row = table.AddRow(true, false); //Add the first cell into second row cell = row.AddCell(); cell.Width = 50; cell.AddParagraph().AppendText("Apple"); //Add the second cell into second row cell = row.AddCell(true); cell.AddParagraph().AppendText("$50"); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() section.AddParagraph().AppendText("Price Details") section.AddParagraph() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Add the first row into table Dim row As WTableRow = table.AddRow() 'Add the first cell into first row Dim cell As WTableCell = row.AddCell() cell.Width = 100 cell.AddParagraph().AppendText("Orange") 'Add the second cell into first row cell = row.AddCell() cell.Width = 100 cell.AddParagraph().AppendText("$30") 'Add the second row into table row = table.AddRow(True, False) 'Add the first cell into second row cell = row.AddCell() cell.Width = 50 cell.AddParagraph().AppendText("Apple") 'Add the second cell into second row cell = row.AddCell(True) cell.AddParagraph().AppendText("$50") 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub The number of cells must be between 1 and 63. Returns the index of the row in the table. The zero-based index of the row. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load a template document WordDocument document = new WordDocument("Template.docx"); //Get the table WTable table = document.Sections[0].Tables[0] as WTable; //Find the text in the table TextSelection selection = table.Find(new Regex("Cell")); WTextRange text = selection.GetAsOneRange(); //Get the owner paragraph WParagraph paragraph = text.OwnerParagraph; //Get the owner cell WTableCell cell = paragraph.OwnerTextBody as WTableCell; //Get the row index. int index = cell.OwnerRow.GetRowIndex(); //Set height for next row table.Rows[index + 1].Height = 20; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load a template document Dim document As New WordDocument("Template.docx") 'Get the table Dim table As WTable = TryCast(document.Sections(0).Tables(0), WTable) 'Find the text in the table Dim selection As TextSelection = table.Find(New Regex("Cell")) Dim text As WTextRange = selection.GetAsOneRange() 'Get the owner paragraph Dim paragraph As WParagraph = text.OwnerParagraph 'Get the owner cell Dim cell As WTableCell = TryCast(paragraph.OwnerTextBody, WTableCell) 'Get the row index. Dim index As Integer = cell.OwnerRow.GetRowIndex() 'Set height for next row table.Rows(index + 1).Height = 20 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Determines whether the width and preferred width of a cell is zero. True if cell width and preferred width is zero; Otherwise false. Updates the cell width by equally partitioning available width among all the cells in a row. The available width for table. Updates the preferred cell width to undefined table cells. Adds the self. Creates a duplicate copy of the entity. An that can be casted as . Clones the relations for TableRow. Checks the format owner. Called when cells are inserted. The index. The cell format. Called when cells are removed. The index. Gets the width to resize cells. The row. Width of the client. Gets the grid before after. The width info. Width of the client. Gets the width of the row. Gets the preferred width of the cells in the row. Gets the preferred width of the row. Width of the table. Check whether all cell in the row has only point or percent as preferred width type True if all cell in the row has only point or percent as preferred width type else False Gets the preferred width of the row. Width of the table. Updates track changes revision of table row while adding the entity. Closes this instance. Gets the complete text of table row for word comparison To get the matched rows from the given table collection Registers child objects in XDSL holder. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Creates layout information. Determines whether need to skip ParaMark from cell height calculation The paragraph. Get First Paragraph of the Row Initializing LayoutInfo value to null Gets the child elements of the row. Read-only The collection of child elements. Gets the type of the entity. The of the current item. Gets or sets the collection of cells in the row. The that represents the cells in the row. Gets or sets the type of the table row height. The member that specifies the type of row height. Gets the row format. Read-only. Gets or sets height of the row(in points). The float that specifies the row height. The following example illustrates how to set the height of the row in the table. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); IWSection section = document.AddSection(); //Add a new table into Word document IWTable table = section.AddTable(); //Set number of rows and columns table.ResetCells(2, 2); //Set row height and type. table.Rows[1].Height = 20; table.Rows[1].HeightType = TableRowHeightType.AtLeast; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() Dim section As IWSection = document.AddSection() 'Add a new table into Word document Dim table As IWTable = section.AddTable() 'Set number of rows and columns table.ResetCells(2, 2) 'Set row height and type. table.Rows(1).Height = 20 table.Rows(1).HeightType = TableRowHeightType.AtLeast 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets a value indicating whether the row is a table header. True if the row is header row; otherwise, false. Gets the owner table. The owner table. Gets or sets the data array. The data array. Gets the character format. The character format. Gets the old row format. The old row format. Gets or sets a value indicating whether this instance is delete revision. if this instance is delete revision, set to true. Gets or sets a value indicating whether this instance is insert revision. if this instance is insert revision, set to true. Gets or sets a value indicating whether this instance has TblPrEx. Gets/Sets the row content control in this row. The following code illustrates how to set a Row content control to table. WordDocument document = new WordDocument(); //Adds new section to the document. IWSection section = document.AddSection(); //Adds new table to the section. IWTable table = section.AddTable(); //Adds new row to the table. WTableRow tableRow = table.AddRow(); //Adds new cell to the row. WTableCell tableCell = tableRow.AddCell(); tableCell.Width = 100; //Adds new paragraph to the cell. IWParagraph paragraph = tableCell.AddParagraph(); //Adds new text to the paragraph. paragraph.AppendText("Content Control"); //Create the Row Content Control for the document. RowContentControl control = new RowContentControl(document); //Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Blue; // Sets it to the row content control. tableRow.ContentControl = control; //Save the Word document. document.Save("Sample.docx", FormatType.Docx); //Close the document. document.Close(); Dim document As New WordDocument() 'Adds new section to the document. Dim section As IWSection = document.AddSection() 'Adds new table to the section. Dim table As IWTable = section.AddTable() 'Adds new row to the table. Dim tableRow As WTableRow = table.AddRow() 'Adds new cell to the row. Dim tableCell As WTableCell = tableRow.AddCell() tableCell.Width = 100 'Adds new paragraph to the cell. Dim paragraph As IWParagraph = tableCell.AddParagraph() 'Adds new text to the paragraph. paragraph.AppendText("Content Control") 'Create the Row Content Control for the document. Dim control As New RowContentControl(document) 'Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Blue ' Sets it to the row content control. tableRow.ContentControl = control 'Save the Word document. document.Save("Sample.docx", FormatType.Docx) 'Close the document. document.Close() Get's whether the first paragraph of the row is having KeepWithNext property set Represents the document saving options. The following code snippet shows how to customize Word to HTML conversion using . private void Button1_Click(System.Object sender, System.EventArgs e) { //Loads an existing document WordDocument document = new WordDocument("Template.docx"); HTMLExport export = new HTMLExport(); //The images in the input document will be copied to this folder document.SaveOptions.HtmlExportImagesFolder = @"D:\Data\"; //The headers and footers in the input will be exported document.SaveOptions.HtmlExportHeadersFooters = true; //Export the text form fields as editable document.SaveOptions.HtmlExportTextInputFormFieldAsText = false; //Set the style sheet type document.SaveOptions.HtmlExportCssStyleSheetType = CssStyleSheetType.External; //Set name for style sheet document.SaveOptions.HtmlExportCssStyleSheetFileName = "UserDefinedFileName.css"; //Save the document as html file export.SaveAsXhtml(document, "WordtoHtml.html"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Loads an existing document Dim document As New WordDocument("Template.docx") Dim export As New HTMLExport() 'The images in the input document will be copied to this folder document.SaveOptions.HtmlExportImagesFolder = "D:\Data\" 'The headers and footers in the input will be exported document.SaveOptions.HtmlExportHeadersFooters = True 'Export the text form fields as editable document.SaveOptions.HtmlExportTextInputFormFieldAsText = False 'Set the style sheet type document.SaveOptions.HtmlExportCssStyleSheetType = CssStyleSheetType.External 'Set name for style sheet document.SaveOptions.HtmlExportCssStyleSheetFileName = "UserDefinedFileName.css" 'Save the document as html file export.SaveAsXhtml(document, "WordtoHtml.html") document.Close() End Sub The following code snippet shows how to customize Word to EPub file conversion using . private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Export the fonts used in the document document.SaveOptions.EPubExportFont = true; //Export header and footer document.SaveOptions.HtmlExportHeadersFooters = true; //Save the document as EPub file document.Save("WordToEPub.epub", FormatType.EPub); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Export the fonts used in the document document.SaveOptions.EPubExportFont = True 'Export header and footer document.SaveOptions.HtmlExportHeadersFooters = True 'Save the document as EPub file document.Save("WordToEPub.epub", FormatType.EPub) 'Close the document document.Close() End Sub The following code snippet shows how to preserve compatibility mode as in the input Word document using . private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing document WordDocument document = new WordDocument("Template.doc", FormatType.Doc); //Preserve compatibility mode as in the input Word document document.SaveOptions.MaintainCompatibilityMode = true; //Save the document as Docx file document.Save("Result.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing document Dim document As New WordDocument("Template.doc", FormatType.Doc) 'Export the fonts used in the document document.SaveOptions.EPubExportFont = True 'Preserve compatibility mode as in the input Word document document.SaveOptions.MaintainCompatibilityMode = True 'Save the document as Docx file document.Save("Result.docx", FormatType.Docx) 'Close the document document.Close() End Sub Execute Image node visited event Closes this instance. Ensures the images folder. Processes the image using . The img path. The image bytes. Gets the name of the image file. Gets image format Gets of sets the font file references Gets or sets the physical folder to save the images when exporting a Word document to Markdown format. By default, it is empty. The string that specifies the physical folder to save the image. This property is only applicable while exporting the Word document as Markdown file. This property is not applicable for .NET MAUI, Xamarin and UWP. Given physical folder not accessible to export the images. Enable permission if access is denied. Open the document WordDocument document = new WordDocument("Sample.docx"); Set the folder location to export the images document.SaveOptions.MarkdownExportImagesFolder = @"D:/WordToMarkdownConversion/"; Save as Markdown document document.Save("Result.md", FormatType.Markdown); Close the document document.Close(); //'Opens the document. Dim document As WordDocument = New WordDocument("Sample.docx"); Set the folder location to export the images document.SaveOptions.MarkdownExportImagesFolder = @"D:/WordToMarkdownConversion/"; Save as Markdown document document.Save("Result.md", FormatType.Markdown); Close the document document.Close(); Gets or sets a value indicating whether the font should be embedded in EPub. True if the font should be embedded in EPub; otherwise, false. This property is not supported in UWP, MVC6 and Xamarin application. Gets or sets number of heading levels for EPub format Gets or sets the type of the HTML export CSS style sheet. The member that specifies the type of the HTML export CSS style sheet. This property is only applicable while exporting the Word document as HTML file. Gets or sets the name of the HTML export CSS style sheet file. The string that specifies the HTML export CSS style sheet file name. This property is not supported in MVC6 and Xamarin application. This property is only applicable while exporting the Word document as HTML file. Gets or sets the HTML export images folder for extracing the images in the document. The string that specifies the name of the images folder. This property will be considered in HTML exporting if HTMLExportImageAsBase64 property is false.This property is not supported in MVC6 and Xamarin application. This property is only applicable while exporting the Word document as HTML file. Gets or sets a value indicating whether to include headers and footers while exporting HTML file. True if to include headers and footers; otherwise false. The header and footer contents in the first page of the document will be exported as first and last content of the exported HTML file. Gets or sets a value indicating whether to reduce the resultant RTF file size by removing the tags with default values. True The resultant rtf file size is reduced false. The default value is false The following code snippet shows how to enable the OptimisedRtfFileSize property. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing document WordDocument document = new WordDocument("Template.rtf", FormatType.Rtf); //Sets the OptmizedRtfFileSize property as true document.SaveOptions.OptimizeRtfFileSize = true; //Save the document as Docx file document.Save("Result.rtf", FormatType.Rtf); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing document Dim document As New WordDocument("Template.rtf", FormatType.Rtf) 'Sets the OptmizedRtfFileSize property as true document.SaveOptions.OptimizeRtfFileSize = True 'Save the document as Docx file document.Save("Result.rtf", FormatType.Rtf) 'Close the document document.Close() End Sub Gets or sets value indicating whether the paragraph contextual spacing should be consider in HTML export. This property is not supported in UNIVERSAL,UWP,WP and Xamarin application. Gets or sets a value indicating whether to export text input form field as text. True if HTML export text input form field as text; otherwise, false. By default, the text form fields are preserved as editable fields while exporting the HTML file. This property is only applicable while exporting the Word document as HTML file. Gets or sets value indicating whether to omit XML declaration in the exported HTML file. True if Omit XML declaration in the exported HTML file; false otherwise. Default value is false. Gets or sets a value indicating whether to preserve compatibility mode as in the input Word document. True if to have the compatibility mode as preserved in the input document; false if to have the compatibility mode based on the save format type. Gets or sets a value indicating whether the HTML document should be exported with the same rendering as the Word document. Default value is True. True to preserve the HTML contents equivalent to the Word document; false otherwise. This property is only applicable while exporting the Word document as a HTML file. //Opens an existing Word document WordDocument document = new WordDocument("Input.docx"); //Disables a flag to export HTML without WordCompatiblity document.SaveOptions.HTMLExportWithWordCompatiblity = false; //Saves the document document.Save("Output.html", FormatType.Html); //Closes the document document.Close(); 'Opens an existing Word document Dim document As WordDocument = New WordDocument("Input.docx") 'Disables a flag to export HTML without WordCompatiblity document.SaveOptions.HTMLExportWithWordCompatiblity = False 'Saves the document document.Save("Output.html", FormatType.Html) 'Close the document document.Close() Gets a value indicating whether Image node visited event has been subscribed or not. True if the Image node visited event has been subscribed; otherwise, false. Specifies the Css style sheet type. CSS styles are specified in a separate file with .css extension. CSS styles are specified inline. CSS styles are specified in the style tag. Specifies the track changes revision options for Word to PDF conversion Sets the balloons and other options based on revision type. Gets or sets a value that indicates whether to preserve Word document Comments in converted PDF document or not.Default value isCommentDisplayMode.Hide. The following code example demonstrates how to set the to preserve Comments in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets ShowInBalloons to render a document comments in converted PDF document. wordDocument.RevisionOptions.CommentDisplayMode = CommentDisplayMode.ShowInBalloons; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets ShowInBalloons to render a document comments in converted PDF document. wordDocument.RevisionOptions.CommentDisplayMode = CommentDisplayMode.ShowInBalloons 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets the color to be used for Comment. Default value is RevisionColor.Red. For now, Red color will be used if this property values specified as ByAuthor or Auto. The following code example demonstrates how to set the to preserve Comments color in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets ShowInBalloons to render a document comments in converted PDF document. wordDocument.RevisionOptions.CommentDisplayMode = CommentDisplayMode.ShowInBalloons; //Sets the color to be used for Comment Balloon. wordDocument.RevisionOptions.CommentColor = RevisionColor.Pink; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets ShowInBalloons to render a document comments in converted PDF document. wordDocument.RevisionOptions.CommentDisplayMode = CommentDisplayMode.ShowInBalloons 'Sets the color to be used for Comment Balloon. wordDocument.RevisionOptions.CommentColor = RevisionColor.Pink 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets a value indicating whether to show the revision lines for the changes made in the document. Gets or sets a value indicating whether to show the revisions (content changes) made. Gets or sets the color to be used for revision bars that identify document lines containing revised information. Default value is RevisionColor.Red. For now, Red color will be used if this property values specified as ByAuthor or Auto. The following code example demonstrates how to set the to preserve Revision mark color in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Sets the color for Revision mark color. wordDocument.RevisionOptions.RevisionBarsColor = RevisionColor.Pink; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Sets the color for Revision mark color. wordDocument.RevisionOptions.RevisionBarsColor = RevisionColor.Pink 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets the color to be used for inserted content . Default value is RevisionColor.ByAuthor. For now, Blue color will be used if this property values specified as ByAuthor or Auto. The following code example demonstrates how to set the to preserve inserted text color in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Sets the color for inserted text color. wordDocument.RevisionOptions.InsertedTextColor = RevisionColor.ClassicRed; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Sets the color for inserted text color. wordDocument.RevisionOptions.InsertedTextColor = RevisionColor.ClassicRed 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets the width of the revised lines in the document Gets or sets the text effect for the inserted text. Gets or sets the color to be used for deleted content . Default value is RevisionColor.ByAuthor. For now, Red color will be used if this property values specified as ByAuthor or Auto. The following code example demonstrates how to set the to preserve Deleted content color in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Sets the color for Deleted content color. wordDocument.RevisionOptions.DeletedTextColor = RevisionColor.ClassicBlue; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Sets the color for Deleted content color. wordDocument.RevisionOptions.DeletedTextColor = RevisionColor.ClassicBlue 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets the text effect for the deleted content Gets or sets the color to be used for content with changes of formatting properties . Default value is RevisionColor.ByAuthor. For now, Red color will be used if this property values specified as ByAuthor or Auto. The following code example demonstrates how to set the to preserve track changes color in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Sets the color for Revised property color. wordDocument.RevisionOptions.RevisedPropertiesColor = RevisionColor.Turquoise; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Sets the color for Revised property color. wordDocument.RevisionOptions.RevisedPropertiesColor = RevisionColor.Turquoise 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets the text effect for the formatting changes in the document. Gets or sets the value indicating whether to show the deleted text. Gets or sets the revision type to render in PDF. The following code example demonstrates how to set the to preserve track changes in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets the revision types to be displayed in balloons when converting Word documents to PDF. Default value is RevisionType.Deletions | RevisionType.Formatting. For now, only RevisionType.None and RevisionType.Deletions | RevisionType.Formatting are supported. The following code example demonstrates how to set the to hide balloons in Word to PDF Conversion. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions | RevisionType.Formatting | RevisionType.Deletions; //Hides showing revisions in balloons when converting Word documents to PDF wordDocument.RevisionOptions.ShowInBalloons = RevisionType.None; //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object converter.Dispose(); //Closes the instance of document objects wordDocument.Close(); pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Sets revision types to preserve track changes in PDF conversion. wordDocument.RevisionOptions.ShowMarkup = RevisionType.Insertions Or RevisionType.Formatting Or RevisionType.Deletions 'Hides showing revisions in balloons when converting Word documents to PDF wordDocument.RevisionOptions.ShowInBalloons = RevisionType.None 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases all resources used by the object converter.Dispose() 'Closes the instance of document objects wordDocument.Close() pdfDocument.Close(True) Gets or sets the options in track changes balloons to render in PDF. Represents general exception in DLS library. Default exception message. Initializes a new instance of the class. Initializes a new instance of the class with specified inner exception. The inner exception that occurs during execution. Initializes a new instance of the class. The string that represents the exception message. Initializes a new instance of the class with specified exception message and inner exception. The string that represents the exception message. The inner exception that occurs during execution. Represents the Html Converter Register Exception. Default exception message. Initializes a new instance of the class. Initializes a new instance of the class. The inner exc. Initializes a new instance of the class. The message. Initializes a new instance of the class. The message. The inner exc. Represents exception during xml serialization. Default exception message. Initializes a new instance of the class. Initializes a new instance of the class. The inner exc. Initializes a new instance of the class. The message. Initializes a new instance of the class. The message. The inner exc. Represents the font settings in the Word document. Gets the font based on given font details. Name of the font. Size of the font. Style of the font. The created font, or substituted font by event. Gets a font style value to generate a fontStream collection key. Font style Returns the font style Creates font based on given font details. Name of the font. Size of the font. Style of the font. The created font. Close the FontSettings field instances. Occurs during Word to PDF/Image conversion to substitute the alternate fonts when a specified font is not installed in the production environment. This event is supported for Word to PDF/Image conversion alone. Gets a fallback font collection of Word document. Represents the method that handles substitute font event. Represents the substitute font event that occurs during Word to PDF/Image conversion to substitute the alternate fonts when a specified font is not installed in the production environment. Represents the original font name. Represents the substitute font name. Represents the substitute font name. Represents the original fontstyle. Initializes a new instance of class for the specified document with original (missing) font name, and alternate font name. Name of the original (missing) font name. Name of the alternate font name. Style of the original font. Gets the original font name. Read Only. The string that specifies the original font name. Gets the original font name. Read Only. The string that specifies the original font name. Gets or sets the alternate font name. The string that specifies the alternate font name. Represents the border formatting options for Word document contents. Variable used to hold the ColorKey. Variable used to hold the BorderTypeKey. Variable used to hold the LineWidthKey. Variable used to hold the SpaceKey. Variable used to hold the ShadowKey. Variable used to hold the HasNoneStyleKey. Indicate border position Document is presently read Initializes a new instance of the class with the specified and key. The object that represents the base formatting options. The integer that specifies the base key. Determines whether [is skip border] [the specified value1]. The value1. The value2. if set to true [is first read]. Clones the Border formatting. Update table calls border Gets the line weight. Gets the line number. Gets the style priority. Gets the border line array. Type of the border. Width of the line. Update table cell borders Table Row index Cell index Update table row borders Table Row index Set the style of the border Sets the default properties. Compares the border properties. Gets the border text for Word comparison Initializes the Border style. The for the border. The float that specifies width of the line. The member that specifies the style for border. True if shadow should be drawn, otherwise false. Returns the default values. The integer that specifies the key. An object that specifies the default value. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Registers child objects in XDSL holder. Occurs on format change. The object. The integer that represents the property key. Apply base style Updates the source formatting. The border. Document is presently read Gets or sets a value indicating the opening of HTML Get/set border position value Gets or sets the color for border. The for border. Gets or sets the width of the border measured in points. The float that represents the width of the border. Gets or sets style of the border. The member that specifies the style for border. Gets or sets the width(in points) of space to maintain between border and text within border. The float that specifies the width of the space measured in points. Gets or sets a value indicating whether the border should be drawn with shadow. True if shadow should be drawn; otherwise, false. Gets a value indicating whether border is defined. true if border is defined; otherwise, false. Specifies the border position. Left border Top border Right border Bottom border Vertical border Horizontal border Diagonal Down border Diagonal Up border Represents the collection of that includes top, bottom, right and left borders. Constant value for left key. Constant value for top key. Constant value for bottom key. Constant value for right key. constant value for vertical key. constant value for horizontal key. constant value for diagonal down key. constant value for diagonal up key. Current table cell Current table row Initializing constructor. The parent. The base key. Initializes a new instance of the class. Initializes a new instance of the class. The . Ensures the composites. Returns the default values. The integer that specifies the key. An object that specifies the default value. The key is invalid. Gets the composite values. The integer that specifies the key. The object. Registers child objects in XDSL holder. Creates duplicate copy of the entity. The reference to the newly created . Creates duplicate copy of the entity. An object that can be casted as . Occurs on format change. The object. The integer that represents the property key. Apply base style Sets the default properties. Sets spacing for all Check if adjacent paragraph bottom borders are same Currentaragraph The bounds. Init borders owner Closes this instance. Updates the source formatting. The borders. Compare Borders Gets a value indicating whether the border exists. Read-only. True if there is no border; otherwise, false. Gets a value indicating whether the tablecell border exists. Read-only. Gets the left border. Read-only. The for left. Gets the top border. Read-only. The for top. Gets the right border. Read-only. The for right. Gets the bottom border. Read-only. The for bottom. Gets the vertical border. Read-only. The vertical . Gets horizontal border. Read-only. The horizontal . Gets diagonal border from top left corner to bottom right corner. Gets diagonal border from bottom left corner to top right corner. Sets color of the borders. Write-only. The for left, right, top and bottom borders. Sets width of the borders. Write-only. The float value specifies the line width for left, right, top and bottom borders. Sets style of the borders. Write-only. The member that specifies the style for left, right, top, bottom, vertical and horizontal borders. Sets width of space to maintain between borders and text within borders. Write-only. The float that specifies the width of the space. Sets whether borders should be drawn with shadow. Write-only. True if shadow should be drawn; otherwise, false. Gets owner borders cell Gets owner borders row Gets or sets a value indicating the opening of HTML Document is presently read Represents the cell formatting options for table cell. The following code example demonstrates how to apply cell formatting options to a private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); document.Open("Table.docx", FormatType.Docx); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Access the instance of the first row in the table WTableRow row = table.Rows[0]; //Specify the row height row.Height = 20; //Specify the row height type row.HeightType = TableRowHeightType.AtLeast; //Access the instance of the first cell in the row WTableCell cell = row.Cells[0]; //Specify the cell back ground color cell.CellFormat.BackColor = Color.FromArgb(192, 192, 192); //Specify the same padding as table option as false to preserve current cell padding cell.CellFormat.SamePaddingsAsTable = false; //Specify the left, right, top and bottom padding of the cell cell.CellFormat.Paddings.Left = 5; cell.CellFormat.Paddings.Right = 5; cell.CellFormat.Paddings.Top = 5; cell.CellFormat.Paddings.Bottom = 5; //Specify the vertical alignment of content of text cell.CellFormat.VerticalAlignment = VerticalAlignment.Middle; //Access the instance of the second cell in the row cell = row.Cells[1]; cell.CellFormat.BackColor = Color.FromArgb(192, 192, 192); cell.CellFormat.SamePaddingsAsTable = false; //Specify the left, right, top and bottom padding of the cell cell.CellFormat.Paddings.All = 5; cell.CellFormat.VerticalAlignment = VerticalAlignment.Middle; document.Save("TableCellFormatting.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() document.Open("Table.docx", FormatType.Docx) Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Access the instance of the first row in the table Dim row As WTableRow = table.Rows(0) 'Specify the row height row.Height = 20 'Specify the row height type row.HeightType = TableRowHeightType.AtLeast 'Access the instance of the first cell in the row Dim cell As WTableCell = row.Cells(0) 'Specify the cell back ground color cell.CellFormat.BackColor = Color.FromArgb(192, 192, 192) 'Specify the same padding as table option as false to preserve current cell padding cell.CellFormat.SamePaddingsAsTable = False 'Specify the left, right, top and bottom padding of the cell cell.CellFormat.Paddings.Left = 5 cell.CellFormat.Paddings.Right = 5 cell.CellFormat.Paddings.Top = 5 cell.CellFormat.Paddings.Bottom = 5 'Specify the vertical alignment of content of text cell.CellFormat.VerticalAlignment = VerticalAlignment.Middle 'Access the instance of the second cell in the row cell = row.Cells(1) cell.CellFormat.BackColor = Color.FromArgb(192, 192, 192) cell.CellFormat.SamePaddingsAsTable = False 'Specify the left, right, top and bottom padding of the cell cell.CellFormat.Paddings.All = 5 cell.CellFormat.VerticalAlignment = VerticalAlignment.Middle document.Save("TableCellFormatting.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. Gets the property value. The property key. Sets the property value. The property key. The value. Gets the owner row format. Gets the index of the owner cell. Determines whether cell has same paddings as table. if it has same paddings as table, set to true. Update horizontal merge based on the previous adjacent cells. Clears the preferred width properties for Autofit. Closes this instance. Determines whether the specified property key has value. The property key. if the specified property key has value, set to true. Apply base style Ensures the composites. Returns the default values. The integer specifying the key value of the property. An object that specifies the default value. Gets the composite values. The integer that specifies the key. The object. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Registers child objects in XDSL holder. Imports the container. The object. Imports the XML properties. The object. Imports the members. The object. Occurs on format change. The object. The integer that represents the property key. Updates the cell format. The cell properties. Applies the parent row format. The row format. Updates the border settings. The borders. Compare one cell format with another and return true if equal else false. Gets or sets a value indicating whether [cancel on change]. true if [cancel on change]; otherwise, false. Get's / Set's the Hidden property of the cell Gets or sets a value indicating whether the cell's format track has changed. Gets or sets the preferred width of the cell. The preferred width of the cell. Gets the borders for the cell. The that specifies the borders of the cell. Gets the cell paddings. Read-only. The for the cell. Gets or sets the vertical alignment of the cell content. The member that specifies the vertical alignment of cell content. Gets or sets the background color for cell. The for cell background. Gets or sets the way of combining of the cell vertically. The member that specifies the way of vertical merging. Gets or sets the way of combining of the cell horizontally. The member that specifies the way of horizontal merging. Gets or sets a value indicating whether the text wrapping is set. True if it has text wrapping properties; otherwise, false. Gets or sets fit text option of the cell. True if the fit text option is enabled; otherwise, false. Gets or sets cell text direction. The member that specifies the type of text direction. Gets or sets value indicating whether to use same paddings as the table. True if it has same padding values as table; otherwise, false. Gets the index of the current cell in the row. The index of the current cell. Gets or sets the width of the cell. The width of the cell. Gets or sets number of grid columns spanned by the current cell. The GridSpan of the cell. Gets or sets the color of the fore. The color of the fore. Gets or sets the texture style. The texture style. Hides the current row Represents the overrides for list style. Represents the paragraph and character styles. Represents the style. Remove this style from the Word document. Clones the , creating duplicate style. The object. Closes this instance. Gets or sets the style name. The string that represents the style name. Gets the type of the style. Read-only. The member that specifies the type of the style. Represents the constant style Id. Represents the object. Represents the object. Represents the string to identify style names Represents the string to identify style names Represents the string to identify styleID names Represents the Represents the byte array. Initializes a new instance of the class with the specified instance. The instance. Applies the base style for current style. The string that represents the style name. Applies the base style for the current style. The member that specifies the built-in style. Check whether the current style is not present in builtin styles True, if the style is not present in Builtin style; else, false Remove this style from the Word document. Clones the , creating duplicate style. Set the link style to the current style The link style name Applies base style for current style. The base style Removes the base style. Set the name of the style. Clones style, creates duplicate copy of the style. The cloned element Clones the relations. The doc. Determines whether the style has Guid Style guid Returns true, if style name contains Guid. Compares the properties of current style with specified style. Imports the style to destination document. The doc. Compare style with document style collection Creates a cloned copy of the style and adds to the destination document. The document The cloned Styles Holder Copy the base style formattings to current paragraph style. Destination Word document. Cloned paragraph style Gets the unique style name. Current style name. Collection of existing style names. Unique style name. Gets style name Id. Creates the built-in paragraph style. The member that specifies the built-in style. The object. The object. Creates the built-in character style. The member that specifies the built-in style. The object. The object. Creates the built-in table style. The built in style. The document. Creates the built-in style. The member that specifies the built-in style. The member that specifies the type of the style. The object. The object. Built into name. The built in style. Built into name. The built in style. Converts the style names to BuiltinStyle. The string represents the name of the style. The member that represents built-in style. Determines whether is list style the specified built in style. The built in style. true if it specifies list style, set to true. Closes this instance. Loads Builtin styles to dictionary Loads the builtin style ids. Compares the properties of current style with the specified one for document comparison Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Registers child objects in XDSL holder. Restores object references after deserialization The string that represents the name. The zero-based integer that represents the index. Represents the table style data (.doc format) This property is specific for .doc format Gets or sets the type code of the style. This property is specific for .doc format Gets the character format. Read-only. The object that specifies the character format for the current style. Gets or sets the style name. The string that represents the style name. Gets the base style. The base style. Gets or sets the style id. The style id. Gets the type of the style. Read-only. The member that specifies the type of the style. Gets the style as built-in Word style. The member that specifies built-in style. Gets or sets the next style. The next style. Gets or sets the link style name. Reserved for editor controls (Document Editor, SfRichTextBoxAdv) The link style. Gets or sets the name of the style that is linked to this style. The default value is null. The string that represents the style name. Character styles can be linked to paragraph and table styles and vice versa. However, you cannot link paragraph style with the table style. Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); Gets the style from document styles collection Style style = document.Styles.FindByName("ParaStyle") as Style; Link the styles style.LinkedStyleName = "CharStyle"; Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance Dim document As WordDocument = New WordDocument("Template.docx") 'Gets the style from document styles collection Dim style As Style = TryCast(document.Styles.FindByName("ParaStyle"), Style) 'Link the styles style.LinkedStyleName = "CharStyle" 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets the styleID Name. The styleID Name. Gets or sets a value indicating whether the current instance is primary style. True if the instance is primary style, otherwise false. Gets or sets a value indicating whether this instance is semi hidden. if this instance is semi hidden, set to true. Gets or sets a value indicating whether to unhide when used. if unhide when used, set to true. Gets or sets a value indicating whether this instance is custom. if this instance is custom, set to true. Gets or sets a value indicating whether this instance is ui priority. Default value is int.minValue. Collection of elemments(paragraph or paragraph items) which is linked with this style. Represents the built-in styles. Contains the built-in style names. Built-in table style names. Loads the style. The style. The b style. Loads the style. The style. The b style. Loads the table style Normal Table. The style. Loads the table style Table Grid. The style. Loads the table style Light Shading. The style. The text Color. The border Color. The back Color. Loads the table style Light List. The style. The border Color. The back Color. Loads the table style Light Grid. The style. The border Color. The back Color. Loads the table style Medium Shading 1. The style. The border Color. The first Row Back Color. The back Color. Loads the table style Medium Shading 2. The style. The back Color. Loads the table style Medium List 1. The style. The border Color. The back Color. Loads the table style Medium List 2. The style. The border Color. The back Color. Loads the table style Medium Grid 1. The style. The border Color. The back Color. The band Cell Color. Loads the table style Medium Grid 2. The style. The border Color. The back Color. The first Row Color. The last Column Color. The band Cell Color. Loads the table style Medium Grid 3. The style. The back Color. The first Row Color. The band Cell Color. Loads the table style Dark List. The style. The back Color. The last Row Color. The band Cell Color. Loads the table style Colorful Shading. The style. The top Border Color. The border Color. The back Color. The last Row Color. The band Column Color. The band Row Color. Loads the table style Colorful List. The style. The back Color. The row Color. The band Column Color. The band Row Color. Loads the table style Colorful Grid. The style. The back Color. The row Color. The column Color. The band Color. Loads the table style Table 3D effects 1. The style. Loads the table style Table 3D effects 2. The style. Loads the table style Table 3D effects 3. The style. Loads the table style Table Classic 1. The style. Loads the table style Table Classic 2. The style. Loads the table style Table Classic 3. The style. Loads the table style Table Classic 4. The style. Loads the table style Table Colorful 1. The style. Loads the table style Table Colorful 2. The style. Loads the table style Table Colorful 3. The style. Loads the table style Table Columns 1. The style. Loads the table style Table Columns 2. The style. Loads the table style Table Columns 3. The style. Loads the table style Table Columns 4. The style. Loads the table style Table Columns 5. The style. Loads the table style Table Contemporary. The style. Loads the table style Table Elegant. The style. Loads the table style Table Grid 1. The style. Loads the table style Table Grid 2. The style. Loads the table style Table Grid 3. The style. Loads the table style Table Grid 4. The style. Loads the table style Table Grid 5. The style. Loads the table style Table Grid 6. The style. Loads the table style Table Grid 7. The style. Loads the table style Table Grid 8. The style. Loads the table style Table List 1. The style. Loads the table style Table List 2. The style. Loads the table style Table List 3. The style. Loads the table style Table List 4. The style. Loads the table style Table List 5. The style. Loads the table style Table List 6. The style. Loads the table style Table List 7. The style. Loads the table style Table List 8. The style. Loads the table style Table Professional. The style. Loads the table style Table Simple 1. The style. Loads the table style Table Simple 2. The style. Loads the table style Table Simple 3. The style. Loads the table style Table Subtle 1. The style. Loads the table style Table Subtle 2. The style. Loads the table style Table Theme. The style. Loads the table style Table Web 1. The style. Loads the table style Table Web 2. The style. Loads the table style Table Web 3. The style. Updates the XML resource and reader. Gets the specified resource file as stream. The resource file name Stream of the specified resource file Determines whether is list style the specified BuiltinStyle. The built in style. if the list style specified in BuiltinStyle, set to true. Initializes a new instance of the class. The doc. Clones the , creating duplicate style. The object. Clones itself. Returns cloned object. Clones the relations. The doc. Closes this instance. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Compares the current list override style with another list override style The ListOverrideStyle Compares the source base list with the destination base list style for the override style. Name of the source list style. Name of the dest list style. Gets the type of the style. The member that specifies the type of the style. Gets the override levels. The override levels. Gets or sets the list identifier. The list identifier. Represents the list level override formats. Initializes a new instance of the class. The doc. Serialize paragraph and character properties. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Clones itself. Returns cloned object. Closes this instance. Compares current list override format with another list override format The override level format Gets or sets a value indicating whether [override start at value]. if it override start at value, set to true. Gets or sets a value indicating whether [override formatting]. if it override formatting, set to true. Gets or sets the start at. The start at. Gets the override list level. The override list level. Represents the cell paddings. Specifies the constant value for left key. Specifies the constant value for top key. Specifies the constant value for bottom key. Specifies the constant value for right key. Initializes a new instance of the Paddings class. Updates the paddings. The padding. Imports the paddings. The base paddings. Compare the padding properties The paddings instance A value indicating whether the properties are equal. Returns the default values. The integer that specifies the key. An object that specifies the default value. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Occurs on format change. The object. The integer that represents the property key. Gets or sets the left padding value for the cell in points. The float that specifies left padding value. Gets or sets the top padding value for the cell in points. The float that specifies top padding value. Gets or sets the right padding value for the cell in points. The float that specifies right padding value. Gets or sets the bottom padding value for the cell in points. The float that specifies bottom padding value. Sets the padding values for all sides of the cell. The float that specifies the padding value for left, right, top and bottom. TableStyleCellProperties is used for representing formatting properties of the table. Initializes a new instance of the TableStyleCellProperties class. The doc. Gets the property value. The property key. Sets the property value. The property key. The value. Determines whether the specified property key has value. The property key. if the specified property key has value, set to true. Apply base style Ensures the composites. Returns the default values. The integer that specifies the key. An object that specifies the default value. Gets the composite values. The integer that specifies the key. The object. Compare the Table style cell properties of two objects and return true if Equal else false. Gets/sets the background color. Gets/sets the foreground color. Gets or sets the texture style. The texture style. Gets the borders. Gets the paddings. Gets/sets vertical alignment of the cell. Gets or sets a boolean value indicating whether to wrap text in cell or not. true if it specifies text wrap, set to true. TableStyleRowProperties is used for representing formatting properties of the table. Initializes a new instance of the TableStyleRowProperties class. The doc. Gets as row format. Gets the property value. The property key. Sets the property value. The property key. The value. Determines whether the specified property key has value. The property key. if the specified property key has value, set to true. Returns the default values. The integer that specifies the key. An object that specifies the default value. Compare the Table style row properties of two objects and return true if Equal else false. Gets / sets a boolean value indicating if row is hidden Gets / sets a boolean value indicating if row is table header Gets / sets a boolean value indicating if there is a break across pages Gets / sets the spacing between cells. Gets / sets horizontal alignment of the row. TableStyleTableProperties is used for representing formatting properties of the table. Initializes a new instance of the TableStyleTableProperties class. The doc. Gets as table format. Gets the property value. The property key. Sets the property value. The property key. The value. Determines whether the specified property key has value. The property key. if the specified property key has value, set to true. Apply base style Ensures the composites. Returns the default values. The integer that specifies the key. An object that specifies the default value. Gets the composite values. The integer that specifies the key. The object. Compare the Table style table properties of two objects and return true if Equal else false. Gets/sets the background color. Gets/sets the foreground color. Gets or sets the texture style. The texture style. Gets the borders. Gets the paddings. Gets / sets the spacing between cells. Gets / sets the table indent. Gets / sets the boolean value indicating if table allow page breaks Gets / sets horizontal alignment of the table. Gets / sets number of columns in column band. Gets / sets number of rows in row band. Represents the view setup options for the Word document. Constant value for Zoom. Initializes a new instance of the class with the specified instance. The instance. Clones the specified doc. The doc. Sets the zoom percent. Validates the Zoom percentage value while parsing the document. The value. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Gets or sets the zoom value in percents. The integer specifying the zoom percent. Gets or sets the zoom type The member that specifies the type of the zoom. Gets or sets the document view mode. The member that specifies the type of the document view. Represents the font or character properties of the text in the Word document. The following examples illustrates how to apply various character formats for the text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text to the paragraph IWTextRange text = paragraph.AppendText("Text with All caps."); //All Caps text.CharacterFormat.AllCaps = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("Right to left text."); //Right to left text with bold and italic styles. text.CharacterFormat.Bidi = true; text.CharacterFormat.FontNameBidi = "Times New Roman"; text.CharacterFormat.FontSizeBidi = 14; text.CharacterFormat.BoldBidi = true; text.CharacterFormat.ItalicBidi = true; paragraph = section.AddParagraph(); //Bold text = paragraph.AppendText("Bold text."); text.CharacterFormat.Bold = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("Text with border."); //Borders text.CharacterFormat.Border.BorderType = BorderStyle.DotDash; text.CharacterFormat.Border.LineWidth = 0.5f; text.CharacterFormat.Border.Color = Color.Blue; paragraph = section.AddParagraph(); text = paragraph.AppendText("Character spacing."); text.CharacterFormat.CharacterSpacing = 1; paragraph = section.AddParagraph(); text = paragraph.AppendText("Double strike."); //Double strike text.CharacterFormat.DoubleStrike = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("Emboss."); //Emboss text.CharacterFormat.Emboss = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("Engrave."); //Engrave text.CharacterFormat.Engrave = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("Font name."); //Font name text.CharacterFormat.FontName = "Algerian"; paragraph = section.AddParagraph(); text = paragraph.AppendText("Font size."); //Font size text.CharacterFormat.FontSize = 10; paragraph = section.AddParagraph(); text = paragraph.AppendText("Highlight color."); //Highlight color text.CharacterFormat.HighlightColor = Color.Gray; paragraph = section.AddParagraph(); text = paragraph.AppendText("Italic."); //Italic text.CharacterFormat.Italic = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("Outline."); //Outline text.CharacterFormat.OutLine = true; paragraph = section.AddParagraph(); paragraph.AppendText("Position Property with text"); text = paragraph.AppendText("raised by 10 points."); //Position text.CharacterFormat.Position = 10; paragraph = section.AddParagraph(); text = paragraph.AppendText("Shadow."); //Shadow text.CharacterFormat.Shadow = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("SmallCaps."); //SmallCaps text.CharacterFormat.SmallCaps = true; paragraph = section.AddParagraph(); text = paragraph.AppendText("Strikeout."); //Strikeout text.CharacterFormat.Strikeout = true; paragraph = section.AddParagraph(); paragraph.AppendText("Text"); text = paragraph.AppendText("Subscript."); //Subscript text.CharacterFormat.SubSuperScript = SubSuperScript.SubScript; paragraph = section.AddParagraph(); paragraph.AppendText("Text"); text = paragraph.AppendText("Superscript."); //Superscript text.CharacterFormat.SubSuperScript = SubSuperScript.SuperScript; paragraph = section.AddParagraph(); text = paragraph.AppendText("TextBackgroundColor."); //TextBackgroundColor text.CharacterFormat.TextBackgroundColor = Color.LightSkyBlue; paragraph = section.AddParagraph(); text = paragraph.AppendText("TextColor."); //TextColor text.CharacterFormat.TextColor = Color.Green; paragraph = section.AddParagraph(); text = paragraph.AppendText("UnderlineStyle."); //UnderlineStyle text.CharacterFormat.UnderlineStyle = UnderlineStyle.Dash; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text to the paragraph Dim text As IWTextRange = paragraph.AppendText("Text with All caps.") 'All Caps text.CharacterFormat.AllCaps = True paragraph = section.AddParagraph() text = paragraph.AppendText("Right to left text.") 'Right to left text with bold and italic styles. text.CharacterFormat.Bidi = True text.CharacterFormat.FontNameBidi = "Times New Roman" text.CharacterFormat.FontSizeBidi = 14 text.CharacterFormat.BoldBidi = True text.CharacterFormat.ItalicBidi = True paragraph = section.AddParagraph() 'Bold text = paragraph.AppendText("Bold text.") text.CharacterFormat.Bold = True paragraph = section.AddParagraph() text = paragraph.AppendText("Text with border.") 'Borders text.CharacterFormat.Border.BorderType = BorderStyle.DotDash text.CharacterFormat.Border.LineWidth = 0.5F text.CharacterFormat.Border.Color = Color.Blue paragraph = section.AddParagraph() text = paragraph.AppendText("Character spacing.") text.CharacterFormat.CharacterSpacing = 1 paragraph = section.AddParagraph() text = paragraph.AppendText("Double strike.") 'Double strike text.CharacterFormat.DoubleStrike = True paragraph = section.AddParagraph() text = paragraph.AppendText("Emboss.") 'Emboss text.CharacterFormat.Emboss = True paragraph = section.AddParagraph() text = paragraph.AppendText("Engrave.") 'Engrave text.CharacterFormat.Engrave = True paragraph = section.AddParagraph() text = paragraph.AppendText("Font name.") 'Font name text.CharacterFormat.FontName = "Algerian" paragraph = section.AddParagraph() text = paragraph.AppendText("Font size.") 'Font size text.CharacterFormat.FontSize = 10 paragraph = section.AddParagraph() text = paragraph.AppendText("Highlight color.") 'Highlight color text.CharacterFormat.HighlightColor = Color.Gray paragraph = section.AddParagraph() text = paragraph.AppendText("Italic.") 'Italic text.CharacterFormat.Italic = True paragraph = section.AddParagraph() text = paragraph.AppendText("Outline.") 'Outline text.CharacterFormat.OutLine = True paragraph = section.AddParagraph() paragraph.AppendText("Position Property with text") text = paragraph.AppendText("raised by 10 points.") 'Position text.CharacterFormat.Position = 10 paragraph = section.AddParagraph() text = paragraph.AppendText("Shadow.") 'Shadow text.CharacterFormat.Shadow = True paragraph = section.AddParagraph() text = paragraph.AppendText("SmallCaps.") 'SmallCaps text.CharacterFormat.SmallCaps = True paragraph = section.AddParagraph() text = paragraph.AppendText("Strikeout.") 'Strikeout text.CharacterFormat.Strikeout = True paragraph = section.AddParagraph() paragraph.AppendText("Text") text = paragraph.AppendText("Subscript.") 'Subscript text.CharacterFormat.SubSuperScript = SubSuperScript.SubScript paragraph = section.AddParagraph() paragraph.AppendText("Text") text = paragraph.AppendText("Superscript.") 'Superscript text.CharacterFormat.SubSuperScript = SubSuperScript.SuperScript paragraph = section.AddParagraph() text = paragraph.AppendText("TextBackgroundColor.") 'TextBackgroundColor text.CharacterFormat.TextBackgroundColor = Color.LightSkyBlue paragraph = section.AddParagraph() text = paragraph.AppendText("TextColor.") 'TextColor text.CharacterFormat.TextColor = Color.Green paragraph = section.AddParagraph() text = paragraph.AppendText("UnderlineStyle.") 'UnderlineStyle text.CharacterFormat.UnderlineStyle = UnderlineStyle.Dash 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Keys. Member that specifies the character style name. Default constructor Initializes a new instance of the class with the specified instance. The instance. Initializes a new instance of the WCharacterFormat class. Removes the initialized font names. Determines whether the specified property is available. Search includes base formats. The property key. true if has value; otherwise, false. Reserved for internal use. This method is implemented for document editor internal use only. Determines whether the specified property is available. Search includes base formats. This method is implemented for document editor internal use only. The property key. true if has value; otherwise, false. Gets the font style. Specifies the font styles for the revised text. Checks whether need to preserve insertion markups in the PDF. Checks whether need to preserve deleted markups in the PDF. Determines whether line break is next to this paragraph item. if it specifies next element is line break, set to true. Sets the line break next. Gets the property value. The prop key. Gets the boolean property value. The prop key. Sets the property value. The property key. The value. Determines whether the specified key is boolean property. The key. true if the specified key is boolean property; otherwise, false. Defines whether to serialize all data. Gets the complex bool value. The option key. Gets the base format. The format. Removes the format changes. Checks whether character format sprms have cross reference Gets the char style. The name. Gets the name of the font. The font key. Get the font name bidi to render Get the font name East Asia to render Represent a CharacterRangeType. Returns a eastAsia font name to draw the text. Get the font name of Complex script to render Represent a CharacterRangeType. Returns a Complex script font name to draw the text. Gets a valid font name from theme with theme font name. Represent the theme font name. Represent a CharacterRangeType. Update a font name from theme, based on FontHintType. Gets the font name from a theme part for the specified font script. Determines whether the specified key contains value. The key. true if the specified key contains value; otherwise, false. Sets the default properties. Registers child objects in XDSL holder. Returns the default values. The integer that specifies the key. An object that specifies the default value. Gets the composite values. The integer that specifies the key. The object. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Imports the container. The object. Imports the XML properties. The format. Imports the members. The object. Clears the character formats applied Occurs on format change. The object. The integer that represents the property key. Apply base style Releases all resources used by the object. This API is used for internal purpose to dispose the resources used by . Closes this instance. Determines whether the specified property key has value. The property key. if the specified property key has value, set to true. Gets the Single Property Modifier Record option value for the specified property. The integer that represents the property key. The integer that represents the SPRM value. Writes the complex attribute. The writer. The property key. The XDLS constant string. Gets the font hint. Returns font from Hint Merges the format. The destination format. Updates the formattings. The properties. Clones the relations. Creates a duplicate copy of character format The reference of the newly created object. This API is used for internal purpose to clone . Clones the relations for referred character style. Updates the formatting. The doc. Updates the source format. The dest base format. Updates the source formatting. The format. To check whether the font name is theme font or not. Specify the font name. Returns true if the font name is represent a theme font. Update the document defaults values to property hash. Gets the BaseCharacter Format has FontInfor related keys or not Compares current character format with another character format The character format Gets the character format text for Word comparison Sets the Kern font size Kern font size Sets the character position The character position. Sets the scaling value The scaling value. Sets the Character spacing The character spacing. Gets or sets a value indicating whether [m_cancel on change]. true if [m_cancel on change]; otherwise, false. Flag which defines whether character format passed test on cross reference. Represent the reduced font size Represent the font name used for emoji Gets or sets the value indicates whether this format is created in DOC Reading Gets or sets the for the text. Gets or sets font name of the text. The string that specifies the font name. Gets and set the clear value get the type of the BreakClear and set the Type for BreakClear Clear. Gets or sets the font size of the text measured in points. The float that specifies the font size. Gets or sets the scaling. The scaling. Gets or sets a value indicating whether the contents of the text shall be treated as complex script text regardless of their Unicode character values when determining the formatting for the text. True if to consider as complex script; otherwise, false. Gets or sets a value indicating whether the text is formatted as bold. True if to format the text with bold style; otherwise, false. Gets or sets a value indicating whether the text is formatted as italic. True if to format the text with italic style; otherwise, false. Gets or sets a value indicating whether the text is formatted with strikethrough. True if to format the text with strike through; otherwise, false. Gets or sets a value indicating whether the text is formatted with double strikethrough effect. True if to format the text with double strike through; otherwise, false. The double strike effect is not supported by Essential PDF. Gets or sets the underline style for the text. The member that specifies the underline style. Essential PDF supports only single underline style. Gets or sets the for the text. Gets or sets the text background color. The text background color is not supported by Essential PDF. Gets or sets the subscript or superscript for the text. The member that specifies the type of SubSuperScript. Gets or sets space width between the characters measured in points. The float that specifies the width. Gets or sets the vertical position of text measured in points. The float that specifies the vertical position. Gets or sets line break after. Gets or sets a value indicating whether the text is formatted with a shadow. True if the text has shadow; otherwise, false. Gets or sets a value indicating whether the text is embossed. True if the text is embossed; otherwise, false. Gets or sets a value indicating whether the text is engraved. True if the text is engraved; otherwise, false. Gets or sets a value indicating whether the text is formatted as hidden. True if the text is hidden; otherwise, false. Gets or sets a value indicating whether the text characters are displayed as their capital letter equivalents. True if the text to be displayed as capital letters; otherwise, false. Gets or sets a value indicating whether the text characters are displayed as their capital letter equivalents, in a font size that is smaller than the actual font size that is specified for this text. True if the text to be displayed as capital letters with smaller font size; otherwise, false. Gets or sets the value for SpecVanish property Gets or sets the value indicating directional override of the text. Gets or sets a value indicating whether the text is formatted with right-to-left layout. True if the text is right-to-left; otherwise, false. Gets or sets a value indicating whether the text is formatted bold when displayed right-to-left or determined to be complex script. True if to format the right-to-left text with bold style; otherwise, false. Gets or sets a value indicating whether the text is italicized when displayed right-to-left or determined to be complex script. True if to format the right-to-left text with italic style; otherwise, false. Gets or sets the size of the text(in points), for text that is displayed right-to-left or text that is a complex script. Gets or sets the font name for text that is displayed right-to-left or text that is a complex script. Gets or sets highlight of the text. Microsoft Word application supports only 15 valid colors for highlighting the text. To highlight text with Microsoft Word compatible color in the generated Word document, use the known color object or new color object with same ARGB value based on the following highlight color mapping. Yellow Color.Yellow (#FFFFFF00) BrightGreen Color.Green (#FF008000) Turquoise Color.Cyan (#FF00FFFF) Pink Color.Magenta (#FFFF00FF) Blue Color.Blue (#FF0000FF) Red Color.Red (#FFFF0000) DarkBlue Color.DarkBlue (#FF00008B) Teal Color.DarkCyan (#FF008B8B) Green Color.DarkGreen (#FF006400) Violet Color.DarkMagenta (#FF8B008B) DarkRed Color.DarkRed (#FF8B0000) DarkYellow Color.Gold (#FFFFD700) Gray50 Color.DarkGray (#FFA9A9A9) Gray25 Color.LightGray (#FFD3D3D3) Black Color.Black (#FF000000) No Color Color.Empty Gets the for the text. Gets or sets the emphasis style for the text Gets or sets the animated text effect Gets or sets a value indicating whether the text is displayed based on docGrid character settings Gets or sets a value indicating whether the text is hidden in Web layout view of the document Gets or sets the font used for Latin text (characters with character codes from 0 through 127). Gets or sets East Asian font name. Gets or sets font used for characters with character codes from 128 through 255. Get/set IdctHint property. Gets or sets the locale identifier(language) of the formatted characters. The short value that specifies the ASCII locale id. Gets or sets the the locale identifier (language) of the formatted Asian characters. The short value that specifies the far east locale id. Gets or sets the locale identifier(language) of the formatted right-to-left or complex script characters. The short value that specifies the Bidi locale id. The following example illustrates how to set right-to-left or complex script characters for text. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text IWTextRange text = paragraph.AppendText("Text to describe LocaleIdBidi text"); //Set right to left layout for text text.CharacterFormat.Bidi = true; //Set language identifier for right to left or complex script characters text.CharacterFormat.LocaleIdBidi = (short)LocaleIDs.he_IL; paragraph = section.AddParagraph(); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text Dim text As IWTextRange = paragraph.AppendText("Text to describe LocaleIdBidi text") 'Set right to left layout for text text.CharacterFormat.Bidi = True 'Set language identifier for right to left or complex script characters text.CharacterFormat.LocaleIdBidi = CType(LocaleIDs.he_IL, Short) paragraph = section.AddParagraph() 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets a value indicating whether only the outline contour of the characters in the text is rendered, with the inside of each character left empty. True if to have the outline effect; otherwise, false. Gets or sets special style. Gets the character style name that is used to format the contents of the paragraph. The string that specifies the character style name. Gets the character style name that is used to format the contents of the paragraph. The string that specifies the character style name. Gets a value indicating whether this instance is inserted change. if this instance is inserted change, set to true. Gets a value indicating whether this instance is deleted change. if this instance is deleted change, set to true. Gets a value indicating whether this instance has changed format. if this instance has changed format, set to true. Gets or sets the SPRMS. The SPRMS. Gets or sets the index of the list picture. The index of the list picture. Gets the character style. The character style. Gets or sets a value indicating whether field should be vanished. true if field vanish; otherwise, false. Gets or sets the table style character format. The table style character format. Gets or sets the name of the move revision. Gets or sets a value indicating whether to use contextual alternates. True if to use contextual alternates; otherwise, false. The following example illustrates how to set contextual alternates for text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text IWTextRange text = paragraph.AppendText("Text to describe contextual alternates"); text.CharacterFormat.FontName = "Segoe Script"; //Set contextual alternates text.CharacterFormat.UseContextualAlternates = true; paragraph = section.AddParagraph(); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text Dim text As IWTextRange = paragraph.AppendText("Text to describe contextual alternates") text.CharacterFormat.FontName = "Segoe Script" 'Set contextual alternates text.CharacterFormat.UseContextualAlternates = True paragraph = section.AddParagraph() 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the ligatures type for the text. The member that specifies the type of ligatures. The following example illustrates how to set ligature types for text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text IWTextRange text = paragraph.AppendText("Text to describe discretional ligatures"); //Set ligature type text.CharacterFormat.Ligatures = LigatureType.Discretional; text.CharacterFormat.FontName = "Arial"; paragraph = section.AddParagraph(); text = paragraph.AppendText("Text to describe contextual ligatures"); text.CharacterFormat.Ligatures = LigatureType.Contextual; text.CharacterFormat.FontName = "Arial"; paragraph = section.AddParagraph(); text = paragraph.AppendText("Text to describe historical ligatures"); text.CharacterFormat.Ligatures = LigatureType.Historical; text.CharacterFormat.FontName = "Arial"; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text Dim text As IWTextRange = paragraph.AppendText("Text to describe discretional ligatures") 'Set ligature type as Discretional text.CharacterFormat.Ligatures = LigatureType.Discretional text.CharacterFormat.FontName = "Arial" paragraph = section.AddParagraph() text = paragraph.AppendText("Text to describe contextual ligatures") 'Set ligature type as Contextual text.CharacterFormat.Ligatures = LigatureType.Contextual text.CharacterFormat.FontName = "Arial" paragraph = section.AddParagraph() text = paragraph.AppendText("Text to describe historical ligatures") 'Set ligature type as Historical text.CharacterFormat.Ligatures = LigatureType.Historical text.CharacterFormat.FontName = "Arial" 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets type of number form(height of the numbers present in the text) for the text. The member that specifies the type of number form. The following example illustrates how to set number form type for text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text IWTextRange text = paragraph.AppendText("Numbers to describe oldstyle number form 0123456789"); text.CharacterFormat.FontName = "Calibri"; //Set number style text.CharacterFormat.NumberForm = NumberFormType.OldStyle; paragraph = section.AddParagraph(); text = paragraph.AppendText("Numbers to describe lining number form 0123456789"); text.CharacterFormat.FontName = "Calibri"; //Set number style text.CharacterFormat.NumberForm = NumberFormType.Lining; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text Dim text As IWTextRange = paragraph.AppendText("Numbers to describe oldstyle number form 0123456789") text.CharacterFormat.FontName = "Calibri" 'Set number style text.CharacterFormat.NumberForm = NumberFormType.OldStyle paragraph = section.AddParagraph() text = paragraph.AppendText("Numbers to describe lining number form 0123456789") text.CharacterFormat.FontName = "Calibri" 'Set number style text.CharacterFormat.NumberForm = NumberFormType.Lining 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the type of number spacing(spacing between numbers in text) for the text. The member that specifies the type of number spacing. The following example illustrates how to set number spacing for text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text IWTextRange text = paragraph.AppendText("Numbers to describe tabular number spacing 0123456789"); text.CharacterFormat.FontName = "Calibri"; //Set number spacing text.CharacterFormat.NumberSpacing = NumberSpacingType.Tabular; paragraph = section.AddParagraph(); text = paragraph.AppendText("Numbers to describe proportional number spacing 0123456789"); text.CharacterFormat.FontName = "Calibri"; //Set number spacing text.CharacterFormat.NumberSpacing = NumberSpacingType.Proportional; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text Dim text As IWTextRange = paragraph.AppendText("Numbers to describe tabular number spacing 0123456789") text.CharacterFormat.FontName = "Calibri" 'Set number spacing text.CharacterFormat.NumberSpacing = NumberSpacingType.Tabular paragraph = section.AddParagraph() text = paragraph.AppendText("Numbers to describe proportional number spacing 0123456789") text.CharacterFormat.FontName = "Calibri" 'Set number spacing text.CharacterFormat.NumberSpacing = NumberSpacingType.Proportional 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the stylistic set type(defines the look of the text, based on the font used) for the text. The member that specifies the type of stylistic set. The following example illustrates how to set number spacing for text. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text IWTextRange text = paragraph.AppendText("Text to describe stylistic sets"); text.CharacterFormat.FontName = "Gabriola"; //Set stylistic set text.CharacterFormat.StylisticSet = StylisticSetType.StylisticSet06; paragraph = section.AddParagraph(); //Add new text text = paragraph.AppendText("Text to describe stylistic sets"); text.CharacterFormat.FontName = "Gabriola"; //Set stylistic set text.CharacterFormat.StylisticSet = StylisticSetType.StylisticSet15; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text Dim text As IWTextRange = paragraph.AppendText("Text to describe stylistic sets") text.CharacterFormat.FontName = "Gabriola" 'Set stylistic set text.CharacterFormat.StylisticSet = StylisticSetType.StylisticSet06 paragraph = section.AddParagraph() 'Add new text text = paragraph.AppendText("Text to describe stylistic sets") text.CharacterFormat.FontName = "Gabriola" 'Set stylistic set text.CharacterFormat.StylisticSet = StylisticSetType.StylisticSet15 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Returns the list of keys used for revisions East asian layout structure Determines whether [has combine brackets type]. Updates the cfe layout. The ufel. The iFElayout identifier. Represent a comment properties. Text position of the comment. Initializes a new instance of the class. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Creates a new object that is a copy of the current instance. A new object that is a copy of this instance. Determines whether the comment exists or not. Gets or sets the user initials. The user initials. Gets or sets the user. The user. Gets/sets the text position of the comment. The position. Class which provides WCommentFormat class with random tag bookmark id. Contains changed IDs and values they where change on. Contains the comment ids, which can't be changed Contains the old id(s) and the new id(s) Gets the id for comment marker. The current id. if set to true create new id. Determines whether the new id is valid. The new id. if it specifies a valid id, set to true. Gets the marker id. The current id. if it creates new id, set to true. Gets the instance of Random class. The instance. Gets the collection of ids and new ids they were changed on. Gets the collection of ids and new ids they were changed on. Gets the collection of ids and new ids they were changed on. Represents the list formatting options. Currently used list style Current level number Initializes a new instance of the class with the specified instance. The owner entity of the current list format. Initializes a new instance of the class with the specified instance along with paragraph style. instance. The owner paragraph style for the current list format. Initializes a new instance of the class. The doc. The owner. Returns the default values. The integer that specifies the key. An object that specifies the default value. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Update the style and type key to current list format. List style Checks whether the same list style already added to destination document. Destination Word document Current list style New list style Adds the List Style to destination Word document. Destination docuement New Style Clones the list relations. The doc. Imports list format from source to destination. Increase the current level indent. List level must be less 8 and greater then 0 Decrease the current level indent. List level must be less 8 and greater then 0 Continues the list numbering from the previous list. Applies the specified style. A String that represents the name of the style to apply. Apply default bullet style for current list's owner paragraph. Apply default numbered style for current list's owner paragraph. Removes the list from current paragraph. Set the ListType for the Current ListFormat To Clears the list format applied Creates the default list styles based on its type. Compares the list format with current list format The List format Gets or sets current list nesting level. List level must be less 8 and greater then 0 Gets type of the list format. Read-only. Gets or sets a value indicating whether numbering of the list must restart from previous list. True, if the list number must restart from previous list; otherwise, false. Gets the name of custom style. Read-only. Gets current custom list style. Read-only. Gets the current custom list level. Gets or sets the name of the LFO style. The name of the LFO style. Gets the owner paragraph. The owner paragraph. Gets/sets IsListRemoved flag. Gets/sets the value which specifies whether this is empty list. Such situation occurs when style (which doesn't have) list format inherits style which have list. The is empty list. Represents the formatting options of the paragraph in the Word document. The following example illustrates how to apply various paragraph formatting options. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new text to the paragraph paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " + "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images."); //After spacing, back color, borders, contextual spacing paragraph.ParagraphFormat.AfterSpacing = 18f; paragraph.ParagraphFormat.BackColor = Color.LightGray; paragraph.ParagraphFormat.Bidi = true; paragraph.ParagraphFormat.Borders.BorderType = BorderStyle.Dot; paragraph.ParagraphFormat.Borders.Color = Color.Maroon; paragraph.ParagraphFormat.Borders.LineWidth = 0.5f; paragraph.ParagraphFormat.ContextualSpacing = true; paragraph = section.AddParagraph(); paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " + "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images."); //column break, firstline indent, alignment paragraph.ParagraphFormat.ColumnBreakAfter = true; paragraph.ParagraphFormat.FirstLineIndent = 12; paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.JustifyHigh; paragraph = section.AddParagraph(); paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " + "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images."); //Hanging indent, keep, left indent, line spacing, keep follow paragraph.ParagraphFormat.FirstLineIndent = -12; paragraph.ParagraphFormat.Keep = true; paragraph.ParagraphFormat.LeftIndent = 10; paragraph.ParagraphFormat.LineSpacing = 2; paragraph.ParagraphFormat.LineSpacingRule = LineSpacingRule.AtLeast; paragraph.ParagraphFormat.KeepFollow = true; paragraph = section.AddParagraph(); paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " + "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images."); //Mirror indent, outline level, page break paragraph.ParagraphFormat.MirrorIndents = true; paragraph.ParagraphFormat.OutlineLevel = OutlineLevel.Level2; paragraph.ParagraphFormat.PageBreakAfter = true; paragraph = section.AddParagraph(); paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " + "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images."); //Right indent, auto spacing paragraph.ParagraphFormat.RightIndent = 10; paragraph.ParagraphFormat.SpaceAfterAuto = true; paragraph.ParagraphFormat.SpaceBeforeAuto = true; paragraph = section.AddParagraph(); paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " + "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images."); //Auto hyphens, window control, before spacing, page break paragraph.ParagraphFormat.SuppressAutoHyphens = true; paragraph.ParagraphFormat.WidowControl = true; paragraph.ParagraphFormat.BeforeSpacing = 18f; paragraph.ParagraphFormat.PageBreakBefore = true; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new text to the paragraph paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " & "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images.") 'After spacing, back color, borders, contextual spacing paragraph.ParagraphFormat.AfterSpacing = 18.0F paragraph.ParagraphFormat.BackColor = Color.LightGray paragraph.ParagraphFormat.Bidi = True paragraph.ParagraphFormat.Borders.BorderType = BorderStyle.Dot paragraph.ParagraphFormat.Borders.Color = Color.Maroon paragraph.ParagraphFormat.Borders.LineWidth = 0.5F paragraph.ParagraphFormat.ContextualSpacing = True paragraph = section.AddParagraph() paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " & "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images.") 'column break, firstline indent, alignment paragraph.ParagraphFormat.ColumnBreakAfter = True paragraph.ParagraphFormat.FirstLineIndent = 12 paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.JustifyHigh paragraph = section.AddParagraph() paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " & "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images.") 'Hanging indent, keep, left indent, line spacing, keep follow paragraph.ParagraphFormat.FirstLineIndent = -12 paragraph.ParagraphFormat.Keep = True paragraph.ParagraphFormat.LeftIndent = 10 paragraph.ParagraphFormat.LineSpacing = 2 paragraph.ParagraphFormat.LineSpacingRule = LineSpacingRule.AtLeast paragraph.ParagraphFormat.KeepFollow = True paragraph = section.AddParagraph() paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " & "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images.") 'Mirror indent, outline level, page break paragraph.ParagraphFormat.MirrorIndents = True paragraph.ParagraphFormat.OutlineLevel = OutlineLevel.Level2 paragraph.ParagraphFormat.PageBreakAfter = True paragraph = section.AddParagraph() paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " & "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images.") 'Right indent, auto spacing paragraph.ParagraphFormat.RightIndent = 10 paragraph.ParagraphFormat.SpaceAfterAuto = True paragraph.ParagraphFormat.SpaceBeforeAuto = True paragraph = section.AddParagraph() paragraph.AppendText("Paragraphs are the basic elements of the Word document. It can contain text and images. " & "Paragraphs are the basic elements of the Word document. It can contain text and images. Paragraphs are the basic elements of the Word document. It can contain text and images.") 'Auto hyphens, window control, before spacing, page break paragraph.ParagraphFormat.SuppressAutoHyphens = True paragraph.ParagraphFormat.WidowControl = True paragraph.ParagraphFormat.BeforeSpacing = 18.0F paragraph.ParagraphFormat.PageBreakBefore = True 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Initializes a new instance of the class. Initializes a new instance of the class with the specified instance. The instance. Determine whether the paragraph format is have frame properties Determine whether the frame is have Horizontal alignment Determine whether the frame is have Vertical alignment Gets the property value. The prop key. Determines whether the specified option key contains SPRM. The option key. true if the specified option key contains SPRM; otherwise, false. Gets the spacing values of paragraph format from the MS Word specific inheritance hierarchy. The key to get the value. The float that specifies the spacing value. Gets the Paragraph format from the MS Word specific inheritance hierarchy. Sets the property value. The prop key. The value. Changes the tabs. The tabs. Creates the new collection of tabs. Determines whether the specified key contains value. The key. true if the specified key contains value; otherwise, false. Determine whether the Current paragraph is in Same Frame of the previous paragraph Determine whether the Next paragraph is in Same Frame of the current paragraph Determine whether the current paragraph is having a same frame properties Sets the default properties. Checks whether the style is built-in heading style. The style name. True if the style is built-in heading style; otherwise, false. Gests the corresponding outlinelevel value for built-in heading style. The style name. The outlinelevel value for built-in heading style. Ensures the composites. Returns the default values. The integer that specifies the key. An object that specifies the default value. Gets the composite values. The integer that specifies the key. The object. Imports the container. The object. Imports the XML properties. The format. Imports the members. The object. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Registers child objects in XDSL holder. Removes the positioning. Apply base style Closes this instance. Determines whether the specified property key has value. The property key. if the specified property key has value, set to true. Determines whether the specified property is available. Search includes base formats. The property key. true if has value; otherwise, false. Identify the paragraph contain any side of border true if ParagraphFormat contains the any type of border, else flase Gets the alignment for document rendering. Determines whether this instance has shading. if this instance has shading, set to true. Gets the Single Property Modifier Record option value for the specified property. The integer that represents the property key. The integer that represents the SPRM value. Updates the justification. Updates the BiDi value Updates the tabs. Updates the source format. The dest base format. Updates the source formatting. The format. Compares the list format. The format. Updates the nested paragraph formatting. The format. Determines whether [is value defined] [the specified key]. The key. true if [is value defined] [the specified key]; otherwise, false. Removes the value. The key. Clears the paragraph formatting applied Sets the Frame Horizontal Distance From Text Horizontal distance from text Sets the Frame Vertical Distance From Text The vertical distance from text. Sets the Frame postion 'Y' value The frame y position value. Sets the Frame postion 'X' value The frame x position value. Sets the Frame width The frame width. Compares the current paragraph format with another paragraph format The paragraph format Gets or sets a value indicating whether [m_cancel on change]. true if [m_cancel on change]; otherwise, false. Gets or sets a value indicating whether to break lines on word or character level. By default line breaks on word level. true if line breaks on word level; otherwise, false. Gets or sets the value that represents the Absolute Tab of paragraph. Gets or sets the value that represents the paragraph first line indent in character units. Gets or sets the value that represents the paragraph left indent in character units. Gets or sets the value that represents the paragraph right indent in character units. Gets or sets a value indicating whether the paragraph is right-to-left. True if the paragraph is right to left; otherwise, false. Gets the that represents the tabs for the specified paragraph. Read-only. Gets or sets a value indicating whether all lines in the paragraph are to remain on the same page. True if all lines of the paragraph to remain on the same page; otherwise, false. Gets or sets a value indicating whether the paragraph remains on the same page as the paragraph that follows it. True if the current paragraph to remain on the same page as the paragraph that follows it; otherwise, false. Gets or sets a value indicating whether there is a page break before the paragraph. True if a page break is forced before the paragraph; otherwise, false. Gets or sets a value indicating whether there is page break after the paragraph. True if a page break is forced after the paragraph; otherwise, false. Gets or sets a value indicating whether the first and last lines of the paragraph are to remain on the same page as the rest of the paragraph when Word repaginates the document. True if the first and last lines of the paragraph are to remain on the same page; otherwise, false. True, if space is automatically inserted between East Asian text and numbers. True, if space is automatically inserted between East Asian text and Latin text. True, if the paragraph is set to automatically adjust the right indent when a document grid for East Asian characters is defined. Gets or sets the horizontal alignment for the paragraph. The member that specifies the type of alignment. Gets or sets horizontal alignment for the paragraph as in the input file, while opening files that support logical justification (Docx). Gets or sets a float that represents the left indent(in points) for paragraph. Gets or sets the float that represents the right indent for paragraph. Gets or sets a float that represents the first line or hanging indent of the paragraph. The positive value is set to first line indent and negative value is set to hanging indent. Gets or sets the spacing (in points) before the paragraph. The float that specifies the spacing value. Gets or sets the before lines Gets or sets the after lines Gets or sets the spacing (in points) after the paragraph. The float that specifies the spacing value. Gets the collection that represents all the borders for the paragraph. Gets or sets the background color of the paragraph. The for background. Gets or sets the back ground theme color of the paragraph Gets or sets a value indicating whether there is column break after the paragraph. True if the column break is forced after the paragraph; otherwise, false. Gets or sets the line spacing(in points) for the paragraph. Gets or sets line spacing rule of the paragraph. The member that specifies the line spacing rule. Gets or sets a value indicating whether Word automatically sets the amount of spacing before the paragraph. True if spacing before is automatic; otherwise, false. Gets or sets a value indicating whether Word automatically sets the amount of spacing after the paragraph. True if spacing after is automatic; otherwise, false. Gets or sets the outline level for the paragraph. The member that specifies the outline level. Gets or sets a value indicating whether this instance is frame. if this instance is frame, set to true. Gets or sets the frame vertical pos. The frame vertical pos. Gets or sets the frame horizontal pos. The frame horizontal pos. Gets or sets the frame X. The frame X. Gets or sets the frame Y. The frame Y. Gets or sets the frame width The frame Width. Gets or sets the frame Height The frame Height. Gets or sets the frame horizontal distance from text. The frame horizontal distance from text. Gets or sets the frame vertical distance from text. The frame vertical distance from text. Gets or sets a value indicating whether to wrap frame around. The frame wrap mode Gets or sets a value indicating whether to add space between the paragraphs of same style. True if not to have spacing; otherwise, false. Gets or sets the table style paragraph format. The table style paragraph format. Gets or sets a value indicating whether the left and right indents are of same width. True if to have mirror indents; otherwise, false. Gets or sets a value that indicates whether automatic hyphenation of words is enabled or disabled. True if automatic hyphenation of words is enabled; otherwise, false. Gets or sets the vertical alignment of all text on each line. Gets or sets a value indicating whether the paragraph should use the document grid lines per page settings Gets or sets a value indicating the frame of this paragraph can overlap with other frames. Gets or sets the value indicating the text wrapping options for a text box when tight wrapping is set for the text box Gets or sets a value indicating whether the line numbers shall be calculated for lines in the paragraph. Gets or sets a value indicating whether the anchor of the frame which contains this paragraph is locked to its current location. Gets or sets a value indicating whether the paragraph uses East Asian typography and line-breaking rules to determine the valid characters that are allowed to begin and end each line of East Asian text. Gets or set a value indicating whether the punctuation character at the end of the line can extend beyond the end. Gets or set a value indicating that specifies a preference to render punctuation characters at the beginning of a line. Gets or sets the drop cap type. Gets or sets a value for the number of lines to drop. Gets or sets a value indicating the text direction in the frame. To hold the paragraph style name for the old format(To preserve the track changes information properly) Do not use this property for retrieving paragraph style related information. Represents the section formatting. The columns collection. Holds the column collections which exist in SectPrChange. Creates a duplicate copy of the section format. Gets the property value. The property key. The value. sets the property value. The prop key. Returns the default values. The integer that specifies the key. An object that specifies the default value. Gets the default values for composite objects. Compares the current section properties with another section properties The paragraph format Clear the object from the allocated memory. Holds the column collections which exist in SectPrChange. Gets the page setup of the current section. Read-only. The of the current section. Gets or sets section break code of the current section. The member that specifies the break code. Gets the collection of columns which logically divide page on many printing or publishing areas. Read-only. The collection of columns in the section. Gets or sets the text direction. The text direction. Gets a value indicating whether this instance has changed format. if this instance has changed format, set to true. Gets or sets the author name for section formatting. Gets or sets the datetime for section formatting. Represents the formatting properties for the table and row in a Word document. The following example illustrates how to apply table formatting options such as Borders, LeftIndent, Paddings, IsAutoResize, etc. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Open an existing Word document into DocIO instance document.Open("Table.docx", FormatType.Docx); //Access the instance of the first section in the Word document WSection section = document.Sections[0]; //Access the instance of the first table in the section WTable table = section.Tables[0] as WTable; //Specify the title for the table table.Title ="PriceDetails"; //Specify the description of the table table.Description = "This table shows the price details of various fruits"; //Specify the left indent of the table table.IndentFromLeft = 50; //Specify the background color of the table table.TableFormat.BackColor = Color.FromArgb(192, 192, 192); //Specify the horizontal alignment of the table table.TableFormat.HorizontalAlignment = RowAlignment.Left; //Specify the left, right, top and bottom padding of all the cells in the table table.TableFormat.Paddings.All = 10; //Specify the auto resize of table to automatically resize all cell width based on its content table.TableFormat.IsAutoResized = true; //Specify the table top, bottom, left and right border line width table.TableFormat.Borders.LineWidth = 2f; //Specify the table horizontal border line width table.TableFormat.Borders.Horizontal.LineWidth = 2f; //Specify the table vertical border line width table.TableFormat.Borders.Vertical.LineWidth = 2f; //Specify the tables top, bottom, left and right border color table.TableFormat.Borders.Color = Color.Red; //Specify the table Horizontal border color table.TableFormat.Borders.Horizontal.Color = Color.Red; //Specify the table vertical border color table.TableFormat.Borders.Vertical.Color = Color.Red; //Specify the table borders border type table.TableFormat.Borders.BorderType = BorderStyle.Double; //Access the instance of the first row in the table WTableRow row = table.Rows[0]; //Specify the row height row.Height = 20; //Specify the row height type row.HeightType = TableRowHeightType.AtLeast; document.Save("TableFormatting.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Open an existing Word document into DocIO instance document.Open("Table.docx", FormatType.Docx) 'Access the instance of the first section in the Word document Dim section As WSection = document.Sections(0) 'Access the instance of the first table in the section Dim table As WTable = TryCast(section.Tables(0), WTable) 'Specify the title for the table table.Title = "PriceDetails" 'Specify the description of the table table.Description = "This table shows the price details of various fruits" 'Specify the left indent of the table table.IndentFromLeft = 50 'Specify the background color of the table table.TableFormat.BackColor = Color.FromArgb(192, 192, 192) 'Specify the horizontal alignment of the table table.TableFormat.HorizontalAlignment = RowAlignment.Left 'Specify the left, right, top and bottom padding of all the cells in the table table.TableFormat.Paddings.All = 10 'Specify the auto resize of table to automatically resize all cell width based on its content table.TableFormat.IsAutoResized = True 'Specify the table top, bottom, left and right border line width table.TableFormat.Borders.LineWidth = 2.0F 'Specify the table horizontal border line width table.TableFormat.Borders.Horizontal.LineWidth = 2.0F 'Specify the table vertical border line width table.TableFormat.Borders.Vertical.LineWidth = 2.0F 'Specify the tables top, bottom, left and right border color table.TableFormat.Borders.Color = Color.Red 'Specify the table Horizontal border color table.TableFormat.Borders.Horizontal.Color = Color.Red 'Specify the table vertical border color table.TableFormat.Borders.Vertical.Color = Color.Red 'Specify the table borders border type table.TableFormat.Borders.BorderType = BorderStyle.[Double] 'Access the instance of the first row in the table Dim row As WTableRow = table.Rows(0) 'Specify the row height row.Height = 20 'Specify the row height type row.HeightType = TableRowHeightType.AtLeast document.Save("TableFormatting.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. Initializes a new instance of the class with the specified instance. The doc. Gets the cell spacing value Gets the grid count. The index. Gets the index of the offset. The table grid. The offset. Gets the cell offset. The index. Gets the text wrap around. Sets the text wrap around. if set to true [value]. Clears the absolute position. Gets the property value. The property key. Sets the property value. The property key. The value. Determines whether this instance has SPRMS. if this instance has SPRMS, set to true. Gets table indent. Determines whether the specified property key has value. The property key. if the specified property key has value, set to true. Returns the Single Property Modifier Record option value for the specified property. The integer that represents the property key. The integer that represents the SPRM value. Removes the changes. Updates the row grid before/after width. The row. The grid span. if set to true [is after width]. Clears the preferred width properties for Autofit. To Compare RowFormats of two objects and return true if equal else false. Apply base style Ensures the composites. Returns the composite values. The integer that specifies the key. The object. Returns the default values. The integer that specifies the key. An object that specifies the default value. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Registers child objects in XDSL holder. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Occurs on format change. The object. The integer that represents the property key. Removes the sprms specific to first row. Imports the container. The object. Imports the XML properties. The format. Imports the members. The object. Removes the positioning. Closes this instance. Checks the default padding. Gets or sets the preferred width of the table. The preferred width of the table. Get grid before width Get grid after width Gets or sets Grid Before Gets or sets GridAfter Gets or sets Hidden property of the row Gets or sets background color for the table or table row. The for the background of table or row. When the table has no background color, the background color of the first row will be applied to the entire table. Gets or sets foreground color for the table or table row. Gets or sets the texture style. The texture style. Gets the borders for the table or table row. Read-only The for the table or row. The borders specified for the first row in the table will be applied to the entire table when the table has no borders. Gets the for the table. Read-only. The instance that specifies the cell padding values for the entire table. Gets or sets spacing value between the cells in the table or table row. The float that specifies the spacing value. Gets or sets the value for table left indent. The float that specifies the left indent value. Gets or sets the value indicating whether the table is auto resized based on contents. True if automatically resize to fit contents; otherwise false. Gets or sets the value indicating whether the row can break across pages. True if the row can break across pages; otherwise, false. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument("Template.docx"); WSection section = document.Sections[0]; WTable table = section.Tables[0] as WTable; //Disable breaking across pages for all rows in the table. foreach (WTableRow row in table.Rows) row.RowFormat.IsBreakAcrossPages = false; document.Save("Result.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument("Template.docx") Dim section As WSection = document.Sections(0) Dim table As WTable = TryCast(section.Tables(0), WTable) 'Disable breaking across pages for all rows in the table. For Each row As WTableRow In table.Rows row.RowFormat.IsBreakAcrossPages = False Next document.Save("Result.docx", FormatType.Docx) document.Close() End Sub Gets or sets whether the row is a table header. Gets or sets a value indicating whether the table is a right to left table. True if the table is right to left table; otherwise, false. Gets or sets horizontal alignment for the table. The member that specifies the horizontal alignment for table. Gets or sets the value determines whether the Default padding values need to be skipped from Writing in DOC format. Gets the owner table. The owner table. Gets or sets the row height. The height. Gets a value indicating whether cancel on change event. true if cancel on change event; otherwise, false. Gets or sets a value indicating whether to use Around text wrapping. True if wrap table around text; otherwise, false. Gets the positioning values of the table when the text wrapping type is around. Read-only. The object that specifies the absolute position of the table. Gets or sets the flag when left indent defined To hold the table style name for the old format(To preserve the track changes information properly) Do not use this property for retrieving table style related information. Represents the functionalities to absolute position a table when it has text wrap type as around. The following code example demonstrates how to set the absolute position to a table in the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create an instance of WordDocument class (Empty Word Document) WordDocument document = new WordDocument(); //Open an existing Word document into DocIO instance document.Open("Table.docx", FormatType.Docx); //Access the instance of the first section in the Word document WSection section = document.Sections[0]; //Access the instance of the first table in the section WTable table = section.Tables[0] as WTable; //Specify the table positioning options table.TableFormat.Positioning.HorizPositionAbs = HorizontalPosition.Right; table.TableFormat.Positioning.HorizRelationTo = HorizontalRelation.Margin; table.TableFormat.Positioning.VertPositionAbs = VerticalPosition.Center; table.TableFormat.Positioning.VertRelationTo = VerticalRelation.Page; table.TableFormat.Positioning.DistanceFromBottom = 10; table.TableFormat.Positioning.DistanceFromLeft = 10; table.TableFormat.Positioning.DistanceFromRight = 10; table.TableFormat.Positioning.DistanceFromTop = 10; //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create an instance of WordDocument class (Empty Word Document) Dim document As New WordDocument() 'Open an existing Word document into DocIO instance document.Open("Table.docx", FormatType.Docx) 'Access the instance of the first section in the Word document Dim section As WSection = document.Sections(0) 'Access the instance of the first table in the section Dim table As WTable = TryCast(section.Tables(0), WTable) 'Specify the table positioning options table.TableFormat.Positioning.HorizPositionAbs = HorizontalPosition.Right table.TableFormat.Positioning.HorizRelationTo = HorizontalRelation.Margin table.TableFormat.Positioning.VertPositionAbs = VerticalPosition.Center table.TableFormat.Positioning.VertRelationTo = VerticalRelation.Page table.TableFormat.Positioning.DistanceFromBottom = 10 table.TableFormat.Positioning.DistanceFromLeft = 10 table.TableFormat.Positioning.DistanceFromRight = 10 table.TableFormat.Positioning.DistanceFromTop = 10 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class. The owner row format. Gets the property value. The property key. Sets the property value. The property key. The value. Returns the default values. The integer that specifies the key. An object that specifies the default value. Comparing the table postioning properties of two objects Gets or sets a value indicating whether allow table to overlap]. true if allow table to overlap; otherwise, false. Gets or sets the absolute horizontal position for the table. The member that specifies the position. Gets or sets the absolute vertical position for the table. The member that specifies the position. Gets or sets the horizontal position for the table. The float that specifies the vertical position. Gets or sets the vertical position for the table. The float that specifies the vertical position. Gets or sets the horizontal relation of the table. Gets or sets the vertical relation of the table. Gets or sets the distance between the table and the text above the table . The float that specifies the distance from the top. Gets or sets the distance between the table and the text below the table. The float that specifies the distance from the bottom. Gets or sets the distance between the table and the text to the left of table. The float that specifies the distance from the left. Gets or sets the distance between the table and the text to the right of table. The float that specifies the distance from the right. Specifies the preferred width information Closes the item. Initializes a new instance of the class. The owner format. The key. Gets or sets Preferred width value Gets or sets Preferred width type Represents the formatting options of the text box such as colors and lines, size, etc. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Append new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 75); //Add new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); //Set fill color, line width, line dashing and line style for textbox textbox.TextBoxFormat.FillColor = Color.LightGreen; textbox.TextBoxFormat.LineWidth = 2; textbox.TextBoxFormat.LineDashing = LineDashing.Dash; textbox.TextBoxFormat.LineStyle = TextBoxLineStyle.Double; //Apply textbox text direction textbox.TextBoxFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.VerticalTopToBottom; //Set text wrapping style and type textbox.TextBoxFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText; textbox.TextBoxFormat.TextWrappingType = TextWrappingType.Right; //Set horizontal and vertical position textbox.TextBoxFormat.HorizontalPosition = 200; textbox.TextBoxFormat.VerticalPosition = 200; //Set horizontal and vertical origin textbox.TextBoxFormat.VerticalOrigin = VerticalOrigin.Margin; textbox.TextBoxFormat.HorizontalOrigin = HorizontalOrigin.Page; //Set top and bottom margin values textbox.TextBoxFormat.InternalMargin.Bottom = 5f; textbox.TextBoxFormat.InternalMargin.Top = 5f; //Set horizontal and vertical alignment textbox.TextBoxFormat.VerticalAlignment = ShapeVerticalAlignment.Bottom; textbox.TextBoxFormat.HorizontalAlignment = ShapeHorizontalAlignment.Center; //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Append new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 75) 'Add new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph() textboxParagraph.AppendText("Text inside text box") 'Set fill color, line width, line dashing and line style for textbox textbox.TextBoxFormat.FillColor = Color.LightGreen textbox.TextBoxFormat.LineWidth = 2 textbox.TextBoxFormat.LineDashing = LineDashing.Dash textbox.TextBoxFormat.LineStyle = TextBoxLineStyle.[Double] 'Apply textbox text direction textbox.TextBoxFormat.TextDirection = Syncfusion.DocIO.DLS.TextDirection.VerticalTopToBottom 'Set text wrapping style and type textbox.TextBoxFormat.TextWrappingStyle = TextWrappingStyle.InFrontOfText textbox.TextBoxFormat.TextWrappingType = TextWrappingType.Right 'Set horizontal and vertical position textbox.TextBoxFormat.HorizontalPosition = 200 textbox.TextBoxFormat.VerticalPosition = 200 'Set horizontal and vertical origin textbox.TextBoxFormat.VerticalOrigin = VerticalOrigin.Margin textbox.TextBoxFormat.HorizontalOrigin = HorizontalOrigin.Page 'Set top and bottom margin values textbox.TextBoxFormat.InternalMargin.Bottom = 5.0F textbox.TextBoxFormat.InternalMargin.Top = 5.0F 'Set horizontal and vertical alignment textbox.TextBoxFormat.VerticalAlignment = ShapeVerticalAlignment.Bottom textbox.TextBoxFormat.HorizontalAlignment = ShapeHorizontalAlignment.Center 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub TextBoxFormat class members Initializes a new instance of the class with the specified instance. The instance. Clears the textbox format applied Returns the default text box values. The integer that specifies the key. Null (don't use keys ). Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Sets the property value. The prop key. The value. Closes this instance. Creates a duplicate copy of the text box format object. The reference to the newly created object. Clones the relations. The doc. Compares the current text box format with another text box format. Gets the properties text for Word comparison Updates the fill effects. The container. The doc. Sets the TextWrappingStyle,specific for parsers. TextWrapStyle Gets or sets a value indicate whether current wrapping bounds points added to the list or not. true if this instance is wrapping bounds added; otherwise, false. Gets or sets the horizontal width origin value. The member that specifies the width origin value. Gets or sets the vertical height origin value. The member that specifies the height origin value. Gets or sets the horizontal origin of the text box. The member that specifies the horizontal origin value. Gets or sets the vertical origin of the text box. The member that specifies the vertical origin value. Gets or sets the text Wrapping style of the text box. The member that specifies the text wrapping style. DistanceBottom Returns or sets the distance (in points) between the document text and the bottom edge of the text-free area surrounding the specified shape. Read/write Single. DistanceLeft Returns or sets the distance (in points) between the document text and the left edge of the text-free area surrounding the specified shape. Read/write Single. DistanceRight Returns or sets the distance (in points) between the document text and the right edge of the text-free area surrounding the specified shape. Read/write Single. DistanceTop Returns or sets the distance (in points) between the document text and the top edge of the text-free area surrounding the specified shape. Read/write Single. Gets or sets the fill color for the text box. The that specifies the fill color. Gets or sets the line style for the text box. The member that specifies the line style. Gets or sets the width(in points) of the text box. The float that specifies the width. Gets or sets the height(in points) of the text box. The float that specifies the height. Gets or sets the line color of the text box. The that specifies the line color. Gets or sets a value indicating whether the textbox has no line around its shape. True if the textbox has no line; otherwise, false. Gets or sets textbox wrapping mode Gets or sets the horizontal position of the text box. The float specifies the horizontal position. Gets or sets true/false value of IsBelowText property Gets or sets the vertical position of the text box. The float specifies the vertical position. Gets or sets the text wrapping type for the text box. The member that specifies the wrapping type. Gets or sets texbox's shape identifier Gets or sets the line width of the text box. The float that specifies the line width. Gets or sets the line dashing style for the text box. The member that specifies the line dashing style. Gets or sets the horizontal alignment of the text box. member that specifies the horizontal alignment. If the alignment is set as None, then the text box is explicitly positioned using position properties. Otherwise it is positioned according to the alignment specified. The position of the object is relative to . Gets or sets the vertical alignment of the text box. member that specifies the vertical alignment. If the alignment is set as None, then the text box is explicitly positioned using position properties. Otherwise it is positioned according to the alignment specified. The position of the object is relative to . Gets or sets vertical alignment of the text in textbox. The member that specifies the text vertical alignment. Vertical text alignment for textbox is applicable for DOCX format only. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Appends new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 50); //Adds new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); //Sets vertical alignment of the text textbox.TextBoxFormat.TextVerticalAlignment = VerticalAlignment.Bottom; //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Creates a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Appends new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 50) 'Adds new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph() textboxParagraph.AppendText("Text inside text box") 'Sets vertical alignment of the text textbox.TextBoxFormat.TextVerticalAlignment = VerticalAlignment.Bottom 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets textbox identifier; Gets the internal margin for the text box. The instance that specifies the margin values. Gets or sets the textbox rotation in degree. The float that specifies the rotation value of the textbox. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. The following code example demonstrates how to gets or sets the rotation value of textbox in degree. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Appends new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 75); //Adds new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); //Sets textbox rotation in degree textbox.TextBoxFormat.Rotation = 90; //Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph 'Appends new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 75) 'Adds new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph textboxParagraph.AppendText("Text inside text box") 'Sets textbox rotation in degree textbox.TextBoxFormat.Rotation = 90 'Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets a Horizontal flipping of TextBox. true indicates that a textbox has been flipped horizontally; otherwise, false. This property returns True if the specified textbox is flipped around the horizontal axis, and False if not. The following code example demonstrates how to gets or sets the horizontal flip to textbox. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Appends new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 75); //Adds new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); //Sets horizontal flip to the textbox textbox.TextBoxFormat.FlipHorizontal = true; //Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph 'Appends new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 75) 'Adds new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph textboxParagraph.AppendText("Text inside text box") 'Sets horizontal flip to the textbox textbox.TextBoxFormat.FlipHorizontal = True 'Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets a Vertical flipping of TextBox. true indicates that a textbox has been flipped vertically; otherwise, false. This property returns True if the specified textbox is flipped around the vertical axis, and False if not. The following code example demonstrates how to gets or sets the vertical flip to textbox. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Appends new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 75); //Adds new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); //Sets vertical flip to the textbox textbox.TextBoxFormat.FlipVertical = true; //Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Creates a new Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph 'Appends new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 75) 'Adds new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph textboxParagraph.AppendText("Text inside text box") 'Sets vertical flip to the textbox textbox.TextBoxFormat.FlipVertical = True 'Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets the background fill effects of the text box. The instance that specifies the fill effects. Gets or sets a value indicating whether allow textbox in cell. if allow in cell, set to true. Gets or sets the index of the order. The index of the order. Gets the docx style properties. The docx style props. Gets a value indicating whether this instance has docx props. if this instance has docx props, set to true. Gets or set a value indicating whether the TextBox is sized automatically based on the contents. True, if resize text box to fit the contents; otherwise false. The default value is false. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Appends new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 50); //Adds new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box text inside text box text inside text box."); //Resize the textbox based on its contents textbox.TextBoxFormat.AutoFit = true; //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Creates a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Appends new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 50) 'Adds new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph() textboxParagraph.AppendText("Text inside text box text inside text box text inside text box.") 'Resize the textbox based on its contents textbox.TextBoxFormat.AutoFit = True 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets the width relative percent. The width relative percent. Gets or sets the height relative percent. The height relative percent. Gets or sets the horizontal relative percent. The horizontal relative percent. Gets or sets the vertical relative percent. The vertical relative percent. Gets or sets the text direction for the text box. The member that specifies the text direction type. Gets/sets Text Theme color. Gets or sets a value indicating whether this textbox can overlap other textboxes. True, if allow textbox to overlap other textboxes; otherwise false. The default value is true. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Appends new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 50); //Adds new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box text inside text box text inside text box."); //Allow the textbox to overlap other textboxes textbox.TextBoxFormat.AllowOverlap = true; //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Creates a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Appends new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 50) 'Adds new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph() textboxParagraph.AppendText("Text inside text box text inside text box text inside text box.") 'Allow the textbox to overlap other textboxes textbox.TextBoxFormat.AllowOverlap = True 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets the wrap polygon. The wrap polygon. Gets the additional docx properties. The docx props. Gets or Sets the path Gets or sets the Coordinate size of the shape or chart. The for the shape or chart. Gets or sets the Coordinate X Origin of the shape or chart. The for the shape or chart. Gets or sets the Coordinate Y Origin of the shape or chart. The for the shape or chart. Gets a VML Path points to draw. Represents the internal margin for the text box. Member to hold the collection of properties values and its keys. Initializes a new instance of the class. Returns the value indicating whether the key exists in the properties collection. The integer that specifies the key. True if the specified key is present, otherwise false. Sets the property value. The prop key. The value. Set the default internal margins for shape and textbox when creating using DocIO in scratch. Clones this instance. Compares the current internal margin with another internal margin of another document. Gets the properties text for Word comparison Gets or sets the internal left margin (in points). The float that specifies the internal left margin. Gets or sets the internal right margin (in points). The float that specifies the internal right margin. Gets or sets the internal top margin (in points). The float that specifies the internal top margin. Gets or sets the internal bottom margin (in points). The float that specifies the internal bottom margin. Gets or sets the value for the property with specified key. The key for the property. An object with the specific key. Properties Collection Initializes a new instance of the class. Copy source wrapformat to destination wrapformat Compare the properties of source wrapformat with destination wrapformat True, if the list matches, else false Gets the WrapPolygon text for Word comparison Gets or sets a value indicating whether this is edited. true if edited; otherwise, false. Gets or sets the vertices. The vertices. Represents the implementation to get the instance. Initializes the object. The object. Registers the specified converter. The object. Summary description for XmlTableFormat. Initializes a new instance of the class. The owner. Clones the specified owner table. The owner table. Closes this instance. Gets the node array with unparsed table properties. The node array. Gets or sets the name of the table style. The name of the style. Gets the format. The format. Gets a value indicating whether this instance has format. if this instance has format, set to true. Gets the owner. The owner. Represents a collection of objects. Gets the at the specified index. The zero-based index of the Word document to get The at the specified index The index is not valid index in the Represents a block content control in the Word document. Gets the content control properties. Read-only. The object that specifies the content control properties. The following example illustrates how to set the properties for content control. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); IBlockContentControl control = section.Body.AddBlockContentControl(ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText("Block content control"); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control"; //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("Block content control") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control" 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets the character format of the content control. Read-only. The object that specifies the character format. Gets the block control text body. Read-only. The following example illustrates how to get the text body of the content control. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); IBlockContentControl control = section.Body.AddBlockContentControl(ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText("Block content control"); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("Block content control") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Represents a inline content control in the Word document. Gets the content control properties. Read-only. The object that specifies the content control properties. The following example illustrates how to set the properties for content control. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Adds new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as IInlineContentControl).ParagraphItems.Add(textRange); IInlineContentControl richTextControl = paragraph.Items.LastItem as IInlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Adds new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, IInlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As IInlineContentControl = TryCast(paragraph.Items.LastItem, IInlineContentControl) richTextControl.ParagraphItems.Add(textRange) ' Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets the character format of the content control. Read-only. The object that specifies the character format. Gets the content control items. Read-only. The of the current control. The following example illustrates how to get the paragraph items of the current inline content control. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Adds new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as IInlineContentControl).ParagraphItems.Add(textRange); IInlineContentControl richTextControl = paragraph.Items.LastItem as IInlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Adds new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, IInlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As IInlineContentControl = TryCast(paragraph.Items.LastItem, IInlineContentControl) richTextControl.ParagraphItems.Add(textRange) ' Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Represents a field. Represents the text in the Word document. Applies the specified character format to the text. The to be applied to the text. The following example illustrates how to add a text to the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); document.EnsureMinimal(); //Add new text IWTextRange text = document.LastParagraph.AppendText("Hello world"); //Initialize character format WCharacterFormat characterformat = new WCharacterFormat(document); characterformat.Bold = true; characterformat.Italic = true; characterformat.TextColor = Color.Blue; //Apply character format text.ApplyCharacterFormat(characterformat); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() document.EnsureMinimal() 'Add new text Dim text As IWTextRange = document.LastParagraph.AppendText("Hello world") 'Initialize character format Dim characterformat As New WCharacterFormat(document) characterformat.Bold = True characterformat.Italic = True characterformat.TextColor = Color.Blue 'Apply character format text.ApplyCharacterFormat(characterformat) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the text. Gets the character format(font properties) of the text. Read-only. Updates the field result for this . Essential DocIO currently support the updating of field result for the following field types only: = (formula field) DATE TIME DOCVARIABLE DOCPROPERTY COMPARE IF NEXTIF MERGEREC MERGESEQ SECTION NUMPAGES TITLE Cross-Reference Also while updating of NUMPAGES field and Cross Reference field with Page number and Paragraph number options are not supported in Silverlight, WinRT, Universal, Windows Phone and Xamarin applications. Currently group shapes, drawing canvas, and table auto resizing are not supported in Word to PDF lay outing, and this may lead to update incorrect page number and total number of pages. Replaces the field with its most recent result. When you unlink a field, its current result is converted to text or a graphic and can no longer be updated automatically. Note that the fields such as XE (Index Entry) fields and SEQ (Sequence) fields cannot be unlinked. Gets or sets the text format field switch that defines how to display field results. Gets or sets field type. the represents the type of the field. Gets or sets the field code. The field code information used to evaluate the resultant value of the field. Represents a mail merge field. Gets or sets mail merge field name. Gets or sets the text that is displayed before the merge field. Gets or sets the text that is displayed after the merge field. Gets the prefix of merge field. Read-only. Gets the number format of the merge field. Read-only. Gets the date format of the merge field. Read-only. Represents a picture in a word document. Loads the image from the specified instance. The instance. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Initialize new picture WPicture picture = new WPicture(document); //Load image from the file picture.LoadImage(Image.FromFile("Image.png")); //Set width and height picture.Height = 100; picture.Width = 150; //Add picture to the paragraph paragraph.Items.Add(picture); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Initialize new picture Dim picture As New WPicture(document) 'Load image from the file picture.LoadImage(Image.FromFile("Image.png")) 'Set width and height picture.Height = 100 picture.Width = 150 'Add picture to the paragraph paragraph.Items.Add(picture) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Loads the image from the specified byte array. The byte array that specifies the image as bytes. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Get the image and convert to byte array Image image = Image.FromFile("Image.png"); MemoryStream imageStream = new MemoryStream(); image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = imageStream.ToArray(); //Initialize new picture WPicture picture = new WPicture(document); //Load image from the byte array picture.LoadImage(imageBytes); //Set width and height picture.Height = 100; picture.Width = 150; //Add picture to the paragraph paragraph.Items.Add(picture); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Get the image and convert to byte array Dim image__1 As Image = Image.FromFile("Image.png") Dim imageStream As New MemoryStream() image__1.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes As Byte() = imageStream.ToArray() 'Initialize new picture Dim picture As New WPicture(document) 'Load image from the byte array picture.LoadImage(imageBytes) 'Set width and height picture.Height = 100 picture.Width = 150 'Add picture to the paragraph paragraph.Items.Add(picture) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Get the SVG image as byte array. byte[] imageBytes = File.ReadAllBytes("Image.png"); //Get the SVG image as byte array. byte[] svgData = File.ReadAllBytes("Image.svg"); //Initialize new picture WPicture picture = new WPicture(document); //Load both fallback and SVG image from the byte array picture.LoadImage(svgData, imageBytes); //Set width and height picture.Height = 100; picture.Width = 150; //Add picture to the paragraph paragraph.Items.Add(picture); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Get the image byte array Dim imageBytes As Byte() = File.ReadAllBytes("Image.png") 'Get the SVG image as byte array. Dim svgData As Byte() = File.ReadAllBytes("Image.svg") 'Initialize new picture Dim picture As New WPicture(document) 'Load both fallback and SVG image from the byte array picture.LoadImage(svgData, imageBytes) 'Set width and height picture.Height = 100 picture.Width = 150 'Add picture to the paragraph paragraph.Items.Add(picture) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() Adds caption for the current picture with specified name, caption format and caption position. The string that specifies the name. The member that specifies the format for caption numbering. The member that specifies the position of caption. The paragraph instance with the specified caption. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("This paragraph has picture. "); //Append new picture to the paragraph IWPicture picture = paragraph.AppendPicture(Image.FromFile("Image.png")); //Set width and height for the paragraph picture.Width = 150; picture.Height = 100; //Set caption for picture picture.AddCaption("Figure 1.1", CaptionNumberingFormat.Number, CaptionPosition.AboveImage); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("This paragraph has picture. ") 'Append new picture to the paragraph Dim picture As IWPicture = paragraph.AppendPicture(Image.FromFile("Image.png")) 'Set width and height for the paragraph picture.Width = 150 picture.Height = 100 'Set caption for picture picture.AddCaption("Figure 1.1", CaptionNumberingFormat.Number, CaptionPosition.AboveImage) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Gets or sets the picture height in points The float that specifies the height. Gets or sets the picture width in points. The float that specifies the width. Gets or sets the picture height scale factor in percent. The float that specifies the height scale factor. Gets or sets the picture width scale factor in percent. The float that specifies the width scale factor. Gets or sets the picture rotation in degree. The float that specifies the rotation value of the picture. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Gets or sets a Horizontal flipping of Picture. true indicates that a picture has been flipped horizontally; otherwise, false. This property returns True if the specified picture is flipped around the horizontal axis, and False if not. The following code example demonstrates how to gets or sets the horizontal flip to picture. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new text to the paragraph IWParagraph paragraph = section.AddParagraph(); //Gets the image and convert to byte array Image image = Image.FromFile("Image.png"); MemoryStream imageStream = new MemoryStream(); image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = imageStream.ToArray(); //Initializes new picture WPicture picture = new WPicture(document); //Loads an image from the byte array picture.LoadImage(imageBytes); //Sets height and width for the image picture.Height = 100; picture.Width = 150; //Sets horizontal flip to the picture picture.FlipHorizontal = true; //Adds image to the paragraph paragraph.Items.Add(picture); //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a New Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new text to the paragraph Dim paragraph As IWParagraph = section.AddParagraph 'Gets the image and convert to byte array Dim image As Image = Image.FromFile("Image.png") Dim imageStream As MemoryStream = New MemoryStream image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes() As Byte = imageStream.ToArray 'Initializes new picture Dim picture As WPicture = New WPicture(document) 'Loads an image from the byte array picture.LoadImage(imageBytes) 'Sets height and width for the image picture.Height = 100 picture.Width = 150 'Sets horizontal flip to the picture picture.FlipHorizontal = True 'Adds image to the paragraph paragraph.Items.Add(picture) 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets a Vertical flipping of Picture. true indicates that a picture has been flipped vertically; otherwise, false. This property returns True if the specified picture is flipped around the vertical axis, and False if not. The following code example demonstrates how to gets or sets the vertical flip to picture. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new text to the paragraph IWParagraph paragraph = section.AddParagraph(); //Gets the image and convert to byte array Image image = Image.FromFile("Image.png"); MemoryStream imageStream = new MemoryStream(); image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = imageStream.ToArray(); //Initializes new picture WPicture picture = new WPicture(document); //Loads an image from the byte array picture.LoadImage(imageBytes); //Sets height and width for the image picture.Height = 100; picture.Width = 150; //Sets vertical flip to the picture picture.FlipVertical = true; //Adds image to the paragraph paragraph.Items.Add(picture); //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a New Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new text to the paragraph Dim paragraph As IWParagraph = section.AddParagraph 'Gets the image and convert to byte array Dim image As Image = Image.FromFile("Image.png") Dim imageStream As MemoryStream = New MemoryStream image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes() As Byte = imageStream.ToArray 'Initializes new picture Dim picture As WPicture = New WPicture(document) 'Loads an image from the byte array picture.LoadImage(imageBytes) 'Sets height and width for the image picture.Height = 100 picture.Width = 150 'Sets vertical flip to the picture picture.FlipVertical = True 'Adds image to the paragraph paragraph.Items.Add(picture) 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets the instance that represents the picture. Read-only. The instance. This property is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Gets the SVG image as byte array. Read-only. The array that represents SVG image bytes. Gets the image as byte array. Read-only. The array that represents image bytes. Gets or sets the horizontal origin of the picture. The member that specifies the horizontal origin. Gets or sets the vertical origin of the picture. The member that specifies the vertical origin. Gets or sets absolute horizontal position of the picture in points. The float that specifies the horizontal position. The horizontal position is relative to the . Gets or sets absolute vertical position of the picture in points. The float that specifies the vertical position. The vertical position is relative to the . Gets or sets the text wrapping style of the picture. The member that specifies the text wrapping style. Gets or sets the text wrapping type of the picture. The member that specifies the text wrapping type. Gets or sets a value indicating whether the picture is below the text. True if the picture is below text; otherwise, false. Gets or sets the horizontal alignment of the picture. The member that specifies the horizontal alignment. If the alignment is set as None, then the picture is explicitly positioned using position properties. Otherwise it is positioned according to the alignment specified. The position of the object is relative to . Gets or sets the vertical alignment of the picture. If the alignment is set as None, then the picture is explicitly positioned using position properties. Otherwise it is positioned according to the alignment specified. The position of the object is relative to . Gets or sets the alternate text for the picture. The string that represents the alternate text. Gets or sets the name of the picture. The string that represents the name. Gets or sets the picture title. The string that represents the title. Gets or sets a value indicating whether the picture is visible. True if the picture is visible; otherwise, false. Gets the character format(font properties) of the picture. Read-only. Represents the text box. Gets or sets the name of the text box. The string that represents the name. Gets or sets a value indicating whether this is visible. True if visible; otherwise, false. Gets the child elements of the text box. Read-only. The collection of child elements. Gets the text body of the text box. Read-only. Gets or sets the text box format. Represents the style that can be used to format a characters inside the paragraph. Gets or sets a value indicating whether this instance is primary style. if this instance is primary style, set to true. Gets formatting of characters inside paragraph. Represents the style that can be used to format a Paragraph. Closes this instance. Gets or sets a value indicating whether this instance is primary style. if this instance is primary style, set to true. Gets formatting of paragraph. Gets formatting of characters inside paragraph. Represents the style of the . Gets the paragraph format. The object. Represent a Absolute Tab. Initializes a new instance of the class. Document Get the tab position. Get the tab position relative to margin. Get the tab position relative to indent. Get Base Entity Get cell width the cell width Get left padding of table cell the left padding Get right padding of table cell the right padding Attaches to paragraph. The paragraph. The item pos. Detaches from owner. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Registers child objects in XDSL holder. Closes this instance. Create LayoutInfo Measures self size. Get Absolute Tab position to layout in Doc to PDF conversion Gets absolute position for the absolut tab. Initializing LayoutInfo value to null Gets/sets Character format. Gets the Absolute Tab position. The Absolute Tab position. Gets the type of the entity. The of the current item. Gets or Sets the Absolute Tab alignment. The Absolute Tab alignment. Gets or Sets the Absolute Tab relation. The Absolute Tab relation. Gets or Sets the Absolute Tab Leader. The Absolute Tab Leader. Gets/sets Character format. Represents the end position of the in the document. Initializes a new instance of the class. The doc. Initializes a new instance of the class with the specified and name. The object. The string that represents the name. Closes the item. Sets the name. The name. Attaches to paragraph. Detaches from owner. Creates a duplicate copy of the entity. An object that is newly created. Checks whether any renderable item before the bookmark end in Owner paragraph Returns true, if contains renderable item before bookmark end. Otherwise false Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Creates layout information. Measures the specified Custom Graphics. The Custom Graphics. Gets the type of the entity. The of the current item. Gets the bookmark name. The string that represents the bookmark end name in the document. Gets/sets IsCellGroupBkmk value. Specifies whether the Bookmark is detached (For both cases either cloned or removed from collection) from the Bookmarks collection. Get/Set if the bookmark end is preserved after the Paragraph mark Get/Set if the bookmark end is preserved after the TableCell mark Get/Set if the bookmark end is preserved after the TableRow mark Get/Set if the bookmark end is preserved after the Table mark Gets or sets whether the bookmark end need to serialize in next paragraph. Gets or sets the displacedByCustomXml value for bookmarks end. The DisplacedByCustomXml. This element only has an effect when the custom XML element is block-level(i.e.surrounds an entire paragraph), as in this scenario the logical and physical placement of the annotation and custom XML element can differ. Represents the end position of the in the document. Initializes a new instance of the class. The doc. Initializes a new instance of the class with the specified and name. The object. The string that represents the id. Sets the id. Represents the id. Attaches to paragraph. Detaches from owner. Attach the editable range to the document. Creates a duplicate copy of the entity. An object that is newly created. Closes the item. Creates layout information for Gets the type of the entity. The of the current item. Gets the editable range id. The string that represents the editable range end id in the document. Get/Set if the editable range end is preserved after the Paragraph mark Get/Set if the editabler range end is preserved after the TableCell mark Get/Set if the editable range end is preserved after the TableRow mark Get/Set if the editable range end is preserved after the Table mark Denotes whether it is detached editable range end. Represents the start position of the in the document. Initializes a new instance of the class. The doc. Initializes a new instance of the class with the specified and name. The object. The string that represents the name. Sets the bookmark name. The name. Attaches to paragraph. Detaches from owner. Clones the relations. Creates a duplicate copy of the entity. An object that is newly created. Closes the item. Get the bookmark content in different cells in a single table Bookmark start or bookmark end owner table Bookmark start owner table row index Bookmark end owner table row index Bookmark start owner cell index Bookmark end owner cell index Temporary textbody to store the textbody items Gets the maximum cell count of row in the table Remove bookmark start and end from its owner cell when getting bookmatk content Current table cell to check The WTableCell Get the exact bookmark start and bookmark end cell Current bookmark start owner cell Current bookmark end owner cell Temporary bookmark end cell Bookmark start owner table Bookmark end owner table Current bookmark start Current bookmark end Bookmark start owner row index Bookmark end owner row index Bookmark start owner cell index Bookmark end owner cell index Extends the cell range to get complete merged cell for horizontal merge cells Current bookmark start owner cell Current bookmark end owner cell Bookmark start owner table Bookmark end owner table Bookmark start owner row index Bookmark end owner row index Bookmark start owner cell index Bookmark end owner cell index Determines whether bookmark end is in nested table at the same cell of bookmark start. Represents of Represents of Represents of Represents an index of contains Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Creates layout information. Initializing LayoutInfo value to null Gets the type of the entity. The of the current item. Gets the name of bookmark start. The string that represents the name of bookmark start. Gets or sets IsCellGroupBkmk value. Specifies whether the Bookmark is detached (For both cases either cloned or removed from collection) from the Bookmarks collection. Gets or sets the index of the column where bookmark starts. The column first. Gets or sets the index of the column where bookmarks ends. The column last. Gets or sets the displacedByCustomXml value for bookmarks start. The DisplacedByCustomXml. This element only has an effect when the custom XML element is block-level(i.e.surrounds an entire paragraph), as in this scenario the logical and physical placement of the annotation and custom XML element can differ. Represents the start position of the in the document. Initializes a new instance of the class. The doc. Sets the editable range id. Represents the id of editable range. Attaches to paragraph. Detaches from owner. Clones the relations. Creates a duplicate copy of the entity. An object that is newly created. Closes the item. Creates layout information for Gets the type of the entity. The of the current item. Gets the id of editable range start. The string that represents the id of editable range start. Gets or sets the index of the column where editable range starts. The column first. Gets or sets the index of the column where editable range ends. The column last. Gets or sets the single user for editable range permission. Gets or sets the editor group for editable range permission. Specifies whether the editable range is detached (For both cases either cloned or removed from collection) from the editable ranges collection. Represents breaks in the paragraph, can be a page break, column break or line break. Type of break. Line break text. Initializes a new instance of the class. The object. Initializes a new instance of the class. The object. The member that specifies the break type. Closes the item. Clones itself. An object that represents the cloned copy. Clones the relations. The doc. Attaches to paragraph. The paragraph. The item pos. Detaches from owner. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Registers child objects in XDSL holder. Creates layout information. Determines whether the page break need to be skipped based on given entity owner. Entity true, if present inside TextBox/FootNote/EndNote/Header/Footer Denotes whether break is carraige return Measures self size. Gets the Break text for Word comparison Gets the properties text for Word comparison Compares the current Break with another Break. Gets Html to Doc layout info Gets the type of the entity. The of the current item. Gets the type of the break. The member that specifies the break type. Gets/sets text range of line break. Gets the end pos. The end pos. Represents the Inline Shape Object. Represents the shape object in the Word document. Adds the self. Attaches to paragraph. Creates a duplicate copy of this . The reference of the newly created object. Creates the layout information. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Registers child objects in XDSL holder. Closes this instance. Gets the type of the entity. The of the current item. Get/set FSPA for ShapeObject. Gets/sets ShapeObject's main autoshape collection. Get/set value which defines whenever current autoshape is in header/footer subdocument. Gets or sets a value indicating whether the LayoutInCell property is set for the Shape in the Table cell. Gets shape object's character format. Defines id of OLE container in obeject pool. Unparsed data stream Initializes a new instance of the class with the specified instance. Clones the current item. An object that is cloned copy of current item. Gets the dash style. The border style. The line style. Gets the border style. The dash style. The line style. Converts to inline shape. Converts to shape. Gets the effect extent. Width of the border. The left top. The right bottom. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Closes this instance. Compare the properties of Picture shape True, if all the properties matches, else false Gets the inline shape object text for Word comparison Gets the line gradient. The line gradient. Gets/sets inline shape object's format. Gets/sets IsOLE property Get/set id for OLE container which has image data. Get unparsed data stream Gets or sets the fill effects for the InlineShapeObject. The instance. To maintain a fill for picture Summary description for GradientFill. Initializes a new instance of the class. Clones this instance. Closes this instance. Compares the properties of gradient fill. True, if all the properties matches, else false Gets the gradient fill text for Word comparison Gets or sets a value indicating whether [rotate with shape]. true if [rotate with shape]; otherwise, false. Gets or sets the flip. The flip. Gets the gradient stops. The gradient stops. Gets or sets the linear gradient. The linear gradient. Gets or sets the path gradient. The path gradient. Gets the tile rectangle. The tile rectangle. Gets/Sets the boolean flag when it is empty element The tile rectangle. Summary description for GradientFill. Initializes a new instance of the class. Clones the Tile Rectangle Compare GradientStop Gets the gradient stop text for Word comparison Gets or sets the position. The position. Gets or sets the color. The color. Gets or sets the opacity. The opacity. Summary description for LinearGradient. Initializes a new instance of the class. Clones the Tile Rectangle Compare the properties of linear gradient True, if all the properties matches, else false Gets the linear gradient text for Word comparison Gets or sets the angle. The angle. Gets or sets the flag for 2007 format angle Gets or sets a value indicating whether this is scaled. true if scaled; otherwise, false. Summary description for PathGradient. Initializes a new instance of the class. Clones the Tile Rectangle Compare the properties of path gradient True, if all the properties matches, else false Gets the path gradient text for Word comparison Gets or sets the path shade. The path shade. Gets or sets the bottom offset. The bottom offset. Gets or sets the left offset. The left offset. Gets or sets the right offset. The right offset. Gets or sets the top offset. The top offset. Summary description for TileRectangle. Initializes a new instance of the class. Clones the Tile Rectangle Compare the properties of TileRectange True, if all the properties matches, else false Gets the tile rectangle text for Word comparison Gets or sets the bottom offset. The bottom offset. Gets or sets the left offset. The left offset. Gets or sets the right offset. The right offset. Gets or sets the top offset. The top offset. Gets or sets value when the The top offset. Represents the OLE object in the Word document. Initializes a new instance of the class with the specified instance. The instance. Add the field code as text range. Sets the value for LinkPath property. Path of the file. Parses the object pool. The object pool stream. Update OleObject storage name Parses the OLE part stream. The stream. Parses the streams. The storage. Parses the OLE stream. The stream. Checks the object info stream exists. Add new object info stream if not exists. Creates the OLE obj container. The native data. The data path. Gets the OLE part stream. Is from NativeData Stream Determines whether [is native item]. true if [is native item]; otherwise, false. Writes to storage. The storage. Updates the GUID. The CMP file. The index. Gets the OLE container stream. Updates the ole object properties. Sets the OLE picture. The picture. Sets the type of the OLE. The type. Sets the type of the field. Update Ole object ObjInfo stream with Display as icon data Update Object info Compares the current ole object with the specified ole object. Gets the ole object text for Word comparison Creates layout information. Creates a duplicate copy of the entity. An reference to the newly created object. Adds the self. Attaches to paragraph. The paragraph. The item pos. Detaches itself Clones the relations. The doc. Updates the cloned WOleObject helper entity references. Decides whether current index is valid or not. Index of an item Closes this instance. Initializing LayoutInfo value to null Gets the OLE picture. Read-only. The instance that represents the OLE picture. Gets the type of the entity. Read-only. The of the current item. The that represents the storage container of OLE object. Gets or sets the field. The field. Gets or sets the name of the OLE Object storage. The string that specifies the name of the OLE storage. Gets or sets the link path of the OLE object. The string that specifies the link address. Gets the type of the OLE object. Read-only. The member that specifies the type of the OLE object. Gets or sets the not parsed from docx ole object. The XmlParagraphItem. Gets the type of the OLE object. The type of the OLE object. Gets the type of "Update Method" of the linked OLE object. Type of update method. Gets or sets the type of the OLE object. The string that specifies the type of the OLE object. Gets the native data of embedded OLE object. Read-only. The byte array that specifies the native data. Gets the OLE object. The OLE object. Gets the next OLE object id. The next OLE obj id. Gets the name of file embedded in the package(only if OleType is "Package"). Read-only. The string that represents the file name. Gets a value indicating whether this instance is empty. true if this instance is empty; otherwise, false. Gets the GUID. The GUID. Represent a table of contents in the Word document. The following example illustrates how to add table of contents to a Word document. //Create a new Word document WordDocument document = new WordDocument(); //Add the section into the Word document IWSection section = document.AddSection(); string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Add the paragraph into the created section IWParagraph paragraph = section.AddParagraph(); //Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries paragraph.AppendTOC(1, 3); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("First Chapter"); //Set a build in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add the text into the paragraph section.AddParagraph().AppendText(paraText); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("Second Chapter"); //Set a build in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading2); //Add the text into the paragraph section.AddParagraph().AppendText(paraText); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text into the headings paragraph.AppendText("Third Chapter"); //Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading3); //Add the text into the paragraph. section.AddParagraph().AppendText(paraText); //Update the table of contents document.UpdateTableOfContents(); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add the section into the Word document Dim section As IWSection = document.AddSection() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Add the paragraph into the created section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries paragraph.AppendTOC(1, 3) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("First Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add the text into the paragraph. section.AddParagraph().AppendText(paraText) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("Second Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading2) 'Add the text into the paragraph section.AddParagraph().AppendText(paraText) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text into the headings paragraph.AppendText("Third Chapter") 'Set a build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading3) 'Add the text into the paragraph section.AddParagraph().AppendText(paraText) 'Update the table of contents document.UpdateTableOfContents() 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() Initializes a new instance of the class with the specified instance. The instance. Initializes a new instance of the class with the specified instance and switches. The instance. The string that specifies the formatting string of the TOC field. Sets the style for the TOC level. The level number of the table of contents. The name of the style to apply. The following code illustrates how to set the style for the TOC level. //Create a new Word document WordDocument document = new WordDocument(); //Create a new custom styles Style style = (WParagraphStyle)document.AddParagraphStyle("Mystyle"); style.CharacterFormat.Bold = true; style.CharacterFormat.FontName = "Verdana"; style.CharacterFormat.FontSize = 25; //Add the section into the Word document IWSection section = document.AddSection(); string paraText = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula"; //Add the paragraph into the created section IWParagraph paragraph = section.AddParagraph(); //Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries TableOfContent toc = paragraph.AppendTOC(1, 3); toc.UseHeadingStyles = false; //Set the TOC level style based on which the TOC should be created toc.SetTOCLevelStyle(2, "Mystyle"); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("First Chapter"); //Set the build in heading style paragraph.ApplyStyle("Mystyle"); //Add the text into the paragraph section.AddParagraph().AppendText(paraText); //Add the section into the Word document section = document.AddSection(); //Add the paragraph into the created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("Second Chapter"); //Set the build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading1); //Add the text to the paragraph section.AddParagraph().AppendText(paraText); //Add the section into Word document section = document.AddSection(); //Add a paragraph to created section paragraph = section.AddParagraph(); //Add the text for the headings paragraph.AppendText("Third Chapter"); //Set the build in heading style paragraph.ApplyStyle("Mystyle"); //Add the text to the paragraph section.AddParagraph().AppendText(paraText); //Update the table of contents document.UpdateTableOfContents(); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Create a new custom styles Dim style As Style = DirectCast(document.AddParagraphStyle("Mystyle"), WParagraphStyle) style.CharacterFormat.Bold = True style.CharacterFormat.FontName = "Verdana" style.CharacterFormat.FontSize = 25 'Add the section into the Word document Dim section As IWSection = document.AddSection() Dim paraText As String = "Lorem ipsum dolor sit amet, lacus amet amet ultricies. Quisque mi venenatis morbi libero, orci dis, mi ut et class porta, massa ligula magna enim, aliquam orci vestibulum Turpis facilisis vitae consequat, cum a a,turpis dui consequat massa in dolor per, felis non amet.Auctor eleifend in omnis elit vestibulum, donec non elementum tellus est mauris, id aliquam, at lacus, arcu pretium proin lacus dolor et. Eu tortor, vel ultrices amet dignissim mauris vehicula" 'Add the paragraph into the created section Dim paragraph As IWParagraph = section.AddParagraph() 'Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determine the TOC entries Dim toc As TableOfContent = paragraph.AppendTOC(1, 3) toc.UseHeadingStyles = False 'Set the TOC level style based on which the TOC should be created toc.SetTOCLevelStyle(2, "Mystyle") 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("First Chapter") 'Set the build in heading style paragraph.ApplyStyle("Mystyle") 'Add the text into the paragraph section.AddParagraph().AppendText(paraText) 'Add the section into the Word document section = document.AddSection() 'Add the paragraph into the created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("Second Chapter") 'Set the build in heading style paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add the text to the paragraph section.AddParagraph().AppendText(paraText) 'Add the section into Word document section = document.AddSection() 'Add a paragraph to created section paragraph = section.AddParagraph() 'Add the text for the headings paragraph.AppendText("Third Chapter") 'Set the build in heading style paragraph.ApplyStyle("Mystyle") 'Add the text to the paragraph section.AddParagraph().AppendText(paraText) 'Update the table of contents document.UpdateTableOfContents() 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() Returns the name of the style applied to the specified TOC level. The level number of the table of contents. The name of the style. The following example illustrates how to get the name of the style applied to the TOC level. //Load a Word document WordDocument document = new WordDocument("Template.docx"); WTextBody textBody = document.Sections[0].Body; WParagraph paragraph = textBody.Paragraphs[0]; //Get the TOC item from the paragraph TableOfContent toc = paragraph.ChildEntities[0] as TableOfContent; //Gets the style name for the specified level string styleName = toc.GetTOCLevelStyle(1); WParagraphStyle style = document.Styles.FindByName(styleName) as WParagraphStyle; //Modify the character format of the style style.CharacterFormat.HighlightColor = Color.LightGray; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Load a Word document Dim document As New WordDocument("Template.docx") Dim textBody As WTextBody = document.Sections(0).Body Dim paragraph As WParagraph = textBody.Paragraphs(0) 'Get the TOC item from the paragraph Dim toc As TableOfContent = TryCast(paragraph.ChildEntities(0), TableOfContent) 'Gets the style name for the specified level Dim styleName As String = toc.GetTOCLevelStyle(1) Dim style As WParagraphStyle = TryCast(document.Styles.FindByName(styleName), WParagraphStyle) 'Modify the character format of the style style.CharacterFormat.HighlightColor = Color.LightGray 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Returns the list of styles defined for the specified TOC level. The level number of the table of contents. The collection of styles defined for the specified TOC level. Gets the corresponding key value. Parses the switches. Gets the built-in style. The built-in style. Creates the default styles collection. Updates the formatting string of TOC field. Updates the field code text range with formatting switches. Remove existing field code items. Updates TOC heigher and lower levels. Updates the hyperlinks. Updates the manual line break. Updates the formatting string with UsePageNumbers value. Updates the page number alignment. Updates the use outline levels property in formatting string. Updates the use table entry field property. Updates the header styles. Updates the table of figure Label. Updates the caption label and numbers. Parses the label name. The option string. Parses the heading levels. The option string. Parses the number alignment. The option string. Parses the use field. The option string. Parses the header styles and update the header style level if the level is not specified check whether string contains number Called when [set value]. Called when [get value]. Sets the style for TOC level. The level number. Name of the style. if it is on set property, set to true. Checks the level number. Name of the parameter. The level number. Parses the document. Parses the text body. The text body. Parses the table. The table. Checks whether the paragraph contains with sequence field with caption name. The paragraph. Parses the paragraph. The paragraph. Checks whether the paragraph has outline level The paragraph. True if outline level are present in paragraph; else False Checks and splits the paragraph. The paragraph. Updates the tab characters. The text range. Updates the new line characters. The text range. The split text. Creates the paragraph. The paragraph. The index. Create new paragraph when TOC paragraph has other paragraph items before the TOC field. Check wheteher TOC previous sibling contains only book marks or any other valid items. Removes the updated toc entries. Checks the paragraph style. Name of the style. Return the Toc link style. The paragraph. Gets the TOC level. Name of the style. The paragraph TOC level of the paragarph Inserts the bookmark. The paragraph. The field. The start index. The end index. Inserts the bookmark hyperlink. The paragraph. The field. The bookmark. Creates the hyperlink. The paragraph. The toc paragraph. The text. The bookmark. Creates the hyperlink for field value null Current paragraph TOC paragraph true when is to reference link style, elsefalse List of TOC link styles Append text into toc paragraph Paragraph textrange Paragraph textrange value Paragraph style Toc paragraph To identify the whether text range formatting applied to toc text range or not Current formatting key Current paragraph style Current text range Current text range character style trueif character style or inline character formatting have value and customer paragraph style doesn't have key else false To identify the tab is first or last item in its owner paragraph Current heding paragraph Current tab index trueif the tab is first item or after tab item, thers is no text in its owner paragraph, else false To identify the tab is first or last item in its owner paragraph Start tab index End tab index Owner paragraph trueif the tab is first item or after tab item, thers is no text in its owner paragraph, else false Get the tab stop position for the first occurrence tab in current toc paragraph Current Toc paragraph Get the tab stop position from the paragraph style Tab collection in paragraph style truewhen the tab stop position from style Previous text length Tab stop position Tab stop position Creates the hyper link for link style. The paragraph. The toc paragraph. The toc link styles. Checks whether the font name need to apply for linked character style TOC items. Textrange of the paragraph Textrange character style Gets the index of the toc valid item. The paragraph. Updates the tabs. The paragraph. Checks whether all the tab justification is clear The paragraph style. True if all the tab justification value is clear; else false Gets the tab position. The entity. Creates the TOC paragraph. The level. Generates the name of the bookmark. Updates the page numbers. Updates the list. The paragraph. The toc paragraph. Set to Truewhen the list tab added into the toc paragraph Adds the list value and tab. The paragraph. The toc paragraph. The list value. Set to Truewhen the list tab added into the toc paragraph Creates layout information. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Creates a duplicate copy of the . The reference of the newly created object. Closes this instance. Compare the table of content with another table of content of another document. Gets the TableOfContent string for Word Comparison. Gets or sets the name of the sequence identifier to be used when building a table of figures. The default value is null. The specifying the identifier. 1. This property corresponds to the \c switch of the TOC field. 2. Apart from caption fields of tables, figures, and shapes, it also considers any valid identifier used by a SEQ field. //Create a new Word document. using (WordDocument document = new WordDocument()) { //Add a new section to the document. IWSection section = document.AddSection(); //Add a paragraph to the section. IWParagraph paragraph = section.AddParagraph(); //Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determine the TOC entries. TableOfContent tableOfContent = paragraph.AppendTOC(1, 3); //Set the name of SEQ field identifier for table of figures. tableOfContent.TableOfFiguresLabel = "Figure"; //Add a paragraph to the section. paragraph = section.AddParagraph(); //Add image to the paragraph. FileStream imageStream = new FileStream(@"Image.png", FileMode.Open, FileAccess.ReadWrite); IWPicture picture = paragraph.AppendPicture(imageStream); //Add Image caption. IWParagraph paragraph1 = picture.AddCaption("Figure", CaptionNumberingFormat.Number, CaptionPosition.AfterImage); //Add text to the paragraph. paragraph1.AppendText(" Icon."); //Update the fields in Word document. document.UpdateDocumentFields(); //Update the table of contents. document.UpdateTableOfContents(); //Saves the Word document to MemoryStream. MemoryStream stream = new MemoryStream(); document.Save(stream, FormatType.Docx); } 'Create a new Word document. Dim document As WordDocument = New WordDocument() 'Add a new section to the document. Dim section As IWSection = document.AddSection() 'Add a paragraph to the section. Dim paragraph As IWParagraph = section.AddParagraph() 'Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determine the TOC entries. Dim tableOfContent As TableOfContent = paragraph.AppendTOC(1, 3) 'Set the name of SEQ field identifier for table of figures. tableOfContent.TableOfFiguresLabel = "Figure" 'Add a paragraph to the section. paragraph = section.AddParagraph() 'Add image to the paragraph. Dim imageStream As FileStream = New FileStream("Image.png", FileMode.Open, FileAccess.ReadWrite) Dim picture As IWPicture = paragraph.AppendPicture(imageStream) 'Add Image caption. Dim paragraph1 As IWParagraph = picture.AddCaption("Figure", CaptionNumberingFormat.Number, CaptionPosition.AfterImage) 'Add text to the paragraph. paragraph1.AppendText(" Icon.") 'Update the fields in Word document. document.UpdateDocumentFields() 'Update the table of contents. document.UpdateTableOfContents() 'Save the document. document.Save("Result.docx") document.Close() Gets or sets a value indicating whether to include caption's labels and numbers while building a table of figures based on identifier . The default value is true. true if need to include caption's labels and numbers; otherwise, false. This property corresponds to the \a switch of the TOC field. //Create a new Word document. using (WordDocument document = new WordDocument()) { //Add a new section to the document. IWSection section = document.AddSection(); //Add a paragraph to the section. IWParagraph paragraph = section.AddParagraph(); //Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determine the TOC entries. TableOfContent tableOfContent = paragraph.AppendTOC(1, 3); //Set the name of SEQ field identifier for table of figures. tableOfContent.TableOfFiguresLabel = "Figure"; //Disable the flag, to exclude caption's label and number in TOC entries. tableOfContent.IncludeCaptionLabelsAndNumbers = false; //Add a paragraph to the section. paragraph = section.AddParagraph(); //Add image to the paragraph. FileStream imageStream = new FileStream(@"Image.png", FileMode.Open, FileAccess.ReadWrite); IWPicture picture = paragraph.AppendPicture(imageStream); //Add Image caption. IWParagraph paragraph1 = picture.AddCaption("Figure", CaptionNumberingFormat.Number, CaptionPosition.AfterImage); //Add text to the paragraph. paragraph1.AppendText(" Icon."); //Update the fields in Word document. document.UpdateDocumentFields(); //Update the table of contents. document.UpdateTableOfContents(); //Saves the Word document to MemoryStream. MemoryStream stream = new MemoryStream(); document.Save(stream, FormatType.Docx); } 'Create a new Word document. Dim document As WordDocument = New WordDocument() 'Add a new section to the document. Dim section As IWSection = document.AddSection() 'Add a paragraph to the section. Dim paragraph As IWParagraph = section.AddParagraph() 'Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determine the TOC entries. Dim tableOfContent As TableOfContent = paragraph.AppendTOC(1, 3) 'Set the name of SEQ field identifier for table of figures. tableOfContent.TableOfFiguresLabel = "Figure" 'Disable the flag, to exclude caption's label and number in TOC entries. tableOfContent.IncludeCaptionLabelsAndNumbers = False 'Add a paragraph to the section. paragraph = section.AddParagraph() 'Add image to the paragraph. Dim imageStream As FileStream = New FileStream("Image.png", FileMode.Open, FileAccess.ReadWrite) Dim picture As IWPicture = paragraph.AppendPicture(imageStream) 'Add Image caption. Dim paragraph1 As IWParagraph = picture.AddCaption("Figure", CaptionNumberingFormat.Number, CaptionPosition.AfterImage) 'Add text to the paragraph. paragraph1.AppendText(" Icon.") 'Update the fields in Word document. document.UpdateDocumentFields() 'Update the table of contents. document.UpdateTableOfContents() 'Save the document. document.Save("Result.docx") document.Close() Gets or sets a value indicating whether to use default heading styles. True if it uses heading styles; otherwise false. Gets or sets the ending heading level of the table of contents. The default value is 3. The integer specifying the upper heading level. Gets or sets the starting heading level of the table of contents. The default value is 1. The integer specifying the starting heading level. Gets or sets a value indicating whether to use table entry fields. The default value is false. True if it uses table entry fields; otherwise, false. Gets or sets the table ID. The table ID. Gets or sets a value indicating whether to show page numbers as right aligned. The default value is true. True if to right align page numbers; otherwise, false. Gets or sets a value indicating whether to show page numbers in table of contents. The default value is true. True if to includes page numbers; otherwise, false. Gets or sets a value indicating whether to use hyperlinks for the levels. The default value is true. True if it uses hyperlinks for levels; otherwise false. Gets or sets a value indicating whether to use outline levels. The default value is false. True if it uses outline levels; otherwise false. Gets the type of the entity. The of the current . Gets or sets the formatting string. The formatting string. Gets TOC field Gets the TOC styles. The TOC styles. Gets the list of TOC entry with its corresponding entity. The TOC entry and its corresponding entity. Gets the TOC levels. The TOC levels. Gets the last TOC paragraph. The last TOC paragraph. Gets or sets a value indicating whether [invalid format string]. true if [invalid format string]; otherwise, false. Gets or sets a value indicating whether [formatting parsed]. true if [formatting parsed]; otherwise, false. Gets or sets a value indicating whether to include newline characters in TOC entries. Default value is false. True if it includes newline characters in TOC entries; otherwise, false. //Create a Word document. WordDocument document = new WordDocument(); //Adds the section into the Word document. IWSection section = document.AddSection(); //Adds the paragraph into the created section. IWParagraph tocParagraph = section.AddParagraph(); //Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determine the TOC entries. TableOfContent tableOfContent = tocParagraph.AppendTOC(1, 3); //Enables the property IncludeNewLineCharacters to preserve newline characters in the TableOfContent. tableOfContent.IncludeNewLineCharacters = true; //Adds the paragraph into the section. WParagraph paragraph = section.AddParagraph() as WParagraph; //Adds the text and breaks the headings. paragraph.AppendText("First "); paragraph.AppendBreak(BreakType.LineBreak); paragraph.AppendText("Chapter"); //Sets a built-in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading1); //Adds the text into the new paragraph of the section. section.AddParagraph().AppendText("AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company."); //Updated the table of content. document.UpdateTableOfContents(); //Saves the document. document.Save("Result.docx"); document.Close(); 'Create a Word document. Dim document As WordDocument = New WordDocument() 'Add the section into the Word document. Dim section As IWSection = document.AddSection() 'Add the paragraph into the created section. Dim tocParagraph As IWParagraph = section.AddParagraph() 'Append the TOC field with LowerHeadingLevel and UpperHeadingLevel to determine the TOC entries. Dim tableOfContent As TableOfContent = tocParagraph.AppendTOC(1, 3) 'Enable the property IncludeNewLineCharacters to preserve newline characters in TableOfContent. tableOfContent.IncludeNewLineCharacters = True 'Add the paragraph into the section. Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) 'Add the text and break the headings. paragraph.AppendText("First ") paragraph.AppendBreak(BreakType.LineBreak) paragraph.AppendText("Chapter") 'Set a built-in heading style. paragraph.ApplyStyle(BuiltinStyle.Heading1) 'Add the text into the new paragraph of the section. section.AddParagraph().AppendText("AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company.") 'Updated the table of content. document.UpdateTableOfContents() 'Save the document. document.Save("Result.docx") document.Close() Gets/Sets the Text Size of the TextRange Represents the check box in the Word document. The following code illustrates how to add a new checkbox. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("Gender\t"); //Append new Checkbox WCheckBox checkbox = paragraph.AppendCheckBox(); checkbox.Checked = false; //Set Checkbox size checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; //Set help text checkbox.Help = "Help text"; paragraph.AppendText("Male\t"); checkbox = paragraph.AppendCheckBox(); checkbox.Checked = false; checkbox.CheckBoxSize = 10; checkbox.CalculateOnExit = true; paragraph.AppendText("Female"); //Save the Word document document.Save("Checkbox.docx", FormatType.Docx); //Close the document document.Close(); } Summary description for WFormField. Represents the field in the document. Represents the text in the Word document. Each part of text can have separate formatting. The following example illustrates how to add a text to the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Initialize new text range instance IWTextRange textrange = new WTextRange(document); //Add text and its formatting textrange.Text = "A new text is added"; textrange.CharacterFormat.FontSize = 14; textrange.CharacterFormat.Bold = true; textrange.CharacterFormat.TextColor = Color.Green; //Add text range to the paragraph paragraph.Items.Add(textrange); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Initialize new text range instance Dim textrange As IWTextRange = New WTextRange(document) 'Add text and its formatting textrange.Text = "A new text is added" text.CharacterFormat.FontSize = 14 text.CharacterFormat.Bold = True text.CharacterFormat.TextColor = Color.Green 'Add text range to the paragraph paragraph.Items.Add(textrange) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Represents a Widget with string-like layout. Represents a LEAF Widget that can SPLIT self. Splits the size of the by. The dc. The size. The clientWidth. Represnts an widget which can be measure itself. Measures size of specified string. Measures size of specified string. Offsets to index. The graphics. The offset. The text. The clientWidth. Gets text ascent. Specifies the character range type of text range. Specifies the font script type of text range. To update XML values mapped to Content control Initializes a new instance of the class with the specified instance. The instance. Attaches to paragraph. The paragraph. The item pos. Attaches to paragraph. The paragraph. The item pos. Inserts the text in existing , without removing exisitng. A to insert the text This will insert the text when inserting inline content control in between pragraph, there we need to update the text content to paragraph. Detaches from owner. Creates a duplicate copy of the text. The reference to the newly created instance. Applies the specified character format to the text. The to be applied to the text. The following example illustrates how to add a text to the document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); document.EnsureMinimal(); //Add new text IWTextRange text = document.LastParagraph.AppendText("Hello world"); //Initialize character format WCharacterFormat characterformat = new WCharacterFormat(document); characterformat.Bold = true; characterformat.Italic = true; characterformat.TextColor = Color.Blue; //Apply character format text.ApplyCharacterFormat(characterformat); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() document.EnsureMinimal() 'Add new text Dim text As IWTextRange = document.LastParagraph.AppendText("Hello world") 'Initialize character format Dim characterformat As New WCharacterFormat(document) characterformat.Bold = True characterformat.Italic = True characterformat.TextColor = Color.Blue 'Apply character format text.ApplyCharacterFormat(characterformat) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Split the widgets based on the control characters tab ("\t") and carriage return ("\r") Splits the widget by tab. Closes the item. Splits the widget by paragraph break. Registers child objects in XDSL holder. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Creates layout information. Measure Size of the TextRange Initializing LayoutInfo value to null Get Font of the TextRange or Field Offsets to index. The offset. The text. The clientWidth. Determines current section client width. The clientWidth. Client Width The clientWidth. Determine whether the text range is last item of the paragraph and which have text with empty space Determine whether the space width consider or not. Gets the type of the entity. The of the current item. Gets or sets the text. Get or set the initial Text value. Gets the character format(font properties) of the text. Read-only. Gets or Sets the length of the text. Gets or sets Character Range Type in the widget Gets or sets Font Script Type of the text. Used to represent the FontScriptType of a text, which is exist in WTextRange.Text property. Gets the end pos. The end pos. Defines if text of current text range is safe. Gets a boolean value indicating whether this text range is paragraph mark. true if paragraph mark; otherwise, false. Get or set new textlength. Get or set new end position. Get or set new start position. / Initializes a new instance of the class. The text range. Beginning of Field Mark character: 0x0013. Local reference string for the hyperlink The source field type value (used in case field type is unknown) Preserves the character formatting of field's previous result. Maintain original field for AutoNum fields. Screen tip text for hyperlink Creates a new instance of the class with specified instance. The Word document instance Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Decides whether field code start with Invalid Character. Sets IsSkip as true for field code items which is for TOC and WOleObject. Set Field Type Updates Field code TCEntry,TOA entry,Index Entry ,Ref Doc,FieldPrivate Decides whether the formatting string to be set. Gets the field type from field code. Field code. Set the TextFormat Switch String Set the Local Switch String Sets the screen tip and position switch. The field code. Start index of the switch. The formatting switch. Converts the switches to string. Attaches to paragraph. The paragraph. The item pos. Detaches from owner. Removes items upto Field end in inline content control. Owner paragraph of the field, if it is also in inline content control. Owner paragraph of Field end, if it is also in inline content control. Removes the paragraph child items upto field end Owner paragraph Start item index Flag to check whether Field end is found or not, to remove further items. Removes item from the inline content control. An to remove its inner items. Index value to start removing of items. Flag to check whether Field end is found or not, to remove further items. Clones the relations. Gets the owner textbody. The entity. Clones itself. Returns cloned object. Closes this instance. Gets the field as WSymbol or WTextRange item. A which can be either a if the character code is within the ASCII range (0-255) or a for Unicode characters. Gets the field code of the field. Gets the field code. The field code. Determines whether the field is form field. Removes the field code items. (Begin to Separator or End) Convert the field result to static text during docuent reading. Insert TOC field. Remove the TOC fields when it prserved inside another TOC field. Replace the WField instance with corresponding field type instance. Sets the field type by getting its field code. Ensures IF field expression before converting merge field to static text as a part of mail merge. The merge field to be converted as static text. Finds the field code from text body items. Owner text body. Field separator or end mark owner paragraph. Decide whether the field code is valid or not. Current field code. Get owner section To ensure for the BookmarkStart has been added to the owner document The Bookmark Start used to start removing the merge field collection To ensure for the BookmarkEnd has been added to the owner document The Bookmark end used to stop removing the merge field collection Gets the result character formatting. Updates the list of character formats from Range Items of merge field. Gets result of character format from text range. Text range. Index Count Gets the content of the field. The field. ParagraphItem. Updates the field result for this . Essential DocIO currently support the updating of field result for the following field types only: = (formula field) DATE TIME DOCVARIABLE DOCPROPERTY COMPARE IF NEXTIF MERGEREC MERGESEQ SECTION NUMPAGES TITLE Cross-Reference Also while updating of NUMPAGES field and Cross Reference field with Page number and Paragraph number options are not supported in Silverlight, WinRT, Universal, Windows Phone and Xamarin platforms. Currently group shapes, drawing canvas, and table auto resizing are not supported in Word to PDF lay outing, and this may lead to update incorrect page number and total number of pages. Checks whether the bookmark sequence field update. Clears the internal collection when invoke the field.Update() method from the sample level for seqence field. Update the field result value for sequence field. Gets the sequence field result value. Wheather we need to reset this sequence field based on heading style behavior. Gets the previous paragraph. The paragrph. Gets the previous paragraph is in table. The table. Gets the previous pragraph is in the table cell. Gets the previous paragraph is in the section. Gets the content of the previous paragraph is in SDT. Content of the SDT. Gets the previous sequence field value. Returns the heading level of the style Style Name Heading level Converts the string to its corresponding Integer value updates the unknown or custom fields Gets the AutoNum Field Value. resultText Gets the Seperator code from the FieldCode The Field. Checks wheather the field present inside the Text Body or not. Return true, if field exsists in valid text body, else return false. Updates the SET field. Updates the BookMark for SET fields. BookMark Name. Remove the previous BookMark for SET fields. BookMark Name. Updates the document built in properties. Name of the property. Removes the string format. The field code. if set to true [is having string format]. Update Datefield Get ordinal string for numeric value Ordinal string text Updates the next if field. Updates the section field. Determines whether [is picture switch is in second place]. Updates the number format result. The result. Updates the number format result. The result. True whether to update result text only without updating the field result part. Otherwise False Updates the doc property field. Updates the DocVariable field or MergeField value with text formats applied The text Updates the text format of the field The text The formatting string Updates the text format of the field The text The formatting string Page field has formatting string or not Gets the Caps string The text which need to convert Convert the first letter of each word, splitted based on special character, into Caps The text which need to convert The separator Gets Number format based on invariant culture Changes current culture number format to invariant culture format. Updates the reference field. Checks whether the current field is present inside the bookmark. The bookmark name. True if the current field is present inside the bookmark; otherwise false. Checks whether the current field is present inside the bookmark in the paragraph. Checks whether the current field is present inside the bookmark in the textbody. Checks whether the current field is present inside the bookmark in the table and block content control. Checks whether the current field is present inside the bookmark inside the table. Checks whether the current field is present inside the bookmark after the bookmark start next paragraph in textbody. Checks the text body owner. The bookmark. Updates the Unknown field result. The field result. Updates the reference field result. The field result. Moves the Field end paragraph items to Field result last paragraph. The para. Gets the index of the hierarchical. The entity. Gets the position value. The bookmark. Compares the index of the hierarchical. The value1. The value2. Get the date value Updating custom day value Updating the custom month value Update the custom year value To Get Number from text To Get the number from alphabet string Removes the unwanted text in the begining of the field code Removes the unwanted text in the end of the field code Removes the text. The text. The text to revome. Splits if arguments. Splits the field code. The table start. The text. The condition. Splits the field code. The operators. The arguments. Index of the operator. if set to true [is operator]. The text. The condition. Checks whether there is index found for operator Updates the operators index with modified text. //Updates the operators index as per the modified text Determines whether the specified operators is operator. The operators. The text. The condition. true if the specified operators is operator; otherwise, false. Gets the index of the operator. The collection of Operators The Fieldcode of the field Gets the text in table. The text. The text from table start mark to table end mark Updates the condition. The Text which is the fieldcode after removing the true and false part The index of operator in text The value of operator Checks whether the two operands are equal if operand1 contains wildcard characters. The first operand. The second operand. True if the operands are equal, otherwise false. Checks whether the text has the expected operator Checks operator index are in valid position of text length Updates the compare field. Compares the expression. The operand1. The operand2. The operation. Updates the formula field. Remove the currency symbol from Field code The Field code Checks whether the fieldcode starts with currency symbol Updates the number format. The text. The number format. Check whether number field has valid format. Update the Merge field value based on Number format. Current Number format Field value If switch contains ";" symbol then need to split based on the input value. For positive values first part, for negative values second part. Number format Feild value Format the field value based on the given number format string. Insert the text which preserved before the field number format code. Format the fractional part of the field value based on the number format switch. Format the integral part of the field value based on the number format switch. Remove thousand separator and add the values, when it has invalid structure. Add the list of integer values. Split the field value based on the separator. Split the field value by the group separator. Clear the String builder text. Convert the given string as integer Return true if switch start with double quotes Check whether Number format has valid structure or not. Split the number format by decimal separator. Removes the merge format. The text. Removes the merge format. The field code. The number format Updates the formula. The field code. Updates the function. The field code. Calulates the product of specified operands. The operands. Calulates the sum of specified operands. The operands. Calulates the average of specified operands. The operands. Rounds of the operand to specified decimal point. The operand. The decimal point. Checks whether the specified operand is numeric value. The operand. Determines whether the specified text is function. The text. true if the specified text is function; otherwise, false. Determines whether the specified text is expression. The text. true if the specified text is expression; otherwise, false. Updates the expression. The text. Evaluates the expression. The expression. The operation. Splits the expression. The text. The operators. Splits the operands. The text. Replaces the field with its most recent result. The following example illustrates how to unlink the specified field. //Creates an instance of WordDocument class WordDocument document = new WordDocument(); //Adds a new section into the Word Document IWSection section = document.AddSection(); //Adds a new paragraph into Word document and appends text into paragraph IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Today's Date: "); //Adds the new Date field in Word document with field name and its type WField field = paragraph.AppendField("Date", FieldType.FieldDate) as WField; //Updates the field field.Update(); //Unlink the field field.Unlink(); //Saves the document in the given name and format document.Save("Sample.docx", FormatType.Docx); //Releases the resources occupied by WordDocument instance document.Close(); 'Creates an instance of WordDocument class Dim document As WordDocument = New WordDocument() 'Adds a new section into the Word Document Dim section As IWSection = document.AddSection() 'Adds a new paragraph into Word document and appends text into paragraph Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Today's Date: ") 'Adds the new Date field in Word document with field name and its type Dim field As WField = CType(paragraph.AppendField("Date", FieldType.FieldDate), WField) 'Updates the field field.Update() 'Unlink the field field.Unlink() 'Saves the document in the given name and format document.Save("Sample.docx", FormatType.Docx) 'Releases the resources occupied by WordDocument instance document.Close() When you unlink a field, its current result is converted to text or a graphic and can no longer be updated automatically. Note that the fields such as XE (Index Entry) fields and SEQ (Sequence) fields cannot be unlinked. Removes the field items except the field result. Removes the paragraph items in between the field range. The paragraph item. Removes the textbody items in between the field range. The textbody item. Iterates into body items. Iterates into paragraph items. The paragraph. Iterates into table. The table. Removes the nested field after unlinking. Adds the required values into the stack while reading the nested fields in field result. Resets the required values after reading the nested fields in field result. Updates the nested field code. Updates the paragraph items of the field range. The paragraph items collection. The start index of item. Updates the nested field code. Updates the text for text body item. The entity. Updates the text for text body item. The entity. Updates the text for table. The entity. Updates the text for paragraph item. The entity. Gets the field result. Remove the field separator for the TOC entry,TOA entry,Index entry,Ref Doc and Private Parses the field. The field code. Parses the field format. The field values. Parses the local reference string for the hyperlink. The field code. The start pos. Parse the switches Text Index Checks whether the text start with valid character Checks whether the text start end valid character Removes the Meridiem if present Text Is Meridiem defined Updates the Meridiem Text Current date time Updates the date value Text Current date Time Updated date value Updates Day Date value Current date time Count Gets the culture. The local ID. Updates Month Date value Current date time Count Gets the culture from the character format. The CultureInfo obtained from the character format. Gets the haskey from the character format. The character format from which to retrieve the culture. The CultureInfo obtained from the character format if the culture is present. Return true if the format contains the culture value; otherwise, return false. Gets the haskey from the base format. The character format from which to retrieve the culture. The CultureInfo obtained from the character format if the culture is present. Return true if the format contains the culture value; otherwise, return false. Retrieves the first valid text range within the field. If none of the text ranges are valid, returns the current field. The first valid text range within the field, or the current field if none are valid. Retrieves the first field code entity for a text body item. The text body entity to search for a field code. The first field code entity found within the specified entity, or null if no field code is found. Retrieves the first field code entity for a table. The table entity to search for a field code. The first field code entity found within the specified entity, or null if no field code is found. Retrieves the first field code entity for a paragraph item. The paragraph item entity to search for a field code. The first field code entity found within the specified entity, or null if no field code is found. Updates year Date value Current date time Count Updates hour Date value Current date time Count Updates Minute Date value Current date time Count Updates Seconds Date value Current date time Count Checks the field separator. Gets the formatting for hyper link. Gets the cloned table. The entity. Gets the cloned content control The entity to be cloned Updates the cloned text body item. The source. The destination. Gets the cloned paragraph. The entity. The TXT. The next item. Updates the field items. The item. The entity. The paragraph. The items to update. Checks whether empty para is considered as result for field Gets the index of the paragraph item. The entity. The TXT. Gets the start index of the item. The index. The text. Merges the field mark paragraphs. Removes the previous result. Removes the previous result. Checks the pragragh. The paragraph. Updates the paragraph text. The paragraph. if set to true [is last item]. The result. Gets the paragraph item text. The item. Updates the field result. The text. Updates the field result. The text. if set to true [is from hyper link]. Gets the text range. The text. Skips the layouting of field code. Splits text range by paragraph break(\r\n). Splits the text range into new paragraph. The entity to split text range. Skips the layouting of macro button field code. Splits the character by white space and extracts the valid test. Skips the layouting of paragraph item. The entity. Skips the layouting of text body item. The entity. Skips the layouting of table. The entity. Set skip for items to avoid Doc to PDF layouting. The start index. Item collection paragraph items or text body items True;if field end reached, Otherwise;false Gets the next sibling if current item is perserved inside InlineContentControl. Iterate Field Range Items and skip field result entity. Skip the table child entities. Field End table. Field End table cell. Return true; if the Field is in table;Else false. Skip the other item in the paragraph except Field end ParagraphItemCollection. Gets the layouted EQ field size. Graphics object for EQ field. Charcter format for EQ field. Used to split, validate, and layout the inputed . Represents a inputed fieldcode of equation field. Represents as object which act as drawing context. Represents a which set for equation field. Represents a which set for equation field. Represents a X position of equation field. Represents a Y position of equation field. Returns a complete for the inputed Determine whether the given EQ field code valid or not. Field code to validate. Returns true if it is valid field code, else false. Determine whether the given EQ switch valid or not. Represents a field code to find and perform validation on corresponding EQ switch. Returns true, if it is valid field code, else return false. Used to create corresponding eqution field for the . Represent a field code of the equation field. Represents a object which act as drawing context. Represents a which set for equation field. Represents a X position of equation field. Represents a Y position of equation field. Return an equation field for the inpute field code. Generetes a equation field switch. Represents a EQ switch to save layouted elements. Represents a field code of equation field switch. Font for equation field. Represents as object which act as drawing context. Represents a of equation field switch. Represents a X position of equation field. Represents a Y position of equation field. Generetes nested equation field switch. Represents a EQ switch to save layouted elements. Represents a field code of equation field switch. Represents as object which act as drawing context. Represents a of equation field switch. Represents a X position of equation field. Represents a Y position of equation field. Generetes normal text in equation field switch. Represents a EQ switch to save layouted element. Represents a field code of equation field switch. Font for equation field. Represents as object which act as drawing context. Represents a of equation field switch. Represents a X position of equation field. Represents a Y position of equation field. Layout the radical equation field switch. Represents the field codes of radical equation field switch. Represents as object which act as drawing context. Represents a which set for radical equation field switch. Represents a X position of radical equation field switch. Represents a Y position of radical equation field switch. Returns layouted radical switch. Generates the radical equation field switch using their field code. Represents the radical equation field switch containing elements. Represents the elements to be added into the radical switch. Represents as object which act as drawing context. Represents a which set for radical equation field switch. Represents a X position of radical equation field switch. Represents a Y position of radical equation field switch. Returns the radical equation field switch, including their elements. Generates outer element of radical switch and shift the position. Represents the radical equation field switch containing elements. Outer element of radical EQ switch. Represents as object which act as drawing context. Represents a which set for radical equation field switch. Represents a X position of radical equation field switch. Represents a Y position of radical equation field switch. Y position for outer element. Right most X for outer element. Shift the Radical lines Y position. Layouted radical symbol of radical EQ field. Position to shift the radical symbol. Update radical switch bounds. Layouted radical EQ field. Generates a radical symbol as per outer and inner elements. Represents a radical switch, to maintain all its elements. Represents an element inside the radical symbol. Represents a X position of radical equation field switch. Right most position of outer element. Baseline Y position of outer element of radical EQ switch. Returns a radical equation field switch including symbol and elements. Update the bounds of radical switch after generating symbol. Radical EQ switch to set bounds. Inner element of the radical switch. Hook part of the radical symbol. Upward line of the radical symbol. Top line of the radical symbol. Thickness of the lines. X position of the radical switch. Generates upward line of radical symbol. Inner elment of the radical EQ switch. Upward line of the radical symbol to generate. Thickness of the line to generate Generates downward line of radical symbol. Inner elmenet of the radical EQ switch. Upward line of the radical symbol, which already generated. Downward line of the radical symbol, to generate. Thickness of the line to generate Point values for generating hook portion of radical symbol. Generates top horizontal line of radical symbol. Inner elmenet of the radical EQ switch. Upward line of the radical symbol, which already generated. Top horizontal line of the radical symbol. Thickness of the line to generate Generate hook portion of radical symbol. Inner elmenet of the radical EQ switch. Hook portion of root symbol to generate. Thickness of the line to generate Height of the hook to generate. One of the point of hook symbol. Get the position for outer element of radical EQ switch. Hook part of the radical symbol. Upward line of the radical symbol. Top line of the radical symbol. Thickness of the lines. Right x position of the outer elmeent. Y of the outer element of radical switch. Get the another length from the known angles. Opposite side of angle1. One of the angle, whose opposite side is known value. Another angle, whose opposite side need to calculate Returns calculated width from height and angles. Converts degrees into radian. Represents an angle in degree Returns radian value of inputed degree value. Determines whether the inputed radical field code is valid or not. Represents a field code of radical equation field switch. Return true if valid, otherwise return false. Determines whether an inputed field code of list equation field switch is valid or not. Represents the field code of list equation field switch. Returns true if it is valid field code, otherwise returns false. Layout the list equation field switch using their elements. Represents a fieldcode of list equation switch. Represents as object which act as drawing context. Represents a of list equation field switch. Represents a X position of list equation field. Represents a Y position of list equation field. Returns a layouted list equation field switch. Generetes a list equation field switch. Represents a list switch to save layouted elements. Represents a field code of list equation field switch. Represents as object which act as drawing context. Represents a of list equation field switch. Represents a X position of list equation field. Represents a Y position of list equation field. Determines whether inputed supercript or subscript field code is valid or not. Represents a field code of superscript EQ switch. Returns true if validation success, else return false. Checks whether the inputed code is correct sequence of superscript or subscript EQ switch. Field code of superscript or subscript EQ switch. Returns true, if it is correct sequence, else returns false. Checks the value in string is whether positive or negative. Input string to check value. Returns true for positive value, else return false. Layout the superscript or subscript EQ switch. Represents a field code of superscript or subscript EQ switch. Represents as object which act as drawing context. Represents a of superscript or subscript equation field switch. Represents a X position of superscript or subscript equation field. Represents a Y position of superscript or subscript equation field. Returns layouted superscript or subscript EQ switch. Genrates a superscript or subscript EQ switch. Represents a superscript or subscript switch to layout. Represents the elements of superscript or subscript switch. Represents as object which act as drawing context. Represents a of superscript or subscript EQ switch. Represents a X position of superscript or subscript EQ switch. Represents a Y position of superscript or subscript EQ switch. Returns generated superscipt or subscript EQ switch. Adds space to below EQ switch. Represents a EQ switch to add space. Represents a value of space to add. Add space to above of EQ switch. Represents a EQ switch to add space. Represents a value of space to add. Gets space value to add below superscript or subscript EQ switch. Represents a fieldcode of superscript or subscript EQ switch. Returns a value to add below superscript or subscript EQ switch. Gets space value to add above superscript or subscript EQ switch. Represents a fieldcode of superscript or subscript EQ switch. Returns a value to add above superscript or subscript EQ switch. Aligns the items in like single column array. Represents a EQ switch to align. Set property values from super or subscript switch field code. Represent a switch with elements. Represents a super or subscript field code. Represents as object which act as drawing context. Align the script switch as superscipt switch using property value. Represents as object which act as drawing context. Represents superscript or subscript switch. Value to shift the superscript or subscript EQ switch, to make it a superscript switch. Align the script switch as subscript switch using property value. Represents as object which act as drawing context. Represents superscript or subscript switch. Value to shift the superscript or subscript EQ switch, to make it a subscript switch. Gets the super/sub script properties values. Up value property for superscript switch. Down value for superscript switch. Determines whether switch has up or down value Extract the digit value from the given string. Represents a input to extract digit from it. Returns a digit from string. Gets the maximum height of layouted EQ fields. Layouted EQ field Maximum height of layouted EQ fields Return maximum bottom of the layouted EQ fields. Used to layout the fraction equation field switch. Represents a fieldcode of the fraction equation field switch. Represents a object which act as drawing context. Represents a of fraction equation field switch. Represents a X position of fraction equation field switch. Represents a Y position of fraction equation field switch. Return an fraction equation field for the inpute field code. Generates the EQ fraction switches. Layouted fraction switches Numerator and denominator values Represents a object which act as drawing context. Represents a of fraction equation field switch. Represents a X position of fraction equation field switch. Represents a Y position of fraction equation field switch. Inserts the fraction line between the numarator and denominator. Fraction switch to save all its elements Numerator of fraction switch. Denominator of fraction switch. Represents a object which act as drawing context. Represents a of fraction equation field switch. Represents a X position of fraction equation field switch. Represents a Y position of fraction equation field switch. Set x position for fraction elements. Fraction line between two elements. Numerator of fraction switch. Denominator of fraction switch. Represents a X position of fraction equation field switch. Represents a Y position of fraction equation field switch. Set y for numerator and denominator. /// Numerator of fraction switch. Denominator of fraction switch. Represents a object which act as drawing context. Represents a X position of fraction equation field switch. Represents a Y position of fraction equation field switch. Find the value to center align the EQ switch. Switch to consider for alignment. Maximum width consider to center the alignment. Returns value to set for center alignment of inputed switch. Determine whether the given fraction switch is valid or not. Represents a Fraction switch field code to perform validation. Returns true if validation success , else return false. Used to layout the each in X and Y co-ordinates. Represent an equation field to maintain all layouted equation fields. Represent a splitted from the inputed field code. Represents a object which act as drawing context. Represents a which set for equation field. Represents a X position of equation field. Represents a Y position of equation field. Return a layouted equation field for the inputed field code. Layout the bracket EQ switch. Represents a field code of bracket EQ switch. Represents a object which act as drawing context. Represents a for bracket EQ switch. Represents a X position of bracket EQ switch. Represents a Y position of bracket EQ switch. Returns a layouted bracket switch. Extract the opening and closing character from the bracket switch field code. Represents a field code of bracket switch. Represents a opening character for bracket EQ switch. Represents a closing character for bracket EQ switch. Gets corresponding closing character for inputed character. Opening character of bracket. Returns corresponding closing character for opening character. Generates a bracket switch using their elements. Represents a bracket switch to maintain its elements. Represents the element of bracket EQ switch. Represents an open bracket for bracket EQ switch. Represents a closing bracket of bracket EQ switch. Represents a object which act as drawing context. Represents a for bracket EQ switch. Represents a X position of bracket EQ switch. Represents a Y position of bracket EQ switch. Generates opening bracket of bracket EQ switch. Represents a bracket switch to maintain its elements. Represents an open bracket for bracket EQ switch. Represents a object which act as drawing context. Represents a for bracket EQ switch. Represents a X position of bracket EQ switch. Represents a Y position of bracket EQ switch. Denotes the height of character is minimum to increase by font size. Height to generate opening bracket. Extra width to add with normal width. Value to adjust the bracket to enclosing the bracket switch. Generates closing bracket of bracket EQ switch. Represents a bracket switch to maintain its elements. Represents a closing bracket of bracket EQ switch. Represents a object which act as drawing context. Represents a for bracket EQ switch. Represents a X position of bracket EQ switch. Represents a Y position of bracket EQ switch. Denotes the height of character is minimum to increase by font size. Height to generate opening bracket. Extra width to add with normal width. Extra position to preserve correct closing bracket. Determines whether the brackets contains the minimum height or not Character to compare the height. Represents a object which act as drawing context. Represents a for bracket EQ switch. Maximum height of the character to generate. Returns true, if height of the character to generate is greater than maximum height of normal character , else false. Each character has certain limit to generate by increasing font size. If height is greater than that limit, then the character is generated using parts of unicodes. Generates a character as per bracket switch height from inputed character. Representsa to save generated character. Input character to genreate corresponding character in size. Represents a object which act as drawing context. Represents a to set for input character. Represents a X position where to generate character. Represents a Y position where to generate character. Represents a maximum height for the character to generate. Changes the font size of the character, instead of generating character from parts of Unicodes. Representsa to save generated character. Input character to genreate corresponding character in size. Represents a object which act as drawing context. Represents a to set for input character. Represents a X position where to generate character. Represents a maximum height for the character to generate. Generates a parenthesis using its parts of Unicodes and layouted as single element. A to save all parts of layouted charaacters. Unicode of upper hook of parenthesis. Unicode of Parenthesis extenion. Unicode of lower hook of parenthesis. Represents a object which act as drawing context. Represents a to set for parenthesis. Represents a X position where to generate parenthesis. Represents a Y position where to generate parenthesis. Represents a maximum height of the parenthesis to generate. Generates middle part of the paranthesis using Unicode. A to save all parts of layouted charaacters. Unicode of middle part of parenthesis. Represents a middle part of layouted Unicode. Represents a lower part of layouted Unicode. Represents a object which act as drawing context. Represents a to set for parenthesis. Represents a X position where to generate parenthesis. Represents a Y position where to generate parenthesis. Maximum height to generate middle part of parenthesis. Generates a square bracket from parts of unicodes and save it as one A to save all parts of layouted charaacters. Unicode of upper corner of square bracket. Unicode of square bracket extenion. Unicode of lower corner of square bracket. Represents a object which act as drawing context. Represents a to set for square bracket. Represents a X position where to generate square bracket. Represents a Y position where to generate square bracket. Represents a maximum height of the square bracket to generate. Generates a curly brace from parts of unicodes and save it as one , A to save all parts of layouted charaacters. Unicode of upper hook of curly brace. Unicode of middle peice of curly brace. Unicode of lower hook of curly brace. Unicode of curly bracket extension. Represents a object which act as drawing context. Represents a to set for curly brace. Represents a X position where to generate curly brace. Represents a Y position where to generate curly brace. Represents a maximum height of the curly brace to generate. Generates upper extension part of curly brace. A to save all parts of layouted charaacters. Unicode of extension part of bracket. Represents a middle part of layouted Unicode. Represents a object which act as drawing context. Represents a to set for bracket. Represents a X position where to generate bracket. Represents a Y position where to generate bracket. Maximum height to generate extension part. Generates lower part extension of curly brace. /// A to save all parts of layouted charaacters. Unicode of extension part of bracket. Represents a lower part of layouted Unicode. Represents a object which act as drawing context. Represents a to set for bracket. Represents a X position where to generate bracket. Represents a Y position where to generate bracket. Maximum height to generate extension part. Generates upper part of bracket. A to save all parts of layouted charaacters. Unicode of upper part of bracket. Represents a upper part of layouted Unicode. Represents a object which act as drawing context. Represents a to set for bracket. Represents a X position where to generate bracket. Represents a Y position where to generate bracket. Generates lower part of bracket. A to save all parts of layouted charaacters. Unicode of lower part of bracket. Represents a lower part of layouted Unicode. Represents a object which act as drawing context. Represents a to set for bracket. Represents a X position where to generate bracket. Represents a Y position where to generate bracket. Generates repeated character from inputed unicode untill it reaches maximum height Represents a to save multiple layouted character. Unicode for character to generate repeatedly. Represents a object which act as drawing context. Represents a to set for character. Represents a X position where to generate character. Represents a Y position where to generate character. Maximum height to generate characters. Font size for the character to generate. Checks whether the inputed field code is valid bracket EQ switch field code or not. Represents a field code of bracket EQ switch. Returns true if it is valid field code, else returns false. Checks whether bracket EQ switch is in correct pattern or not. Represents a properties of bracket EQ switch. Returns true if it is correct pattern, else return false. Validate whether the inputed field code of box equation field switch is valid or not. Represents a field code of box switch. Returns true, if it is valid field code, else returns false. Checks whether the inputed code is correct sequence of box EQ switch. Field code of box EQ switch. Returns true, if it is correct sequence , else returns false. Create layout for EQ box switch. Represents a field code of box equation field switch. Represents as object which act as drawing context. Represents a of box equation field switch. Represents a X position of box equation field. Represents a Y position of box equation field. Returns a layouted box EQ switch. Retrives the properties from the box switch field code. Field code of box EQ switch. Represents whether left side line is need to generate or not. Represents whether top side line is need to generate or not. Represents whether right line is need to generate or not. Represents whether bottom line is need to generate or not. Inserts a box to the boundary of box EQ switch. Represents a box EQ switch consider to generate a box. Represents whether left side line is need to generate or not. Represents whether top side line is need to generate or not. Represents whether right line is need to generate or not. Represents whether bottom line is need to generate or not. Extra width to add if it has any line. Adds the line EQ child into the layouted equation fields. Layouted box EQ field. Point x1 Point x2 Point y1 Point y2 Generates a box EQ switch using thier elements. Represent a box EQ switch to save layouted elements.. Represent an element of box EQ switch. Represents as object which act as drawing context. Represents a of box equation field switch. Represents a X position of box equation field. Represents a Y position of box equation field. Retruns generated box switch. Layout a integral EQ switch. Represents a field code of integral EQ switch. Represents as object which act as drawing context. Represents a which set for integral equation field switch. Represents a X position of integral equation field switch. Represents a Y position of integral equation field switch. Returns layouted integral EQ switch. Gets the symbol and position of limits whether inline or normal from the integral EQ switch field code. Represents a field code of integral switch. Sets whether limits are inline or normal limits. Sets the symbol for integral switch. Denotes whether symbol is need to layout as varible in size or not, as per size of integrand. Generates a integral EQ switch using their elements. Represents a integral Eq switch to save layouted elements. Represents an element of integral EQ switch. Represents whether the limits are inline or not. Represents whether the symbol vary as per integrand size or not, if it is other than preferred symbols. Represents a symbol to used in integral EQ switch. Represents as object which act as drawing context. Represents a which set for integral equation field switch. Represents a X position of integral equation field switch. Represents a Y position of integral equation field switch. Generates elements of integral EQ switch. Upper limit of the integral EQ switch. Lower limit of the integral EQ switch. Integrand of the integral EQ switch. Maximum width among limits. Elements to layout for integral EQ switch. Represents as object which act as drawing context. Represents a which set for integral equation field switch. Represents a X position of integral equation field switch. Represents a Y position of integral equation field switch. Calculates the height of the symbol from elements. Upper limit of the integral EQ switch. Lower limit of the integral EQ switch. Integrand of the integral EQ switch. Denotes the position of limits. Height of the symbol to generate. Set position for integral elments. Denotes the position for limits. Upper limit of the integral EQ switch. Lower limit of the integral EQ switch. Integrand of the integral EQ switch Symbol of the integral EQ switch. Integral siwthc to hold all layouted elements. Represents as object which act as drawing context. Represents a which set for integral equation field switch. Represents a X position of integral equation field switch. Represents a X position of integral equation field switch. Maximum width among limits. Symbol in the integral EQ switch. Aligns the elements and symbol of integral EQ switch, when limits are inline. Upper limit of the integral EQ switch. Lower limit of the integral EQ switch. Integrand of the integral EQ switch Symbol of the integral EQ switch. Represents as object which act as drawing context. Represents a X position of integral equation field switch. Represents a which set for integral equation field switch. Represents a X position of integral equation field switch. Integral switch to hold all layouted elements. Symbol to generate for integral switch. Align the elements and symbol of integral EQ switch, when limits are not inline. Upper limit of the integral EQ switch. Lower limit of the integral EQ switch. Integrand of the integral EQ switch Symbol of the integral EQ switch. Represents as object which act as drawing context. Represents a which set for integral equation field switch. Maximum width among limits. Integral switch to hold all layouted elements. Aligns the elements and Pi or Summation symbol of integral EQ switch. Upper limit of the integral EQ switch. Lower limit of the integral EQ switch. Integrand of the integral EQ switch Symbol of the integral EQ switch. Represents as object which act as drawing context. Align the elements and integral symbol of integral switch. Upper limit of the integral EQ switch. Lower limit of the integral EQ switch. Integrand of the integral EQ switch Symbol of the integral EQ switch. Represents as object which act as drawing context. Represents a which set for integral equation field switch. Get the extra value to shift lower limit. Height of the layouted integrand of integral EQ switch. Represents as object which act as drawing context. Represents a which set for integral equation field switch. Retruns a value to add with the lower limit shifting value. Gets the extra height which is need to add before and after of integral symbol. Calculate the space to add to center align the element, for both vertical and horizontal Maximum size which consider for center align Size of element to layout in center. Generates symbol for integral EQ switch as per inputed height. Layouted integrand of integral EQ switch. Represents a to save generated symbol. A character or Unicode to generate as a symbol. Denotes whether symbol is vary in size as per maximum height. Represents as object which act as drawing context. Represents a for symbol. Represents a X position of symbol. Represents a Y position of symbol. Represents a maximum height to layout a symbol. Gets the font size for integral symbol to generate. Layouted integrand of integral EQ switch. Returns the font size used for integral symbol. Generates intergal symbol from two parts. Represents a to save generated symbol. Represents as object which act as drawing context. Represents a for symbol. Represents a X position of symbol. Represents a Y position of symbol. Font size for the each part of integral symbol. Generates the integral symbol by using its parts of unicode. Represents a to save generated symbol. Represents as object which act as drawing context. Represents a for symbol. Represents a X position of symbol. Represents a Y position of symbol. Represents a maximum height need to generate symbol. Font size for the each part of integral symbol. Generates the upper part of integral symbol using its unicode. Represents a to save generated symbol. Represents as object which act as drawing context. Represents a for symbol. Represents a X position of symbol. Represents a Y position of symbol. Represents a layouted upper part of integral symbol. Font size for the upper part o integral symbol. Generates the lower part of integral symbol using its unicode. Represents a to save generated symbol. Represents as object which act as drawing context. Represents a for symbol. Represents a X position of symbol. Represents a Y position of symbol. Represents a layouted lower part of integral symbol. Font size for the lower part of integral symbol. Generates the middle part of integral symbol using its unicode. Represents a to save generated symbol. Represents as object which act as drawing context. Represents a for symbol. Represents a X position of symbol. Represents a Y position of symbol. Represents a layouted lower part of integral symbol. Represents a middle part of integral symbol. Represents a maximum height to generate middle extension part. Font size for the middle part of integral symbol. Determines whether the inputed fied code if valid integral EQ switch field code. Represents a field code of integral EQ switch. Returns true if it is valid field code, else returns false. Checks whether the inputed field code has correct sequence for integral EQ switch or not. Represents a field code of integral EQ switch to check. Returns true if input has correct sequence, else returns false. Validate whether the inputed field code of overstrike EQ switch is valid or not. Represents a field code of overstrike EQ switch. Returns true, if it is valid field code, else returns false. Checks whether the inputed field code is correct format of overstrike EQ switch. Field code of overstrike EQ switch. Returns true, if it is correct sequence, else return false. Layout a overstrike EQ switch. Represents a field code of oversrike EQ switch. Represents as object which act as drawing context. Represents a which set for overstrike EQ switch. Represents a X position of overstrike EQ switch. Represents a Y position of overstrike EQ switch. Returns layouted overstrike EQ switch. Generates an overstrike EQ switch. An overstrike switch to save all its layouted elements. Element of overstrike switch to layout. Alignment property to set for overstrike EQ switch. Represents as object which act as drawing context. Represents a which set for overstrike EQ switch. Represents a X position of overstrike EQ switch. Represents a Y position of overstrike EQ switch. Align the layouted overstrike EQ switch elements as per alignment property. Represents an overstrike switch, need to align. Represents a type of alignment which will set for overstrike elements. By iterating to each property of overstrike EQ switch, get the alignment propery. Field code of overstrike EQ switch. Represents an alignment property retrieved from field code. Determines whether inputed field code of array EQ switch is valid or not. Represents a field code of array EQ switch. Returns true if validation success, else return false. Check whether the inputed code is correct sequence of array EQ switch. Field code of array EQ switch. Returns true, if input code is correct format, else returns false. Layout an array EQ switch. Represents a field code of array EQ switch. Represents as object which act as drawing context. Represents a which set for array EQ switch. Represents a X position of array EQ switch. Represents a Y position of array EQ switch. Returns layouted array EQ switch. Gets the array switch properties from array EQ switch fieldcode. Field code of array EQ switch. Number cof columns value, to layout the array switch. Vertical space value, to add in between each row. Horizontal space value, to add in between each column. Represents an alignment of array switch. Gets an alignment property from the field code of array EQ switch. Field code of array EQ switch, which is one of the alignment property. Represents an alignment of array EQ switch. Generates an array EQ switch. Layouted array switch to save all its layouted elements. Element to layout in array switch. Space value to add between each column in array switch. Space value to add between each row in array switch. Number of columns to layout the array elements in columnwise manner. Represents as object which act as drawing context. Represents a which set for array EQ switch. Represents a X position of array EQ switch. Represents a Y position of array EQ switch. Layout each elements of array EQ switch. Layouted array switch to save all its layouted elements. Element to layout in array switch. Space value to add between each column in array switch. Space value to add between each row in array switch. Number of columns to layout the array elements in columnwise manner. Represents as object which act as drawing context. Represents a which set for array EQ switch. Represents a X position of array EQ switch. Represents a Y position of array EQ switch. Align the generated array EQ switch to the normal line of text. Represents an array switch to align. Represents as object which act as drawing context. Represents a which set for array EQ switch. Checks whether an element is available in the index of array EQ switch. An array EQ switch to check the element. Row of array EQ switch to search for element. Column of array EQ switch to search for element. Return true if element is available at the position, elese returns false. Calculates the maximum number of rows and columns in array EQ switch. An array EQ switch to count the rows and columns. Represents the number of rows in array EQ switch. Represents the number of columns in array EQ switch. Set Y position for each element in array EQ switch. An array EQ switch to layout the elements. Represents as object which act as drawing context. Maximum number of rows in array switch. Maximum number of columns in array switch. Set width for columns from the maximum width of element in the column. Represents an array switch to layout columns. Maximum number of rows in array switch. Maximum number of columns in array switch. Set X for each elements in column. /// Represents an array switch to set x value.. Maximum number of rows in array switch. Denotes the column index to set X values for all elements. X position for elements in column. Get the maximum width of the particular column, by comparing width of each element. An array switch need to layout. Index of column to find the maximum width. Return maximum width of the column. Determines whether inputed field code of Displace EQ switch is valid or not. Represents a field code of Displace EQ switch. Returns true if validation success, else return false. Layout a displace EQ switch. Represents a field code of displace EQ switch. Represents as object which act as drawing context. Represents a which set for displace EQ switch. Represents a X position of displace EQ switch. Represents a Y position of displace EQ switch. Returns layouted displace EQ switch. Generates an displace EQ switch. Represents a displace EQ switch to save its layouted elements. Element of displace EQ switch to layout. Represents n values used for shifting in displace EQ switch. Represents whether line is to be drawn or not in displace EQ switch. Represents as object which act as drawing context. Represents a which set for displace EQ switch. Represents a X position of displace EQ switch. Represents a Y position of displace EQ switch. Shift the displace EQ switch as per shiftvalue, which is forward or backward. Represents a displace switch to perform shifting. Represents n values used for shifting in displace EQ switch. Represents whether line is drawn or not. Represents as object which act as drawing context. Represents a which set for displace EQ switch. Represents a X position of displace EQ switch. Represents a Y position of displace EQ switch. Generates line for "li" property in displace EQ switch. Represents a displace switch to save generate line. Represents as object which act as drawing context. Represents a which set for displace EQ switch. Represents a X position of displace EQ switch. Represents a Y position of displace EQ switch. Represents the length of line to generate. Set width as zero including its inner elementsof switch, to make field overlap with following text. Represents a to set width as zero Generates space to fill the specified width of EQ switch. A to save the layouted space. Represents a width of switch of layouted EQ switch, consists of spaces. Represents as object which act as drawing context. Represents a which set for displace EQ switch. Represents a X position of displace EQ switch. Represents a Y position of displace EQ switch. Gets the properties of displace EQ switch from fielcode. Field code of displace EQ switch. Represents n values used for shifting in displace EQ switch. Represents whether line is to be drawn or not in displace EQ switch. Checks the given code in correct format. Input code, it is one of the properties of EQ switch. Represent whether the inputed may contain negative values or not. Returns true if inputed is in correct format, else returns false. Split the input as text part and start of integer part. Input text to perform splitting Reference to store splitted integer part. It splits the as text part untill it reacher first occcurence of integer. And the remaining string is considered as integer part. Calculate the font size with respect to the desired height. Text to increase the font size. Desired height of the inputed text. Represents as object which act as drawing context. Represents a character format to used for measuring. Returns the size of font, to make the text in desired height. Layout the EQ field in vertical center alignment. EQ field need to shift to set in vertical center. EQ field to consider for height and position to be layout, which is stable. Represents a object which act as drawing context. Gets the list separator from the current culture. Returns a list separator of the current culture. Split the inputed string by comma, ignoring the comma with slash as prefix. Represents a text to split. Returns a collection of splitted strings. Updates the layouted EQ fields bounds. layouted EQ fields. Shift the x position of the layuted EQ fields. layouted EQ field Value of X to shift. This method indicate whether the provide EQ field code contains any switch or not. EQ field code Returns true if input code has any switch, else false. Extract the particular from the EQ field codes field code Return the field code by ignoring elements and other text. Split the EQ field code based on the switches. Collection to hold the splited switches. EQ field code Gets the top most Y position of layouted EQ fields. Layouted EQ field. Minimum value of y position. Returns minimum value of y position. Gets the letf most x position of layouted EQ fields. Layouted EQ fields X position Returns left most X value of EQ fields. Gets the maximum right position of the layouted EQ field. Represents a layouted EQ field, to find maximum right position. Represents a maximum width of the inputed layouted EQ field. Returns maximum right position of the layouted EQ field. Check the inputed text has many characters. Text to check. Return true if has many characters, else return false. Gets the substring till the first occurence of delimeter,skip if delimeter has backslash as prefix. Represents a original string to create a substring. Delimeter consider for create substring Returns substring from the inputed string. Validate character follwed by backslash is whether valid character of Equation field or not. Represents a text to check backslash validation. Returns true if it has improper slash, else false. Collects the indexes of backslash, but ignore the slash with another slash as prefix. Represents a text to find the indexes of slash. Return collection of indexes of backslashes in the inputed Determine whether the given switch contains the miss matched parenthesis or not. Represents a to check balancing parenthesis. Return true if it has mismatch parenthesis else, false. Checks the inputed text only has alphabets. Represents a text to check each charcater. Return true if inputed text has only alphabets, else returns false. Gets the text from the before switch in the field code. EQ field code Returns text before an EQ switch. Gets the first occurence of the EQ switches. EQ field code Returns the EQ switch field code of beginning of first occured switch. Remove the EQ text and return field code of the equation field. Represents an inputed equation fieldcode. Returns a field code, after removed unneccessary EQ text. Replaces backslash before comma, slash, and parenthesis into normal symbols. Represents a to perform replacement. Returns a replaced text. Checks whether a character is exist in given arraay. Array to find the input character. Character to search in array. /// Returns true if it contains inputed character, else false. Get CharacterFormat of the PAGE and NUMPAGES field based on TextRanges preserved inside the field Get the character format from the existing field result (Before update) in the REF field. Get FontScriptType of the PAGE and NUMPAGES field based on TextRanges preserved inside the field Gets the first field code entity formats. Determine whether the current Reference field as Bookmark cross reference field Initializing LayoutInfo value to null Get Text Range preserved inside the PAGE and NUMPAGES field Determine whether the current Reference field as Bookmark cross reference field Implemented alternative method to improve the performance Check whether the current field ranges contains nested field in it Check whether there is any nested field Get the current field as string Boolean to represent whether the string need till current field separator or not Returns the string that represent the current field Gets or sets the text format field switch that defines how to display field results. Gets the type of the entity. Read-only. The of the current item. Gets or sets field pattern. Gets the field value. Read-only. The field value. Gets or sets field type. the represents the type of the field. Decides whether field should be updated automatically or not. Decides whether the field should not be updated untill field code changed. Is Local Hyperlink Decides whether the field has a page field inside. Boolean is used for Word to PDF layouting purpose. Decides whether the field is inside of another field. Boolean is used for Word to PDF layouting purpose. Gets the formatting string. The formatting string. Gets the local reference for the hyperlink. The local reference. Gets or sets the screen tip text for hyperlink The string that specifies the screen tip. Gets or sets the field code. The field code information used to evaluate the resultant value of the field. Gets the field code of the current field. Gets or sets the type of the source field. The type of the source field. Gets or sets the field result. The field result. Gets the range. The range. Gets or sets the field separator. The field separator. Gets or sets the field end. The field end. Gets or sets a value indicating whether the instance is cloned. true if the instance is cloned; otherwise, false. Gets or sets a value indicating whether the instance is added. true if the instance is added; otherwise, false. Gets or sets a value indicating whether field range updated. true if field range updated; otherwise, false. Gets or sets a value indicating whether is field separator. true if is field separator; otherwise, false. Gets or sets a value indicating whether skip the instance. true if skip the instance; otherwise, false. Gets or sets a value indicating whether the instance is updated. true if the instance is updated; otherwise, false. Check whether field is nested field and Inside the field separator if the field is inside the field separator, set to true. Gets or sets a value indicating whether the field is created while parsing "pgNum" element. True if the field is created while parsing "pgNum" element; otherwise, false. Gets or sets a value indicating whether this instance is number pages inside expression field. true if this instance is number pages inside expression field; otherwise, false. Gets or sets a value indicating whether this instance is number page used for evaluation. true if this instance is number page used for evaluation; otherwise, false. Gets or sets a value indicating whether this instance is field inside unknown field. true if this instance is field inside unknown field; otherwise, false. Gets the result format. The result format. Gets or sets the text. The string that specifies the text. Check Whether the current field contain field separator or not Gets or Sets the OriginalField for AutoNum Fields Returns the list of functions Get or set the start position. Month Specifies whether the field has Form field data. Initializes a new instance of the class. Initializes a new instance of the class. The form field. The doc. Clones itself. Returns cloned object. Attaches to paragraph. The paragraph. Detaches from owner. Attaches for text body. Detaches for text body. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Applies the new name of the bookmark. The old name. The new name. Applies new bookmark name in bookmark collection of document. The old name. The new name. Applies the in owner para collection. The old name. The new name. Checks if collection of bookmarks in document contains bookmark with specified name. The new name. Gets the form field text for Word Comparison Gets type of this form field. Gets/sets form field title name (bookmark name). Gets/sets form field help. Gets or sets the status bar help. The status bar help. Gets / sets the name of macros on start Gets / sets the name of macros on end Gets or sets Enabled property (true if form field enabled). Gets/sets calculate on exit property. Gets or sets a value indicating whether this instance has form field data. true if this instance has form field data; otherwise, false. Initializes a new instance of the class with the specified instance. The instance. Creates a duplicate copy of the entity. A reference to the newly created instance. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Sets the size of the CheckBox. Size of the check box. Creates layout information. Gets the size of the CheckBox. The dc. Initializing LayoutInfo value to null Gets the Checkbox text for Word Comparison Gets the type of the entity. The of the current item. Gets or sets the size of the checkbox. The integer that specifies the size of checkbox. Gets or sets value indicating whether by default the checkbox is checked or not. True if the checked box is checked by default; otherwise, false. Gets or sets a value indicating whether the the checkbox is checked. True if the checked box is checked; otherwise, false. Gets or sets the type of the checkbox size. The member that specifies the checkbox size type. Represents the chart in the Word document. This class, its properties and methods are not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin applications. The following code illustrates how to create a new chart. Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Input data for chart Dim data As Object()() = New Object(5)() {} For i As Integer = 0 To 5 data(i) = New Object(2) {} Next data(0)(0) = "" data(1)(0) = "Gravad lax" data(2)(0) = "Louisiana Hot spiced Okara" data(3)(0) = "Mascarpone Fabioli" data(4)(0) = "Wimmers gute SemmelKnodel" data(5)(0) = "Maxilaku" data(0)(1) = "Sum of Purchases" data(1)(1) = 286 data(2)(1) = 680 data(3)(1) = 288 data(4)(1) = 200 data(5)(1) = 731 data(0)(2) = "Sum of Future Expenses" data(1)(2) = 1300 data(2)(2) = 700 data(3)(2) = 1280 data(4)(2) = 1200 data(5)(2) = 2660 'Create and Append chart to the paragraph Dim chart As WChart = paragraph.AppendChart(data, 470, 300) 'Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub OfficeChart object to hold chart elements Attaches to paragraph. The paragraph. The item pos. Detaches from owner. Creates a duplicate copy of the entity. A reference to the newly created object. Clears the object Initializes a new instance of the class with the specified instance. The instance. Set chart data from excel file Worksheet number that has data for chart Data ranga in the worksheet that has chart data Initialize the CharToImageConverter Current chart Sets the data for the chart from the specified collection. An that represents the two dimensional array. Sets the data for the chart from the specified collection with the row index and column index. An that represents the two dimensional array. The integer that specifies the row of the first cell where array should be imported. The integer that specifies the column of the first cell where array should be imported. Sets the data for the chart from the specified collection with the row index and column index. An object with desired data. The integer that specifies the row of the first cell where array should be imported. The integer that specifies the column of the first cell where array should be imported. Replaces the chart data with the worksheet data. Optional Boolean. Set to true to update all the formulas in the Excel sheet. The default value is false. //Open the template document. WordDocument document = new WordDocument("Template.docx"); //Get the paragraph. WParagraph paragraph = document.LastParagraph; //Get the chart entity. WChart chart = paragraph.ChildEntities[0] as WChart; //Replaces the chart data with the worksheet data. chart.Refresh(true); //Save and close the document document.Save("Sample.docx"); document.Close(); 'Open the template document. Dim document As WordDocument = New WordDocument("Template.docx") 'Get the paragraph. Dim paragraph As WParagraph = document.LastParagraph 'Get the chart entity. Dim chart As WChart = TryCast(paragraph.ChildEntities(0), WChart) 'Replaces the chart data with the worksheet data.. chart.Refresh(True) 'Save and close the document document.Save("Sample.docx") document.Close() Creates layout information. Measures the size of chart Gets the Chart as string for Word Comparison. Compares the Chart with the specified Chart. Gets the chart properties for Word comparison Gets the chart properties for Word comparison To Compare two charts returns true if equal else returns false. Checks that the chart is of 2016 charts type Gets or sets workbook data Gets or sets the internal data file path of . Decides whether chart item relation is external. Gets or sets the type of the chart The member that specifies the type of chart. Gets or sets the external data file path of . The following code illustrates how to sets the external data file path of . //Loads the template document WordDocument document = new WordDocument("Template.docx"); //Gets the last paragraph WParagraph paragraph = document.LastParagraph; //Gets the chart entity from the paragraph items WChart chart = paragraph.ChildEntities[0] as WChart; //Modifies the external data file path of chart chart.ExternalDataPath = @"Data\Excel_Template.xlsx"; //Saves and closes the document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Loads the template document Dim document As New WordDocument("Template.docx") 'Gets the last paragraph Dim paragraph As WParagraph = document.LastParagraph 'Gets the chart entity from the paragraph items Dim chart As WChart = TryCast(paragraph.ChildEntities(0), WChart) 'Modifies the external data file path of chart chart.ExternalDataPath = "Data\Excel_Template.xlsx" 'Saves and closes the document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets IOfficeDataRange of the chart data. Gets or sets value indicating whether chart series are represented as rows. True if the series are represented as rows; otherwise, false. Gets or sets the title of the chart. The string that specifies the chart title. Gets the IOfficeChartTextArea of the chart. Read-only. Gets collection of IOfficeChartSeries present in the chart. Read-only. Gets the primary category axis of the chart. Read-only. The IOfficeChartCategoryAxis instance that specifies the primary category axis. Gets the primary value axis of the chart. Read-only. The IOfficeChartValueAxis instance that specifies the primary value axis. Gets the primary series axis of the chart. Read-only. The IOfficeChartSeriesAxis instance that specifies the primary series axis. Gets the secondary category axis of the chart. Read-only. The IOfficeChartCategoryAxis instance that specifies the secondary category axis. Gets the secondary value axis of the chart. Read-only. The IOfficeChartValueAxis instance that specifies the secondary value axis. Gets the chart area. Read-only. The following code illustrates how to apply the formatting for chart area. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Get the paragraph WParagraph paragraph = document.LastParagraph; //Get the chart entity WChart chart = paragraph.ChildEntities[1] as WChart; //Format chart area. IOfficeChartFrameFormat chartArea = chart.ChartArea; //Set border line pattern, color, line weight chartArea.Border.LinePattern = OfficeChartLinePattern.Solid; chartArea.Border.LineColor = Color.Blue; chartArea.Border.LineWeight = OfficeChartLineWeight.Hairline; //Set fill type and fill colors chartArea.Fill.FillType = OfficeFillType.Gradient; chartArea.Fill.GradientColorType = OfficeGradientColor.TwoColor; chartArea.Fill.BackColor = Color.FromArgb(205, 217, 234); chartArea.Fill.ForeColor = Color.White; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Get the paragraph Dim paragraph As WParagraph = document.LastParagraph 'Get the chart entity Dim chart As WChart = TryCast(paragraph.ChildEntities(1), WChart) 'Format chart area. Dim chartArea As IOfficeChartFrameFormat = chart.ChartArea 'Set border line pattern, color, line weight chartArea.Border.LinePattern = OfficeChartLinePattern.Solid chartArea.Border.LineColor = Color.Blue chartArea.Border.LineWeight = OfficeChartLineWeight.Hairline 'Set fill type and fill colors chartArea.Fill.FillType = OfficeFillType.Gradient chartArea.Fill.GradientColorType = OfficeGradientColor.TwoColor chartArea.Fill.BackColor = Color.FromArgb(205, 217, 234) chartArea.Fill.ForeColor = Color.White 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the plot area of the chart. Read-only. The following code illustrates how to apply the formatting for plot area. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); WParagraph paragraph = document.LastParagraph; //Get the chart entity WChart chart = paragraph.ChildEntities[0] as WChart; //Set border settings - line color, pattern, weight, transparency chart.PlotArea.Border.AutoFormat = false; chart.PlotArea.Border.IsAutoLineColor = false; chart.PlotArea.Border.LineColor = Color.Blue; chart.PlotArea.Border.LinePattern = OfficeChartLinePattern.DashDot; chart.PlotArea.Border.LineWeight = OfficeChartLineWeight.Wide; chart.PlotArea.Border.Transparency = 0.6; //Set the plot area’s fill type, color chart.PlotArea.Fill.FillType = OfficeFillType.SolidColor; chart.PlotArea.Fill.ForeColor = Color.LightPink; //Set the plot area shadow presence chart.PlotArea.Shadow.ShadowInnerPresets = Office2007ChartPresetsInner.InsideDiagonalTopLeft; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim paragraph As WParagraph = document.LastParagraph 'Get the chart entity Dim chart As WChart = TryCast(paragraph.ChildEntities(0), WChart) 'Set border settings - line color, pattern, weight, transparency chart.PlotArea.Border.AutoFormat = False chart.PlotArea.Border.IsAutoLineColor = False chart.PlotArea.Border.LineColor = Color.Blue chart.PlotArea.Border.LinePattern = OfficeChartLinePattern.DashDot chart.PlotArea.Border.LineWeight = OfficeChartLineWeight.Wide chart.PlotArea.Border.Transparency = 0.6 'Set the plot area’s fill type, color chart.PlotArea.Fill.FillType = OfficeFillType.SolidColor chart.PlotArea.Fill.ForeColor = Color.LightPink 'Set the plot area shadow presence chart.PlotArea.Shadow.ShadowInnerPresets = Office2007ChartPresetsInner.InsideDiagonalTopLeft 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets the walls of the chart. Read-only. The 3D charts, stacked charts and clustered charts only can have walls. Gets the side wall of the chart. Read-only. The following code illustrates how to specify side wall formatting. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the excel file as stream Stream excelStream = File.OpenRead("Excel_Template.xlsx"); //Create and Append chart to the paragraph with excel stream as parameter WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered_3D; chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set name to chart series chart.Series[0].Name = "Sum of Purchases"; chart.Series[1].Name = "Sum of Future Expenses"; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Set roatation and elevation values chart.Rotation = 20; chart.Elevation = 15; //Set side wall properties chart.SideWall.Fill.FillType = OfficeFillType.SolidColor; chart.SideWall.Fill.ForeColor = Color.White; chart.SideWall.Fill.BackColor = Color.White; chart.SideWall.Border.LineColor = System.Drawing.Color.Beige; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the excel file as stream Dim excelStream As Stream = File.OpenRead("Excel_Template.xlsx") 'Create and Append chart to the paragraph with excel stream as parameter Dim chart As WChart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300) 'Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered_3D chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set name to chart series chart.Series(0).Name = "Sum of Purchases" chart.Series(1).Name = "Sum of Future Expenses" chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Set rotation and elevation values chart.Rotation = 20 chart.Elevation = 15 'Set side wall properties chart.SideWall.Fill.FillType = OfficeFillType.SolidColor chart.SideWall.Fill.ForeColor = Color.White chart.SideWall.Fill.BackColor = Color.White chart.SideWall.Border.LineColor = System.Drawing.Color.Beige 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub The 3D charts, stacked charts and clustered charts only can have side walls. Gets the back wall of the chart. Read-only. The following code illustrates how to specify back wall formatting. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the excel file as stream Stream excelStream = File.OpenRead("Excel_Template.xlsx"); //Create and Append chart to the paragraph with excel stream as parameter WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered_3D; chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set name to chart series chart.Series[0].Name = "Sum of Purchases"; chart.Series[1].Name = "Sum of Future Expenses"; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Set roatation and elevation values chart.Rotation = 20; chart.Elevation = 15; //Set the Backwall fill option. chart.BackWall.Fill.FillType = OfficeFillType.Gradient; //Set the Texture Type. chart.BackWall.Fill.GradientColorType = OfficeGradientColor.TwoColor; chart.BackWall.Fill.GradientStyle = OfficeGradientStyle.Diagonl_Down; chart.BackWall.Fill.ForeColor = Color.WhiteSmoke; chart.BackWall.Fill.BackColor = Color.LightBlue; //Set the Border Linecolor. chart.BackWall.Border.LineColor = System.Drawing.Color.Wheat; //Set the Picture Type. chart.BackWall.PictureUnit = OfficeChartPictureType.stretch; //Set the Backwall thickness. chart.BackWall.Thickness = 10; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the excel file as stream Dim excelStream As Stream = File.OpenRead("Excel_Template.xlsx") 'Create and Append chart to the paragraph with excel stream as parameter Dim chart As WChart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300) 'Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered_3D chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set name to chart series chart.Series(0).Name = "Sum of Purchases" chart.Series(1).Name = "Sum of Future Expenses" chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Set rotation and elevation values chart.Rotation = 20 chart.Elevation = 15 'Set the Backwall fill option. chart.BackWall.Fill.FillType = OfficeFillType.Gradient 'Set the Texture Type. chart.BackWall.Fill.GradientColorType = OfficeGradientColor.TwoColor chart.BackWall.Fill.GradientStyle = OfficeGradientStyle.Diagonl_Down chart.BackWall.Fill.ForeColor = Color.WhiteSmoke chart.BackWall.Fill.BackColor = Color.LightBlue 'Set the Border Linecolor. chart.BackWall.Border.LineColor = System.Drawing.Color.Wheat 'Set the Picture Type. chart.BackWall.PictureUnit = OfficeChartPictureType.stretch 'Set the Backwall thickness. chart.BackWall.Thickness = 10 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub The 3D charts, stacked charts and clustered charts only can have back walls. Gets the floor of the chart. Read-only. The 3D charts, stacked charts and clustered charts only can have floor. Gets the data table of the chart. Read-only. The IOfficeChartDataTable instance that specifies the data table of chart. Gets or sets value indicating whether the chart has a data table. True if the chart has data table; otherwise, false. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the excel file as stream Stream excelStream = File.OpenRead("Excel_Template.xlsx"); //Create and Append chart to the paragraph with excel stream as parameter WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered; chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set name to chart series chart.Series[0].Name = "Sum of Purchases"; chart.Series[1].Name = "Sum of Future Expenses"; //Display data table chart.HasDataTable = true; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Save the document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the excel file as stream Dim excelStream As Stream = File.OpenRead("Excel_Template.xlsx") 'Create and Append chart to the paragraph with excel stream as parameter Dim chart As WChart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300) 'Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set name to chart series chart.Series(0).Name = "Sum of Purchases" chart.Series(1).Name = "Sum of Future Expenses" chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Display data table chart.HasDataTable = True 'Save the document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Gets the chart legend. Read-only. The following code illustrates how to apply the formatting for legend. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); WParagraph paragraph = document.LastParagraph; //Get the chart entity WChart chart = paragraph.ChildEntities[0] as WChart; //Set the legend position chart.Legend.Position = OfficeLegendPosition.Left; //Set the layout inclusion chart.Legend.IncludeInLayout = true; //Set the legend border format - color, pattern, weight chart.Legend.FrameFormat.Border.AutoFormat = false; chart.Legend.FrameFormat.Border.IsAutoLineColor = false; chart.Legend.FrameFormat.Border.LineColor = Color.Blue; chart.Legend.FrameFormat.Border.LinePattern = OfficeChartLinePattern.DashDot; chart.Legend.FrameFormat.Border.LineWeight = OfficeChartLineWeight.Wide; //Set the legend's text area formatting - font name, weight, color, size chart.Legend.TextArea.Bold = true; chart.Legend.TextArea.Color = OfficeKnownColors.Bright_green; chart.Legend.TextArea.FontName = "Times New Roman"; chart.Legend.TextArea.Size = 20; chart.Legend.TextArea.Strikethrough = true; //Modify the legend entry chart.Legend.LegendEntries[0].IsDeleted = true; //Modify the legend layout - height, left, top, width chart.Legend.Layout.Height = 50; chart.Legend.Layout.HeightMode = LayoutModes.factor; chart.Legend.Layout.Left = 10; chart.Legend.Layout.LeftMode = LayoutModes.factor; chart.Legend.Layout.Top = 30; chart.Legend.Layout.TopMode = LayoutModes.factor; chart.Legend.Layout.Width = 100; chart.Legend.Layout.WidthMode = LayoutModes.factor; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) Dim paragraph As WParagraph = document.LastParagraph 'Get the chart entity Dim chart As WChart = TryCast(paragraph.ChildEntities(0), WChart) 'Set the legend position chart.Legend.Position = OfficeLegendPosition.Left 'Set the layout inclusion chart.Legend.IncludeInLayout = True 'Set the legend border format - color, pattern, weight chart.Legend.FrameFormat.Border.AutoFormat = False chart.Legend.FrameFormat.Border.IsAutoLineColor = False chart.Legend.FrameFormat.Border.LineColor = Color.Blue chart.Legend.FrameFormat.Border.LinePattern = OfficeChartLinePattern.DashDot chart.Legend.FrameFormat.Border.LineWeight = OfficeChartLineWeight.Wide 'Set the legend's text area formatting - font name, weight, color, size chart.Legend.TextArea.Bold = True chart.Legend.TextArea.Color = OfficeKnownColors.Bright_green chart.Legend.TextArea.FontName = "Times New Roman" chart.Legend.TextArea.Size = 20 chart.Legend.TextArea.Strikethrough = True 'Modify the legend entry chart.Legend.LegendEntries(0).IsDeleted = True 'Modify the legend layout - height, left, top, width chart.Legend.Layout.Height = 50 chart.Legend.Layout.HeightMode = LayoutModes.factor chart.Legend.Layout.Left = 10 chart.Legend.Layout.LeftMode = LayoutModes.factor chart.Legend.Layout.Top = 30 chart.Legend.Layout.TopMode = LayoutModes.factor chart.Legend.Layout.Width = 100 chart.Legend.Layout.WidthMode = LayoutModes.factor 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets value indicating whether the chart has a legend. True if the chart has legend; otherwise, false. Gets or sets the rotation value for x-axis of the 3-D chart, measured in degrees. The integer that specifies the value for rotation. The following code illustrates how to rotation for 3D chart. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add section to the document IWSection sec = document.AddSection(); //Add paragraph to the section IWParagraph paragraph = sec.AddParagraph(); //Load the excel file as stream Stream excelStream = File.OpenRead("Excel_Template.xlsx"); //Create and Append chart to the paragraph with excel stream as parameter WChart chart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300); //Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered_3D; chart.ChartTitle = "Purchase Details"; chart.ChartTitleArea.FontName = "Calibri"; chart.ChartTitleArea.Size = 14; chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None; //Set name to chart series chart.Series[0].Name = "Sum of Purchases"; chart.Series[1].Name = "Sum of Future Expenses"; chart.PrimaryCategoryAxis.Title = "Products"; chart.PrimaryValueAxis.Title = "In Dollars"; //Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom; //Set roatation and elevation values chart.Rotation = 20; chart.Elevation = 15; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add section to the document Dim sec As IWSection = document.AddSection() 'Add paragraph to the section Dim paragraph As IWParagraph = sec.AddParagraph() 'Load the excel file as stream Dim excelStream As Stream = File.OpenRead("Excel_Template.xlsx") 'Create and Append chart to the paragraph with excel stream as parameter Dim chart As WChart = paragraph.AppendChart(excelStream, 1, "B2:C6", 470, 300) 'Set chart type and title chart.ChartType = OfficeChartType.Column_Clustered_3D chart.ChartTitle = "Purchase Details" chart.ChartTitleArea.FontName = "Calibri" chart.ChartTitleArea.Size = 14 chart.ChartArea.Border.LinePattern = OfficeChartLinePattern.None 'Set name to chart series chart.Series(0).Name = "Sum of Purchases" chart.Series(1).Name = "Sum of Future Expenses" chart.PrimaryCategoryAxis.Title = "Products" chart.PrimaryValueAxis.Title = "In Dollars" 'Set position of legend chart.Legend.Position = OfficeLegendPosition.Bottom 'Set rotation and elevation values chart.Rotation = 20 chart.Elevation = 15 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Gets or sets the rotation value for y-axis of the 3-D chart, measured in degrees. The integer that specifies the value for elevation. Gets or sets the perspective value for the 3-D chart, measured in degrees. Gets or sets the height of a 3-D chart as a percentage of the chart width(between 5 and 500 percent). Gets or sets the depth of a 3-D chart as a percentage of the chart width(between 20 and 2000 percent). Gets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width. Gets or sets value indicating whether the chart axes are at right angles. True if the chart axis are at right angles; otherwise, false. Gets or sets a value indicating whether to scale a 3-D chart size. True if to scale the 3-D chart; otherwise, false. Gets or sets a value indicating whether the chart has plot area. True if the chart has plot area; otherwise, false. Gets or sets a value indicating how that blank cells are plotted on a chart. The OfficeChartPlotEmpty member that specifies how to plot empty cells. Gets or sets a value indicating whether to plot only the visible cells of the data table. True if to plot only visible cells; false if both visible and hidden cells are plotted. Gets the collection of IOfficeChartCategories of the chart. Read-only. Gets or sets the series name filter option for the chart. The OfficeSeriesNameLevel member that specifies the filter option. Gets or sets the category name filter option for the chart. The OfficeCategoriesLabelLevel member that specifies the filter option. Gets the chart data. Read-only. Gets the type of the entity. Read-only. The of the current item. Represents a comment in the Word document. Represents the text body of comment. Represents the formatting options for the comment. Represents the comment range start of the comment Represents the comment range end of the comment Initializes a new instance of the class with the specified instance. The instance. Creates a duplicate copy of the entity. An reference to the newly created instance. Removes the items in the comment. Removes the items between. The first item. The last item. Replace the contents of the comment with the specified text. The string that specifies the text to replace. Replaces the commented items with specified TextBodyPart. The text body part. Adds the self. Attach the comment items into the CommentsCollection Clones the relations. Closes this instance. Clones the relations. The doc. Adds the paragraph item to the commented items. The paragraph item. Initialize the XDLS holder. Writes object data as xml attributes. The object. Creates the layout info. Inserts the commented item. The paragraph. The index. The item to insert. Finds the comment start. The index. The start id. The item collection. Checks the text body on the existing of WComment objects. The item. Checks the paragraph on the existing of WComment objects. The paragraph. Checks the table on the existing of WComment objects. The table. Removes the first item. The first item. The last item. Fills the commented items from TextBodyPart. Fills the commented items from the paragraph. The paragraph. Fills the commented item from the table. The table. Modifies the text. The text. Sets the ParentParaId of the comment The List of paraid of all comments The parentparaid of the comment Gets the ancestor comment Ancestor Comment Gets the child elements of the comment. Read-only. The collection of child elements. Gets the type of the entity. Read-only. The of the current item. Gets the text body of the comment. Read-only. The instance that represents the text body. Gets the format options for the comment. The instance that represents format options of comment. Gets the collection of items in the paragraph of the comment. The paragraph items collection of the comment. Gets a value indicating whether to append commented items to the document . true if append items; otherwise, false. Gets or Sets the ParentParaId of the comment Returns the parent comment for the specific comment. Read-only The parent of the specific . Returns null for top-level comments. Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); Get the Ancestor comment WComment ancestorComment = document.Comments[1].Ancestor; Save and Close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance Dim document As WordDocument = New WordDocument("Template.docx") 'Get the Ancestor comment Dim ancestorComment As WComment = document.Comments(1).Ancestor 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Specifies whether the Comment is detached (For both cases either cloned or removed from collection) from the Comments collection. Gets a value indicating whether the comment is resolved or not. The default value is false. True if the comment is resolved; otherwise, false. This property is only applicable for DOCX format documents. // Load an existing Word document into DocIO instance using (WordDocument document = new WordDocument("Template.docx")) { // Checks whether the comment is resolved or not bool done = document.Comments[0].Done; // Saves the Word document document.Save("Sample.docx", FormatType.Docx); } 'Load an existing Word document into DocIO instance Dim document As WordDocument = New WordDocument("Template.docx") 'Checks whether the comment is resolved or not Dim done As Boolean = document.Comments(0).Done 'Save and Close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Represents comment start marker Id of the comment current mark refers to Represents the owner comment of the comment mark Initializes a new instance of the class. The document. The comment id. Initializes a new instance of the class. The document. The comment id. Clones itself. Returns cloned object. Gets or sets the id of the comment this mark refers to. The comment id. Gets the type of the entity. The of the current item. Gets or sets the type of the CommentMark. The type. Get/Set if the Comment Range end is preserved after the TableCell mark Represents the comment extended in Word Document Represents the last paragraph id of comment Represents the last paragraph id of the comment to which the associated comment is reply Represents whether comment is resolved or not Gets or sets the last paragraph id of the associated comment Gets or sets the last paragraph id of the comment to which the associated comment is reply. Gets or sets the value indicating that whether comment is resolved or not. Summary description for WDropDownFormField. Initializes a new instance of the class. Closes this instance. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Registers child objects in XDSL holder. Initializing LayoutInfo value to null Gets the Drop down field text for Word comparison. Gets the type of the entity. The of the current item. Gets/sets selected drop down index. Gets drop down items. Represents an embeded field. Registers child objects in XDSL holder. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Clone values of all fields of current embedded field new WEmbedField, containing the same info as in current Gets the type of the entity. The of the current item. Represents form control field. Initializes a new instance of the class. Clone values of all fields of current embedded field new WEmbedField, containing the same info as in current Clones the relations Document Owner of the entity Closes this instance. Gets the type of the entity. The of the current item. Gets or sets the storage location. The storage pic location. Gets the OLE object. The OLE object. Represents the field mark in the document. Initializes a new instance of the class. The doc. Initializes a new instance of the class. The field mark. The doc. Initializes a new instance of the class. The doc. The type. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Registers child objects in XDSL holder. Gets the type of the entity. The of the current item. Gets character format of the field mark. Gets or sets type of field mark. Gets or sets the parent field. The parent field. Represents a document footnote or endnote. Initializes a new instance of the class. The doc. Adds the self. Creates the layout info. Clones the specified paragraph. Returns cloned object. Clones the relations. The doc. "Listener" for state change. Closes this instance. Initialize the XDLS holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Updates the custom marker. The destination marker. Clearing the previous Getting the CustomMarker string Compare CharacterFormat Checks the character style. Updates the footnote marker. Ensures the footnote/endnote marker. Appends the footnote symbol. Generates the symbol. The symbol code. Replaces the selection. The symbol. The paragraph. Ensures the footnote/endnote style. Updates the change flag. Replaces the marker. The selection. The replace text. Appends the marker. The marker. The destination paragraph. Generates the text. Measures self size. Gets the type of the entity. The of the current item. Gets / sets footnote type: footnote or endnote Gets the value indicating if the footnote is auto numbered Gets the text body of the footnote. The text body. Gets the marker character format Gets or sets the marker symbol code. The symbol code. Gets or sets the name of the marker symbol font. The name of the symbol font. Gets or sets the custom footnote marker. The custom marker. indicate whether the endnote instance layouted or not. The class specifies the Layout Footnote information. Holds the height of the footnote Initializes a new instance of the class. The child layout direction. Get Footnote ID based on number format Get Base Entity. The entity. Get/Set Footnote/Endnote TextBody height Get/Set Endnote TextBody height Get/Set Footnote/Endnote ID. Get/Set the TextRange Represents the IF field in the document. The following code example demonstrates how to add an If field in Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { WordDocument document = new WordDocument(); IWSection section = document.AddSection(); IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("If field which uses string of characters in expression"); paragraph = section.AddParagraph(); //Create the new instance of IF field WIfField field = paragraph.AppendField("If", FieldType.FieldIf) as WIfField; //Specify the expression, true and false statement in field code field.FieldCode = "IF \"True\" = \"True\" \"The given statement is Correct\" \"The given statement is Wrong\""; paragraph = section.AddParagraph(); paragraph.AppendText("If field which uses numbers in expression"); paragraph = section.AddParagraph(); //Create the new instance of IF field field = paragraph.AppendField("If", FieldType.FieldIf) as WIfField; //Specify the expression, true and false statement in field code field.FieldCode = "IF 100 >= 1000 \"The given statement is Correct\" \"The given statement is Wrong\""; //Update the document fields document.UpdateDocumentFields(); document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) Dim document As New WordDocument() Dim section As IWSection = document.AddSection() Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("If field which uses string of characters in expression") paragraph = section.AddParagraph() 'Create the new instance of IF field Dim field As WIfField = TryCast(paragraph.AppendField("If", FieldType.FieldIf), WIfField) 'Specify the expression, true and false statement in field code field.FieldCode = "IF ""True"" = ""True"" ""The given statement is Correct"" ""The given statement is Wrong""" paragraph = section.AddParagraph() paragraph.AppendText("If field which uses numbers in expression") paragraph = section.AddParagraph() 'Create the new instance of IF field field = TryCast(paragraph.AppendField("If", FieldType.FieldIf), WIfField) 'Specify the expression, true and false statement in field code field.FieldCode = "IF 100 >= 1000 ""The given statement is Correct"" ""The given statement is Wrong""" 'Update the document fields document.UpdateDocumentFields() document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class with the specified instance. The instance. Updates if field. When AutoNum field is inside the IF field Result part, then skip the update of field result and also remove the previous result with Field separator. The FieldMark. Check wheather the if field contains any AutoNum field in the result part. The FieldResult returns True if If Field have AutoNum field itself otherwise return false. Gets the text in the entity The entity. Entity text Gets the Field Result as String List of entity. Field Result as string Updates the field result entities between FieldSeparator and FieldEnd. The result. Checks whether all the item in field result is TextRange Removes the text range from result except first textrange After update the SET field inside the IF field, removed from the field result collection Initializes the layout information of text body item. The entity. Updates the field result entities between FieldSeparator and FieldEnd. List of field result entities. Merges the field separator and field end paragraph. Moves the Field end paragraph items to Field result last paragraph. The para. Parse the Field range to get expression and Results expression text Gets the updated cloned field Range List of cloned Entity Gets the cloned Field entiy The entity. The entity list. Gets the cloned paragraph item The entity. The entity list. Splits Entity The entity. The remaining text. Reads the expression from range The entity. Reference to readTrueText flag. Reference to expressionFound flag Checks the text reached end of expression. The text.Text after the expression remains in the text if expression found "true" if the text reached end of expression otherwise false Check whether the text need to aplit or not True if the text need to split else returns false Checks the text contains operator or not. The text.Text after the operator remains in the text if operator found "true" if the text conatins operator otherwise false Gets the index of operator. The text after the double quote remains in the text if double quote found. Returns the index of the operator. Reads the True result entity The text. The entity. Reference to readTrueText flag. Reference to expressionFound flag Reads the False result entity The entity. Checks whether the last item is not a textrange, but other renderable item` Field result True, if the last item is not textrange, but other renderable item else False Removes the unwanted text/entity in the Result The field result. Check whether the paragraph has paragraph mark as a child entity Paragraph added in field result False, if the last item of the paragraph is paragraph mark; else true Removes the ParagraphMark from field range The field result Removes the empty text and paragraph Trim Double Quotes Remove the FieldTextStart character and FieldTextEnd character in the text range. Remove the FieldTextStart character and FieldTextEnd character in the text range. Trims the double quotesin text range. The text range. if set to true [is start]. if set to true [is end]. Get Index of Double quote character Checks if field. The para. The text. if set to true [is if field result]. Checks if field end. The para. if set to true [is if field result]. Updates field code Checks the expression strings. Parses the field value. Updates the expression string. Updates the merge fields. Clones itself. Returns cloned object. Closes this instance. Gets the Expression1 of IF field. The expression1. Gets the Expression2 of IF field. The expression1. Gets the TrueText field. The true text field. Gets the merge fields. The merge fields. Class represents pseudo merge field inside IF field Initializes a new instance of the class. The field text. Gets the name. The name. Gets or sets the value. The value. Gets a value indicating whether fit mail merge. if it fits the mail merge, set to true. Represents a mathMl element in a word document. Initializes a new instance of the class with the specified instance. The instance. Creates a duplicate copy of the entity. A reference to the newly created object. Clears the object. Changes the math element to display position Gets a WMath instance as drawing image by using Word to PDF layouting engine. Returns a PNG format image byte array. As Word to Image conversion not supported in Portable platform, this method won't works in Portable. Once we provided Word to Image conversion support, we can provide support for GetAsImage API too. Note - We need to change only rendering(Drawig to Image) logics. Layouting will works in Portable too. Changes the math element to inline with text. Removes the previous break Inserts an empty text range Removes the break following math element Applies base format for the paragraph items inside Mathematical equation Iterates into officemath. Iterates into each function to get their run element Represents a function to iterate Checks whether the math element is inline or display type. Checks whether the item after math is break Check whether item before math is break Creates layout information for Initializing LayoutInfo to null Initializing LayoutInfo to null Initializing LayoutInfo to null Measure the width and height of WMath Represent the Return the size of WMath Compare two math along with the formatting The math to be compared True if the math is same, else false. Compare the properties of source OfficeMathParagraph with destination OfficeMathParagraph The OfficeMathParagraph to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathLimit with destination OfficeMathLimit The OfficeMathLimit to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathBox with destination OfficeMathBox The OfficeMathBox to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathBar with destination OfficeMathBar The OfficeMathBar to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathRightScript with destination OfficeMathRightScript The OfficeMathRightScript to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathPhantom with destination OfficeMathPhantom The OfficeMathPhantom to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathAccent with destination OfficeMathAccent The OfficeMathAccent to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathScript with destination OfficeMathScript The OfficeMathScript to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathRadical with destination OfficeMathRadical The OfficeMathRadical to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathNArray with destination OfficeMathNArray The OfficeMathNArray to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathMatrix with destination OfficeMathMatrix The OfficeMathMatrix to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathsBorderBox with destination OfficeMathsBorderBox The OfficeMathsBorderBox to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathMatrix with destination OfficeMathMatrix The OfficeMathMatrix to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathEquationArray with destination OfficeMathEquationArray The OfficeMathEquationArray to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathFraction with destination OfficeMathFraction The OfficeMathFraction to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathFunction with destination OfficeMathFunction The OfficeMathFunction to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathLeftScript with destination OfficeMathLeftScript The OfficeMathLeftScript to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathGroupCharacter with destination OfficeMathGroupCharacter The OfficeMathGroupCharacter to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathDelimiter with destination OfficeMathDelimiter The OfficeMathDelimiter to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathLimit with destination OfficeMathLimit The OfficeMathLimit to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathLimit with destination OfficeMathLimit The OfficeMathLimit to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathFormat with destination OfficeMathFormat The OfficeMathLimit to be compared True, if all the properties matches, else false Compare the properties of source OfficeMath with destination OfficeMath The OfficeMath to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathMatrixColumn with destination OfficeMathMatrixColumn The OfficeMathMatrixColumn to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathMatrixRow with destination OfficeMathMatrixRow The OfficeMathMatrixRow to be compared True, if all the properties matches, else false Compare the properties of source OfficeMathBreak with destination OfficeMathBreak The picture to be compared True if the picture is same, else false. Gets the math text for Word comparison Gets the properties text for Word comparison Gets the MathLeftScript text for Word comparison Gets the MathGroupCharacter text for Word comparison Gets the MathRightScript text for Word comparison Gets the MathRightScript text for Word comparison Gets the OfficeMath text for Word comparison Gets the MathPhantom text for Word comparison Gets the MathFraction text for Word comparison Gets the MathFunction text for Word comparison Gets the MathEquationArray text for Word comparison Gets the MathMatrix text for Word comparison Gets the MathDelimiter text for Word comparison Gets the MathAccent text for Word comparison Gets the MathScript text for Word comparison Gets the MathRadical text for Word comparison Gets the office mathmatrix column text for Word comparison Gets the office mathmatrix Row text for Word comparison Gets the MathBar text for Word comparison Gets the MathNArray text for Word comparison Gets the MathLimit text for Word comparison Gets the OfficeMathsBorderBox text for Word comparison Gets the MathBox text for Word comparison Gets the office mathbreak text for Word comparison Gets the Office mathParagraph text for Word comparison Gets or sets the officemathpara that can be used to format a top level mathml element. Gets the type of the entity. Read-only. The of the current item. Represents the mail merge field in the document. The collection of text ranges which form field value Initializes a new instance of the class with specified instance. The word document instance. Clones itself. Returns cloned object. Clones the relations. The doc. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Get Field Values - Parse for Field name and field switches updates field code Applies the base format. Closes this instance. Update field marks when its a cloned field and it field mark refers the other field Parses the name of the field. Parses the name of the field. Name of the field. Parse Field Name using regular expression field name Parses field name having group ":" and backslash "\" expression field name Serialize the merge field codes. Gets the text format. The format. Clears the string from other characters. The value. Updates field value and format string (merge formats) by parsing through field code Parse switches (Text format, Number format and Date format) merge format Updates field Value by removing parsed switches using format index collection field value format index Updates format Index and Field value Field Value Format Index (list) Merge Switch Updates Switches index in Field Codes by removing the extra characters ('\\') present in field codes. Field value Upates the merge field result. Gets the type of the entity. The of the current item. Gets or sets mail merge field name. Gets or sets the text that is displayed before the merge field. Gets or sets the text that is displayed after the merge field. Gets the prefix of merge field. Read-only. Gets the number format of the merge field. Read-only. Gets the date format of the merge field. Read-only. Gets the result text items in the merge field. Read-only. The text item collection that represents the merge field result value. Represents the picture in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("This paragraph has picture. "); //Append new picture to the paragraph IWPicture picture = paragraph.AppendPicture(Image.FromFile("Image.png")); //Set width and height for the paragraph picture.Width = 150; picture.Height = 100; //Set text wrapping style – When the wrapping style is inline the images will not be absolutely positioned. It will be added next to the textrange. picture.TextWrappingStyle = TextWrappingStyle.Square; picture.TextWrappingType = TextWrappingType.Largest; //Set horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page; picture.VerticalOrigin = VerticalOrigin.Paragraph; //Set horizontal and vertical position for the picture picture.HorizontalPosition = 200; picture.VerticalPosition = 150; //Set horizontal and vertical alignments picture.HorizontalAlignment = ShapeHorizontalAlignment.Center; picture.VerticalAlignment = ShapeVerticalAlignment.Bottom; //Set name, title, alternate text. picture.Title = "PictureTitle"; picture.Name = "PictureName"; picture.IsBelowText = true; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("This paragraph has picture. ") 'Append new picture to the paragraph Dim picture As IWPicture = paragraph.AppendPicture(Image.FromFile("Image.png")) 'Set width and height for the paragraph picture.Width = 150 picture.Height = 100 'Set text wrapping style – When the wrapping style is inline the images will not be absolutely positioned. It will be added next to the textrange. picture.TextWrappingStyle = TextWrappingStyle.Square picture.TextWrappingType = TextWrappingType.Largest 'Set horizontal and vertical origin picture.HorizontalOrigin = HorizontalOrigin.Page picture.VerticalOrigin = VerticalOrigin.Paragraph 'Set horizontal and vertical position for the picture picture.HorizontalPosition = 200 picture.VerticalPosition = 150 'Set horizontal and vertical alignments picture.HorizontalAlignment = ShapeHorizontalAlignment.Center picture.VerticalAlignment = ShapeVerticalAlignment.Bottom 'Set name, title, alternate text. picture.Title = "PictureTitle" picture.Name = "PictureName" picture.IsBelowText = True 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Size of the picture. in percent in percent DistanceBottom Returns or sets the distance (in points) between the document text and the bottom edge of the text-free area surrounding the specified shape. Read/write Single. DistanceLeft Returns or sets the distance (in points) between the document text and the left edge of the text-free area surrounding the specified shape. Read/write Single. DistanceRight Returns or sets the distance (in points) between the document text and the right edge of the text-free area surrounding the specified shape. Read/write Single. DistanceTop Returns or sets the distance (in points) between the document text and the top edge of the text-free area surrounding the specified shape. Read/write Single. Holds additional docx picture props Holds additional docx picture props for visual shapes Initializes a new instance of the class with the specified instance. The instance. Loads the image from the specified byte array. The byte array that specifies the image as bytes. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Get the image and convert to byte array Image image = Image.FromFile("Image.png"); MemoryStream imageStream = new MemoryStream(); image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = imageStream.ToArray(); //Initialize new picture WPicture picture = new WPicture(document); //Load image from the byte array picture.LoadImage(imageBytes); //Set width and height picture.Height = 100; picture.Width = 150; //Add picture to the paragraph paragraph.Items.Add(picture); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Get the image and convert to byte array Dim image__1 As Image = Image.FromFile("Image.png") Dim imageStream As New MemoryStream() image__1.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes As Byte() = imageStream.ToArray() 'Initialize new picture Dim picture As New WPicture(document) 'Load image from the byte array picture.LoadImage(imageBytes) 'Set width and height picture.Height = 100 picture.Width = 150 'Add picture to the paragraph paragraph.Items.Add(picture) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Loads the SVG image from the specified byte array. The byte array that specifies the SVG image as bytes. The byte array that specifies the image as bytes. Thrown when is null Thrown when is not a *svg format //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Get the SVG image as byte array. byte[] imageBytes = File.ReadAllBytes("Image.png"); //Get the SVG image as byte array. byte[] svgData = File.ReadAllBytes("Image.svg"); //Initialize new picture WPicture picture = new WPicture(document); //Load both fallback and SVG image from the byte array picture.LoadImage(svgData, imageBytes); //Set width and height picture.Height = 100; picture.Width = 150; //Add picture to the paragraph paragraph.Items.Add(picture); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Get the image byte array Dim imageBytes As Byte() = File.ReadAllBytes("Image.png") 'Get the SVG image as byte array. Dim svgData As Byte() = File.ReadAllBytes("Image.svg") 'Initialize new picture Dim picture As New WPicture(document) 'Load both fallback and SVG image from the byte array picture.LoadImage(svgData, imageBytes) 'Set width and height picture.Height = 100 picture.Width = 150 'Add picture to the paragraph paragraph.Items.Add(picture) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() Check whether the given SVG image data is valid or not. Loads the image from the specified instance. The instance. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Initialize new picture WPicture picture = new WPicture(document); //Load image from the file picture.LoadImage(Image.FromFile("Image.png")); //Set width and height picture.Height = 100; picture.Width = 150; //Add picture to the paragraph paragraph.Items.Add(picture); //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Initialize new picture Dim picture As New WPicture(document) 'Load image from the file picture.LoadImage(Image.FromFile("Image.png")) 'Set width and height picture.Height = 100 picture.Width = 150 'Add picture to the paragraph paragraph.Items.Add(picture) 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Update Blip ImageRecord Adds caption for the current picture with specified name, caption format and caption position. The string that specifies the name. The member that specifies the format for caption numbering. The member that specifies the position of caption. The paragraph instance with the specified caption. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("This paragraph has picture. "); //Append new picture to the paragraph IWPicture picture = paragraph.AppendPicture(Image.FromFile("Image.png")); //Set width and height for the paragraph picture.Width = 150; picture.Height = 100; //Set caption for picture picture.AddCaption("Figure 1.1", CaptionNumberingFormat.Number, CaptionPosition.AboveImage); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("This paragraph has picture. ") 'Append new picture to the paragraph Dim picture As IWPicture = paragraph.AppendPicture(Image.FromFile("Image.png")) 'Set width and height for the paragraph picture.Width = 150 picture.Height = 100 'Set caption for picture picture.AddCaption("Figure 1.1", CaptionNumberingFormat.Number, CaptionPosition.AboveImage) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() End Sub Adds the self. Creates a duplicate copy of the entity. An reference to the newly created instance. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Writes object data as inside xml element. The object. Reads object data from xml attributes. The object. The value indicating the presence of xml content. Registers child objects in XDSL holder. Compare two pictures along with the formatting The picture to be compared True if the picture is same, else false. Gets the picture text for Word comparison Gets the properties text for Word comparison Retrieves a dictionary containing mappings between brightness levels and their corresponding value ranges. A dictionary where keys represent brightness levels and values are lists of float ranges. Retrieves a dictionary containing mappings between contrast levels and their corresponding value ranges. A dictionary where keys represent contrast levels and values are lists of float ranges. Sets the width scale, specific for parsers. The width scale. Sets the height scale, specific for parsers. The height scale. Sets the TextWrappingStyle,specific for parsers. TextWrapStyle Detaches from owner. Remove the image from document's escher collection. To identify current picture previous sibling's previous sibling is OleObject trueif the current picture previous sibling's previous sibling is OleObject;Otherwisefalse Loads the image. The image bytes. if it specifies a metafile, set to true. Loads the image. The image record. Check the TextWrapping style Gets the image for partial trust mode. The image bytes. Argument is not image byte array Converts the size for partial trust mode. The image. image Gets the Default image. image Gets the image. The image bytes. Gets the specified resource file as stream. The resource file name Stream of the specified resource file Retrieves the contents of the specified enhanced-format metafile and copies them into a buffer. A handle to the enhanced metafile. The size, in bytes, of the buffer to receive the data. A pointer to a buffer that receives the metafile data. The buffer must be sufficiently large to contain the data. If lpbBuffer is NULL, the function returns the size necessary to hold the data. If the function succeeds and the buffer pointer is NULL, the return value is the size of the enhanced metafile, in bytes. If the function succeeds and the buffer pointer is a valid pointer, the return value is the number of bytes copied to the buffer. If the function fails, the return value is zero. The does not invalidate the enhanced-metafile handle. The application must call the function to delete the handle when it is no longer needed. Deletes an enhanced-format metafile or an enhanced-format metafile handle. A handle to an enhanced metafile. If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Converts the .tiff format to .png. Tiff format is not supported by Word 2000. The image. Resets the data. Initializing LayoutInfo value to null Creates layout information. Converts size of the image to point units. Image object. Size of the image int points. Checks the pic size for partial trust mode. The image. Checks the size of the picture. it hold the picture rectangle value Gets a value indicating whether this instance has borders. true if this instance has borders; otherwise, false. Gets the type of the entity. Read-only. The of the current item. Gets or sets the picture height in points The float that specifies the height. Gets or sets the picture rotation in degree. The float that specifies the rotation value of the picture. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. The following code example demonstrates how to gets or sets the rotation value of picture in degree. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new text to the paragraph IWParagraph paragraph = section.AddParagraph(); //Gets the image and convert to byte array Image image = Image.FromFile("Image.png"); MemoryStream imageStream = new MemoryStream(); image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = imageStream.ToArray(); //Initializes new picture WPicture picture = new WPicture(document); //Loads an image from the byte array picture.LoadImage(imageBytes); //Sets height and width for the image picture.Height = 100; picture.Width = 150; //Sets picture rotation in degree picture.Rotation = 90; //Adds image to the paragraph paragraph.Items.Add(picture); //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a New Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new text to the paragraph Dim paragraph As IWParagraph = section.AddParagraph 'Gets the image and convert to byte array Dim image As Image = Image.FromFile("Image.png") Dim imageStream As MemoryStream = New MemoryStream image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes() As Byte = imageStream.ToArray 'Initializes new picture Dim picture As WPicture = New WPicture(document) 'Loads an image from the byte array picture.LoadImage(imageBytes) 'Sets height and width for the image picture.Height = 100 picture.Width = 150 'Sets picture rotation in degree picture.Rotation = 90 'Adds image to the paragraph paragraph.Items.Add(picture) 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets the picture width in points. The float that specifies the width. Gets or sets the picture height scale factor in percent. The float that specifies the height scale factor. Gets or sets the picture width scale factor in percent. The float that specifies the width scale factor. Gets or sets a value indicating whether the pictute has Lock aspect ratio. The default is false. true if this instance has lock aspect ratio; otherwise, false. Gets the image for partial trust mode. The image for partial trust mode. Gets the instance that represents the picture. Read-only. The instance. This property is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Gets the image as byte array. Read-only. The array that represents image bytes. Gets the SVG image as byte array. Read-only. The array that represents SVG image bytes. Gets the image record. The image record. Get/Set Shapeposition Gets or sets the horizontal origin of the picture. The member that specifies the horizontal origin. Gets or sets the vertical origin of the picture. The member that specifies the vertical origin. Gets or sets absolute horizontal position of the picture in points. The float that specifies the horizontal position. The horizontal position is relative to the . Gets or sets absolute vertical position of the picture in points. The float that specifies the vertical position. The vertical position is relative to the . DistanceBottom Returns or sets the distance (in points) between the document text and the bottom edge of the text-free area surrounding the specified shape. Read/write Single. DistanceLeft Returns or sets the distance (in points) between the document text and the left edge of the text-free area surrounding the specified shape. Read/write Single. DistanceRight Returns or sets the distance (in points) between the document text and the right edge of the text-free area surrounding the specified shape. Read/write Single. DistanceTop Returns or sets the distance (in points) between the document text and the top edge of the text-free area surrounding the specified shape. Read/write Single. Gets or sets the text wrapping style of the picture. The member that specifies the text wrapping style. Gets or sets the text wrapping type of the picture. The member that specifies the text wrapping type. Gets or sets the horizontal alignment of the picture. The member that specifies the horizontal alignment. If the alignment is set as None, then the picture is explicitly positioned using position properties. Otherwise it is positioned according to the alignment specified. The position of the object is relative to . Gets or sets the vertical alignment of the picture. If the alignment is set as None, then the picture is explicitly positioned using position properties. Otherwise it is positioned according to the alignment specified. The position of the object is relative to . Gets or sets a value indicating whether the picture is below the text. True if the picture is below text; otherwise, false. Gets the character format(font properties) of the picture. Read-only. Gets or Sets picture hRef string Gets/sets the size of picture object. Gets a value indicating whether this instance is metafile. if this instance is metafile, set to true. Gets the additional docx properties. The docx props. Gets the additional docx visual shape properties. The docx props. Gets the Signature Line elements of docx. The docx props. Gets or sets the alternate text for the picture. The string that represents the alternate text. Gets or sets the name of the picture. The string that represents the name. Gets or sets the chromakey color (picture transparency). Gets or sets the picture title. The string that represents the title. Embedded text body Gets or sets a value indicating whether this instance is shape. if this instance is shape, set to true. Gets or sets the index of the order. The index of the order. Returns the boolean value that represents whether a picture in a table is displayed inside or outside the table. Gets or sets a value indicating whether [allow overlap]. true if [allow overlap]; otherwise, false. Gets or set the SVG external image link. Gets or sets the wrap polygon. The wrap polygon. Gets or sets a value indicating whether the picture is visible. True if the picture is visible; otherwise, false. Gets or sets a value indicate whether current wrapping bounds points added to the list or not. true if this instance is wrapping bounds added; otherwise, false. Gets or sets fill format. Gets or sets a Horizontal flipping of Picture. true indicates that a picture has been flipped horizontally; otherwise, false. This property returns True if the specified picture is flipped around the horizontal axis, and False if not. The following code example demonstrates how to gets or sets the horizontal flip to picture. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new text to the paragraph IWParagraph paragraph = section.AddParagraph(); //Gets the image and convert to byte array Image image = Image.FromFile("Image.png"); MemoryStream imageStream = new MemoryStream(); image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = imageStream.ToArray(); //Initializes new picture WPicture picture = new WPicture(document); //Loads an image from the byte array picture.LoadImage(imageBytes); //Sets height and width for the image picture.Height = 100; picture.Width = 150; //Sets horizontal flip to the picture picture.FlipHorizontal = true; //Adds image to the paragraph paragraph.Items.Add(picture); //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a New Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new text to the paragraph Dim paragraph As IWParagraph = section.AddParagraph 'Gets the image and convert to byte array Dim image As Image = Image.FromFile("Image.png") Dim imageStream As MemoryStream = New MemoryStream image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes() As Byte = imageStream.ToArray 'Initializes new picture Dim picture As WPicture = New WPicture(document) 'Loads an image from the byte array picture.LoadImage(imageBytes) 'Sets height and width for the image picture.Height = 100 picture.Width = 150 'Sets horizontal flip to the picture picture.FlipHorizontal = True 'Adds image to the paragraph paragraph.Items.Add(picture) 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets a Vertical flipping of Picture. true indicates that a picture has been flipped vertically; otherwise, false. This property returns True if the specified picture is flipped around the vertical axis, and False if not. The following code example demonstrates how to gets or sets the vertical flip to picture. //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new text to the paragraph IWParagraph paragraph = section.AddParagraph(); //Gets the image and convert to byte array Image image = Image.FromFile("Image.png"); MemoryStream imageStream = new MemoryStream(); image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); byte[] imageBytes = imageStream.ToArray(); //Initializes new picture WPicture picture = new WPicture(document); //Loads an image from the byte array picture.LoadImage(imageBytes); //Sets height and width for the image picture.Height = 100; picture.Width = 150; //Sets vertical flip to the picture picture.FlipVertical = true; //Adds image to the paragraph paragraph.Items.Add(picture); //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); 'Creates a New Word document Dim document As WordDocument = New WordDocument 'Adds new section to the document Dim section As IWSection = document.AddSection 'Adds new text to the paragraph Dim paragraph As IWParagraph = section.AddParagraph 'Gets the image and convert to byte array Dim image As Image = Image.FromFile("Image.png") Dim imageStream As MemoryStream = New MemoryStream image.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png) Dim imageBytes() As Byte = imageStream.ToArray 'Initializes new picture Dim picture As WPicture = New WPicture(document) 'Loads an image from the byte array picture.LoadImage(imageBytes) 'Sets height and width for the image picture.Height = 100 picture.Width = 150 'Sets vertical flip to the picture picture.FlipVertical = True 'Adds image to the paragraph paragraph.Items.Add(picture) 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() Gets or sets the value indicate whether the image is redEX image or not,if the image is redX image then serializing the embed tag in the WPicture is skipped. Represents the sequence field in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument("Bookmarks.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the bookmark name as caption and number format field.CaptionName = "Northwind"; field.NumberFormat = CaptionNumberingFormat.Roman; //Save and close the document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument("Bookmarks.docx") 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) 'Append sequence field to the paragraph Dim field As WSeqField = DirectCast(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) 'Set the bookmark name as caption and number format field.CaptionName = "Northwind" field.NumberFormat = CaptionNumberingFormat.Roman 'Save and close the document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initializes a new instance of the class with the specified instance. The instance. Initializes a new instance of the class with the specified instance. The instance. Get the caption name. updates field code Updates field value and format string (sequence formats) by parsing through field code Updates Switches index in Field Codes by removing the extra characters ('\\') present in field codes. Field value Updates format Index and Field value Field Value Format Index (list) Sequence Switch Updates field Value by removing parsed switches using format index collection field value format index Parse switches (Formatting String, Number format) Get Field Values - Parse for Field name and field switches Clears the string from other characters. The value. Add new values to Boolean switches(\n,\c,\h) Add new values to Integer switches(\r,\s) Removes the Switch before apply new switch Removes the oldvalue before apply new value Removes the Switch String before apply new switch Converts the switches to string. The string that specifies the switches. Update field marks when its a cloned field and it field mark refers the other field Updates the Sequence field result. Gets the type of the entity. Read-only The of the current item. Gets the formatting string of the sequence field. Read-only. The string that specifies the formatting text. Gets or sets the type of caption numbering. The member that specifies the format for caption numbering. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the NumberFormat of the SeqField. field.NumberFormat = CaptionNumberingFormat.Number; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) 'Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) 'Set the NumberFormat of the SeqField. field.NumberFormat = CaptionNumberingFormat.Number 'Updates the document fields document.UpdateDocumentFields() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets caption name. The string that specifies the caption name. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the CaptionName of the SeqField. field.CaptionName = "Test"; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) 'Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) 'Set the CaptionName of the SeqField. field.CaptionName = "Test"; //Updates the document fields document.UpdateDocumentFields() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets a bookmark name that refers to an item elsewhere in the document rather than in the current location. The string that specifies the bookmark name. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the BookmarkName of the SeqField. field.BookmarkName = "Bookmark1"; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) 'Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) 'Set the BookmarkName of the SeqField. field.BookmarkName = "Bookmark1" 'Updates the document fields document.UpdateDocumentFields() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets whether to insert the next sequence number for the specified item. Default value is true. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the InsertNextNumber of the SeqField. field.InsertNextNumber = true; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) 'Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) 'Set the InsertNextNumber of the SeqField. field.InsertNextNumber = True 'Updates the document fields document.UpdateDocumentFields() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets whether to repeats the closest preceding sequence number. Default value is false. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the RepeatNearestNumber of the SeqField. field.RepeatNearestNumber = true; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) 'Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) 'Set the RepeatNearestNumber of the SeqField. field.RepeatNearestNumber = True 'Updates the document fields document.UpdateDocumentFields() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets whether to hides the field result unless a general-formatting-switch is also present. Default value is false. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the HideResult of the SeqField. field.HideResult = true; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") //Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) //Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) //Set the HideResult of the SeqField. field.HideResult = True //Updates the document fields document.UpdateDocumentFields() //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets an integer number to reset the sequence number to. Returns -1 if the number is absent. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the ResetNumber of the SeqField. field.ResetNumber = 7; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") //Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) //Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) //Set the ResetNumber of the SeqField. field.ResetNumber = 7 //Updates the document fields document.UpdateDocumentFields() //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets or sets an integer number representing a heading level to reset the sequence number to. Returns -1 if the number is absent. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Add new paragraph to the section WParagraph paragraph = document.Sections[0].AddParagraph() as WParagraph; //Append sequence field to the paragraph WSeqField field = (WSeqField)paragraph.AppendField("Sequence field", FieldType.FieldSequence); //Set the ResetHeadingLevel of the SeqField. field.ResetHeadingLevel = 1; //Updates the document fields document.UpdateDocumentFields(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") //Add new paragraph to the section Dim paragraph As WParagraph = TryCast(document.Sections(0).AddParagraph(), WParagraph) //Append sequence field to the paragraph Dim field As WSeqField = CType(paragraph.AppendField("Sequence field", FieldType.FieldSequence), WSeqField) //Set the ResetHeadingLevel of the SeqField. field.ResetHeadingLevel = 1; //Updates the document fields document.UpdateDocumentFields() //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Represents a symbol in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Example of adding symbols to the paragraph: "); //Insert symbol with character code 100 WSymbol symbol = paragraph.AppendSymbol(100); symbol.FontName = "Windings"; //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Example of adding symbols to the paragraph: ") 'Insert symbol with character code 100 Dim symbol As WSymbol = paragraph.AppendSymbol(100) symbol.FontName = "Windings" 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initialize a new instance of the class with the specified instance. The instance. Creates layout information. Creates a duplicate copy of the entity. The reference to the newly created object. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Gets the size of the symbol for lay outing. Get Symbol font Initializing LayoutInfo value to null Gets the Symbol text for Word comparison Gets the properties text for Word comparison Compares the current Symbol with another Symbol of another document. Gets the type of the entity. Read-only. The of the current item. Gets the character format for the symbol. Read-only. Gets or sets font name for the symbol. Gets or sets symbol's character code. Get/set character code extension. Get the character code value Represents the textbox in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Append new textbox to the paragraph IWTextBox textbox = paragraph.AppendTextBox(150, 75); //Add new text to the textbox body IWParagraph textboxParagraph = textbox.TextBoxBody.AddParagraph(); textboxParagraph.AppendText("Text inside text box"); textboxParagraph = textbox.TextBoxBody.AddParagraph(); //Add new picture to textbox body IWPicture picture = textboxParagraph.AppendPicture(Image.FromFile(@"Image.png")); picture.Height = 75; picture.Width = 50; //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Append new textbox to the paragraph Dim textbox As IWTextBox = paragraph.AppendTextBox(150, 75) 'Add new text to the textbox body Dim textboxParagraph As IWParagraph = textbox.TextBoxBody.AddParagraph() textboxParagraph.AppendText("Text inside text box") textboxParagraph = textbox.TextBoxBody.AddParagraph() 'Add new picture to textbox body Dim picture As IWPicture = textboxParagraph.AppendPicture(Image.FromFile("Image.png")) picture.Height = 75 picture.Width = 50 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Initialize a new instance of the class with the specified instance. The instance. Adds the self. Executes when the entity is attached to the owner document. Clones the relations. The doc. Creates a duplicate copy of the entity. A reference to the newly created object. Creates layout information. Checks whether text box's line width need to consider for text box client area calcualtion Calculate the textbox bounds based on the Line Width and Margin The bounds Text box format Detaches from owner. Gets the next text body item. Closes this instance. Sets the text body. The text body. Gets as table. Gets the horizontal alignment. The shape align. Gets the border style. The line style. Initializes the default values for TextBox in VML structure. Applies the specified character format to the WTextbox. The character format to be applied. Compares the current textbox with another textbox of another document. Gets the text box text for Word comparison Gets the properties text for Word comparison Gets the properties that needs to be ignored for Word comparison Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Initializing LayoutInfo value to null Gets the Textbox object as Image Gets or sets the name of the text box. The string that represents the name. Gets or sets a value indicating whether this is visible. True if visible; otherwise, false. Gets the child elements of the text box. Read-only. The collection of child elements. Gets the type of the entity. Read-only. The of the current item. Gets or sets Text content layouting bounds for textbox Determine whether the textbox as shape Gets or sets the text box format. Gets the text body of the text box. Read-only. Gets the character format. The character format. Gets or sets the shape.Added to preserve the choice item porperties of rectangular shape The shape. Represents the text form field in the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section WParagraph paragraph = section.AddParagraph() as WParagraph; paragraph.AppendText("General Information"); section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; IWTextRange text = paragraph.AppendText("Name\t"); text.CharacterFormat.Bold = true; //Append Text form field WTextFormField textfield = paragraph.AppendTextFormField(null); //Set type of Text form field textfield.Type = TextFormFieldType.RegularText; textfield.CharacterFormat.FontName = "Calibri"; textfield.CalculateOnExit = true; section.AddParagraph(); paragraph = section.AddParagraph() as WParagraph; text = paragraph.AppendText("Date of Birth\t"); text.CharacterFormat.Bold = true; //Append Text form field textfield = paragraph.AppendTextFormField("Date field", DateTime.Now.ToString("MM/DD/YY")); textfield.StringFormat = "MM/DD/YY"; //Set Text form field type textfield.Type = TextFormFieldType.DateText; textfield.CalculateOnExit = true; //Save the Word document document.Save("Textfield.docx", FormatType.Docx); //Close the document document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) paragraph.AppendText("General Information") section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) Dim text As IWTextRange = paragraph.AppendText("Name" & vbTab) text.CharacterFormat.Bold = True 'Append Text form field Dim textfield As WTextFormField = paragraph.AppendTextFormField(Nothing) 'Set type of Text form field textfield.Type = TextFormFieldType.RegularText textfield.CharacterFormat.FontName = "Calibri" textfield.CalculateOnExit = True section.AddParagraph() paragraph = TryCast(section.AddParagraph(), WParagraph) text = paragraph.AppendText("Date of Birth" & vbTab) text.CharacterFormat.Bold = True 'Append Text form field textfield = paragraph.AppendTextFormField("Date field", DateTime.Now.ToString("MM/DD/YY")) textfield.StringFormat = "MM/DD/YY" 'Set Text form field type textfield.Type = TextFormFieldType.DateText textfield.CalculateOnExit = True 'Save the Word document document.Save("Textfield.docx", FormatType.Docx) 'Close the document document.Close() End Sub Default text of form field. Initializes a new instance of the class. Closes this instance. Creates a duplicate copy of the entity. The reference to the newly created object. Gets the first text range. Gets the text range. Updates the text for text body item. The entity. Updates the text for table. The entity. Updates the text for paragraph item. The entity. Sets the text range. The text range. Removes the previous text. Removes the text body item. The entity. Inserts the paragraph items. The paragraph. Removes the paragraph item. The entity. Appends the date field. Type of the field. Sets the type of the text form field. Type of the text form field. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Registers child objects in XDSL holder. Gets the text form field text for Word comparison Creates layout information. Initializing LayoutInfo value to null Gets the type of the entity. Read-only. The of the current item. Gets or sets text form field type. The member that specifies the type of text form field. Gets or sets the string text format (text, date/time, number) directly. The string that specifies the text format. Gets or sets the default text for text form field. The string that specifies the default text. Gets or sets the maximum text length of the text form field. The integer that specifies the maximum length of the text. Gets or sets the form field text range. The instance that specifies the form field text. Gets or sets the text of text form field. The string that specifies the text. The CHPX converter. CHPs to format. The reader. The format. SPRMSs to property. The style. The character format. Checks whether the byte array length is proper to read value from startIndex The sprm byte array The start index True if startIndex value is proper to read byte array else False Get Byte Value Updates the Font information sprms by property keys order Updates the font information sprms Closes this instance. Summary description for class ParagraphPropertiesConverter updates the border properties from destination to source Apply Direct formatting after applying style Copies the border information Imports the tabs. The tab collection. The destination. Imports the shading. The source. The destination. Imports the borders. The borders. The destination. Summary description for class SectionPropertiesConverter Exports formatting from SectionProperties to ISection's PageSettings Source properties Destination. Prase All. Import the section properties from section sprms. Update the page orientation to portrait if the corresponding sprm is not found. Imports formatting from WParagraphFormat to SectionProperties Imports section properties for Oldpropertyhash. Import the section properties (formattosprms). Converts the Sprms to Row/Cell format PropertyHash Word reader Current table row format Apply the border style for the inputed border, using its line and color information. Represents a border to set style./> Represents a value which consider as enumeration value of border style. Updates the table cell defintion Exports the borders. The source borders. The destination borders. Converts the cell format property hash into sprms Property hash key Corresponding value Single property modifier array Cell's format is old format Current cell index TCGRF Updates the each cell shading information Property hash collection Current cell index To denotes this is row format or not Set border information for cell. Represents the borders of particular cell. Represents the index of the cell, in a row. Represents a cell format of particular cell. Determines whether the specified BRC is empty. The BRC. If the specified BRC is empty, set to true. Imports the paddings. The destination. The source. Exports the paddings. The source. The destination. Updates the paddings value as Zero when the Paddings releated sprm not in the PAPX sprm list Property convertor for textboxes Export properties from TextBoxProps to TextBoxFormat. TextBoxProps item. TextBoxFormat item. Import properties from TetxBoxFormat to TextBoxProps. The TXBX format. The TXBX props. Exports data from textbox container to the specified WTextboxFormat object. The textbox container. The fspa. The textbox format. The skip position origins. Imports data from WTextboxFormat to FileShapeAddress. The fspa. The textbox format. Exports the shape position. The textbox container. The textbox format. Exports the internal margin. The textbox container. The textbox format. Summary description for class ListPropertiesConverter Export paragraphs's list data to ListStyle WListFormat item Current reader Export paragraphs's list data to ListStyle Index of the format. Index of the level. WListFormat item Current reader Updates the new list format information Current reader Current list format Update list format for invalid list Id The list format List id Level Index Updates the type of the list style. The list style. Updates the name of the list style. The list style. Import ListStyle to ListData. Source ListStyle Destination ListData Stylesheet Exports the list format. The list format. The reader. The list id. The list data. Index of the level. Exports the new list format. The list format. The reader. Exports the list style to the document. The list format. The reader. The id. The list data. Export ListLevels to ListLevelCollection. Convert DocIO listlevel to DLS listlevel. Import data from DLS ListLevel format to DocIO ListLevel format. Source DLS ListLevel Destination DocIO ListLevel Stylesheet Stylesheet Create list level character offsets Does current list uses base style? Export list format overrides. Exports the list override. The source lfo. The list override style. The reader. The doc. Summary description for class FormFieldPropertiesConverter Reads the form field properties. The form field. The FRM field. Writes the form field properties. The FRM field. The form field. Gets the text format. The form field format. Gets the string text format. The form field. Gets the number format. The form field format. Gets the string number format. The number format. Gets the default number values. The number format. Formats the text. The text format. The text. Formats the number text. The format. The number format. The input data. Convert input value to a formatted string . The format. Input value. Summary description for XmlParagraphItem. Gets or sets to indicate whether ParagraphItemCollection for Math element. Initializes a new instance of the class. The XML node. The word document. Sets the character format. The character format. Clones itself. Returns cloned object. Clones the relations. The doc. Attaches to paragraph. The paragraph. The item pos. Detaches itself Updates the XML parts. The destination. Updates the XML part container. The SRC package. The SRC container. The dest container. The parts. The index. Closes this instance. Gets the image relations. The image relations. Gets the relations. The relations. Gets the data node. The data node. Gets the character format. The character format. Gets or sets the ZorderIndex Gets the type of the entity. The of the current item. Represents a flag whether image relations are directly for main document or nested reference for other items. Get Curved Connector path formulaColl.Add("x2","*/ w adj1 100000"); formulaColl.Add("x1","+/ l x2 2"); formulaColl.Add("x3","+/ r x2 2"); formulaColl.Add("y3","*/ h 3 4"); This method is used to get the Curved connector 2 path. This method is used to call the Get Curved Connector 4 path. This method is used to get the curved connector5 path. Get Bent Connector path formulaColl.Add("x1","*/ w adj1 100000"); This method is used to get the bend connector 2 path. This method is used to get the bend connector 4 path. This method is used to get the bend connector 5 path. Gets Rounded Rectangle Path Gets Snip Single Corner Rectangle Path Gets Snip Same Side Corner Rectangle Path Gets Snip Diagonal Corner Rectangle Path Gets Snip And Round Single Corner Rectangle Path Gets Round Single Corner Rectangle Path Gets Round Same Side Corner Rectangle Path Gets Round Diagonal Corner Rectangle Path Get Triangle path Gets the right arrow path. Gets the left arrow path. Gets down arrow path. Gets the left right arrow path. Gets the curved right arrow path. Gets the curved left arrow path. Gets the curved up arrow path. Gets the curved down arrow path. Gets up down arrow path. Gets the quad arrow path. Gets the left right up arrow path. Gets the bent arrow path. Gets the U trun arrow path. Gets the left up arrow path. Gets the bent up arrow path. Gets the striped right arrow path. Gets the notched right arrow path. Gets the pentagon path. Gets the chevron path. Gets the right arrow callout path. Gets down arrow callout path. Gets the left arrow callout path. Gets up arrow callout path. Gets the left right arrow callout path. Gets the quad arrow callout path. Gets the circular arrow path. Gets the math plus path. Gets the math minus path. Gets the math multiply path. Gets the math division path. Gets the math equal path. Gets the math not equal path. Gets the flow chart alternate process path. Gets the flow chart predefined process path. Gets the flow chart internal storage path. Gets the flow chart document path. Gets the flow chart multi document path. Gets the flow chart terminator path. Gets the flow chart preparation path. Gets the flow chart manual input path. Gets the flow chart manual operation path. Gets the flow chart connector path. Gets the flow chart off page connector path. Gets the flow chart card path. Gets the flow chart punched tape path. Gets the flow chart summing junction path. Gets the flow chart or path. Gets the flow chart collate path. Gets the flow chart sort path. Gets the flow chart extract path. Gets the flow chart merge path. Gets the flow chart online storage path. Gets the flow chart delay path. Gets the flow chart sequential access storage path. Gets the flow chart magnetic disk path. Gets the flow chart direct access storage path. Gets the flow chart display path. Gets the rectangular callout path. Gets the rounded rectangular callout path. Gets the oval callout path. Gets the cloud callout path. Gets the line callout1 path. Gets the line callout2 path. Gets the line callout3 path. Gets the line callout1 accent bar path. Gets the line callout2 accent bar path. Gets the line callout3 accent bar path. Gets the line callout1 no border path. Gets the line callout2 no border path. Gets the line callout3 no border path. Gets the line callout1 border and accent bar path. Gets the line callout2 border and accent bar path. Gets the line callout3 border and accent bar path. Gets the VML custom shape path path. Gets a custom shape (DrawingML) GraphicPath. Represent a bounds of custom shape. Represent a GraphicPath/PdfPath object. Represent a custom shape object. Returns a GraphicPath/PdfPath with custom shape drawing points. Gets a geometry path of Path2D. Represent a GraphicPath. Represent a input path elements. Represent a width of Path. Represent a height of Path. Represent a bounds of Path. Gets a X value of Path. Represent a width of Path. Represent a X value. Represent a bounds of Path. Returns a X value. Gets a Y value of Path. Represent a height of Path. Represent a Y value. Represent a bounds of Path. Returns a Y value. Convert the path element of custom shape Represent a path element to convert. Represent a converted path elements. Represent a formula collection. Represent a path object. Represent formula with its values. Gets a new GraphicsPath object. Returns a new GraphicsPath object. Get Path adjust value Parse Shape Formula Gets Formula Values Gets Operand Values Gets the next free area. The rectangle of allowed area. The isContinuousSection. True if area allowed, else False Pushes the LayoutedWidget to external holder. The LayoutedWidget. Handles the splitted widget. The splitted widget container. The current state of layout context. The LayoutedWidget. The isLayoutedWidgetNeedToPushed. True for continue layout process, False - for stopping Handle the LayoutedWidget to external holder. The LayoutedWidget. Specifies whether the footnote need to be restart for each page Specifies whether the endnote need to be restart for each section Specifies the footnote count in each columns Specifies the Endnote count in each columns Height used in current page Page Client height Total height layouted by the section Fixed height for the continuous section Current page top Current section index Line count for the section. Paragraph first three lines height. Foot note height. Is first page of the document. Is new page created for current section Need to create new page Is Continuous Section Layouted Line height of the section Column height of the section Column has break items like (Page break or Column break) Previous columns width Footnote ID when the footnote restart with each page Footnote ID when the footnote restart with each section Footnote id for the numbering Endnote id for the numbering Specifies whether azure compatiblity method has been invoked Specifies whether azure compatible with Metafile creation Initializes a new instance of the class. Layouts the specified doc. The doc. The cg. Reset the info of the layouted footnote and endnotes. Footnote collection. Endnote collection Add the line number widget to each line of the section. Layout the line number Updates the X position of the line number based on intersecting floating items. Gets the first inline item X position from a line widget. Calculate the maximum accent of the text. Returns the page setup of current section. Intialize the Graphics instance. Get font for line numbering from document styles. Initializing LayoutInfo value to null Closes this instance. Draws to image. Start index of the page. The no of pages. Type of the image. The stream. This method is used specifically for Image conversion. Draw the image and return Stream Start index of the page. The no of pages. Type of the image. The stream. This method is used specifically for Image conversion. Draws to image. Start index of the page. The no of pages. Type of the image. This method is used specifically for PDF conversion, using intermediate EMF approach. Layouts the pages. Converts the Shape/GroupShape/TextBox/Math object as Image. Draws the Shape/GroupShape/TextBox/Math into an image. Converts an Image into PNG format byte array. Creates an image with specified size. Recreate the layoutInfo for the last line widgets. Resets the floating entity properties. Resets the not added floating entity property. Creates the new section in the current page. Checks the section break. Checks whether all the rows in the last table on the previous page's column have "Keep with Next". Checks whether all the rows in the table has keep with next. layouted widget Handles the page break. Determines whether a header and footer relayout is necessary, specifically for Word 2013 compatibility mode. True if a relayout is required, false otherwise. Retrieves the header/footer height specifically for compatibility with Word 2013. The calculated header/footer height for Word 2013 compatibility. This method assumes a specific header/footer height calculation based on Word 2013 behavior. Retrieves the type of a header or footer widget. Shift the floating items based on the vertical alignment relative to Margin. Gets the header footer. The section. The header footer. Gets the TOC entry page numbers. The doc. Gets the last layouted paragraph. Updates page fields. The doc. Determine to check whether Azure compatible with EMF creation Creates the image. Creates the image. The width. The height. Type of the image. The stream. Determines whether the layouted widget is TOC paragraph. The widget. true if the specified widget is TOC paragraph; otherwise, false. Layouter_s the leaf layout after. The sender. The lt widget. Gets the next area. The area. The isContinuousSection. Checks to create new page based on dynamic table. Flag, denotes whether now layouting dynamic relayout process Calculates the height of intersected items with the floating item. Represents a Layouted section Represents a intersected item. Represents whether the intersecting item intersected with the floating item or not. Retruns height of all the intersected items. Checks whether interesecting item is intersected with floating item. Represents a interesecting item. Represents a floating item. Get Section Client Area Checks the first item in the paragraph is inline item or not. Returns true, if the first item is inline ; otherwise returns false. Determines whether the first item is break items in the specified paragraph. The paragraph. Gets column client area. Clear Fields on new page. Get Required Height for Continuous Section. Get the floating item height. Floating Item collection. Return the Floating item height. Get Required Height for UnEqual columns Get first line height of the section Check whether the current section have multiple columns with equal column width Checks Next Section BreakType. The isContinuousSection. Finds the intersect point and removlt widget. Check whether current widget is floating item or not. Checks whether to continue layouting with next section. If true; Then continue layouting with the next section. If false; Then continue with current section Handle Column Break and Page Break in the Continuous section. If true; Then push all the layouted widgets. If false; Then not push the layouted widgets Update Section Height. Handle Layouted Widget. Get Lines Height. Get Column index which have minimum column width Get Column index which have maximum column width Push Footnote layouted widgets into current page Push Endnote layouted widgets. Specifies whether azure compatible with Metafile creation Gets the DrawingContext Gets and set IsFirstLayouting Gets and set IsUpdatingTOC Gets or sets a value indicating whether this instance is layouting header footer. true if this instance is layouting header footer; otherwise, false. Gets the bookmark hyperlinks. Gets the bookmarks. Decides whether to force fit the widgets during layouting process. While creating new page this property will be enabled. Gets or sets a value indicating whether to preserve the ole equation as bitmap in Word to PDF conversion. Gets pages collection Gets the Last TOC Entry entity Gets or sets value indicates whether to export Word document heading as PDF bookmarks. Gets the current page. The current page. Gets the current section. The current section. Gets the current column. The current column. Gets the result. The result. Gets a value indicating whether this instance is even page. true if this instance is even page; otherwise, false. Gets or sets a value indicating whether create image using transparancy or not Holds the widgets height which is removed from column by Keepwithnext behavior. This is used only for multi column with continous section break. Gets or sets the TOC link style instance. The TOC link styles instance Gets or sets the floating items. The floating items. Gets the floating items. The floating items. Gets or sets the layoutted Equation field switches. The equation field. Gets or sets the maintainlt widget. The maintainlt widget. Gets or sets the inter secting point. The inter secting point. Gets the TOC entry page numbers. The TOC entry page numbers. Indicates whether a header and footer of a specific type needs relayout within the current page. A dictionary with keys representing header/footer types and values indicating relayout necessity (true or false). The dictionary is initialized or reset when the current section changes. It is hold the total number of pages in the section. Gets or sets a value indicating whether to use TC fields. true if use TC fields; otherwise, false. Initializes a new instance of the class. The dl. if set to true [b footer]. Gets the next area. The area. The isContinuousSection. Modifies the area of a header or footer widget. The current header or footer widget container. The original area of the widget. The modified area of the widget, potentially with adjusted height. Pushes the LayoutedWidget to external holder. The LayoutedWidget. Handles the splitted widget. The splitted widget container. The current state of layout context. The LayoutedWidget. isLayoutedWidgetNeedToPushed True for continue layout process, False - for stopping Handles the LayoutedWidget to external holder. The LayoutedWidget. Represents the class which acts as an drawing context. The default script factor for sub/super script. The default factor values to fit the DinOffc font text into the corresponding font grid. /// The default font size. The default minimum font size for picture bullet. The default scale factor for picture bullet. Drawing Graphics. Holds the list of hyperlinks and its corrsponding bounds. Used to skip a text highlighter between the comment ranges. Auto tag index Skips the bookmark add for all the textrange of paragraph. We have hold the underline style properties and bounds to draw a line. using this dictionary, we have draw the line after the text drawn. We have hold the Strike-Through properties and bounds to draw a line. using this dictionary, we have draw the line after the text drawn. Initializes a new instance of the class. Initializes a new instance of the class. The graphics. The page unit. The page unit. The page unit. Draws the Overlapping shape widgets. Currently handled only for Docx format documents Paragraph has a color which is mismatched from the next sibling paragraph color Draws the paragraph. The paragraph. The lt widget. Draws the text box. The text box. The lt widget. We have handle for rotated childshapes. clipbounds value return the clipbounds value Draw Bar Tab Stop of the paragraph Get bounds to draw a paragraph back ground color and texture styles Check whether Paragraph Containing list has break. ltWidget Get the base entity Get the text top position Represent the text Represent the font Represent the size Return the Text drawing y position Decides whether, we should update the tab position or not. The widget. Index of the entity. Updates the tab position. The widget. The client area. Updates the decimal tab position. The lt widget. The client area. Updates the decimal tab position in cell. The lt widget. The client area. Determine whether is Decimal Tab Start Get Width To Shift the xposition of childwidget Get the paragraph format for current tab The Paragraph Paragrph format Get Column Width The Paragraph Get Left width of the Decimal seperator Get Left width of the Decimal seperator The lt widget. The decimal tab start. The decimal tab end. Get Index of Decimal Separator Index denotes the TextRange which have a decimal separator Get Index of Decimal Separator Index denotes the TextRange which have a decimal separator The lt widget. The decimal tab start. The decimal tab end. Width of the left. The decimal separator. if set to true [is separator]. Determine whether is Decimal Separator Get Owner paragraph of the LayoutedWidget Gets the tab end index. Index denotes the item, previous of next subsequent tab. The lt widget. The start index. Get the current list size. Draws the list. Paragraph Layouted Widget List Format Draws the list tab leader. The paragraph. The paragraph info. Width of the list. The x position. The y position. Gets the tab leader. The paragraph info. Gets the ascet value for Equation field. Equation field Check whether the current lines contains the equation field and it contains the height of the corresponding line. Determines whether the paragraph is empty paragraph returns true if paragraph is empty Calculate a line points for the WCommentMark. Draw the WCommentMark. Draw AbsoluteTab Update AbsoluteTab leader Draws the Footnote separator The TXT range. The lt widget. Draws the text range. The TXT range. The lt widget. The text. Trim the space characters in the text. Check whether the widget is in field result or not. Hyper link field Widget. If the widget is in field result, return True;else false. Update Target position to the bookmark hyperlink Create Bookmark reference link Determine whether the tab stop is preserved after the text range in the current line Update Tab Width. Fill with dots for tab leader Font Current layouted widget Character format of layouted widget String format text Fill with sigle for tab leader Font Current layouted widget Character format of layouted widget String format text Fill with hyphens for tab leader Font Current layouted widget Character format of layouted widget String format text Fills with space Draws the Symbol Draws the image. The image. The bounds. Creates color matrix. brightness contrast saturation Convert the image to specified color using ImageAttributes. Original Image ImageAttributes used to change the color. Return the recolored image. Decides whether table is preserved inside text box or not. Table cell Indicates whether to check textbox only. Gets the bounding box of the rectangular bounds after rotation. Bounds Degree of rotation Bounding box of the rectangular bounds Calculates the minX, minY, maxX and maxY of the rotated bounds. Bounding box of a rectangular bounds Gets the rotation transformation matrix Bounds of the picture Rotation angle Transformation matrix Get matrix values of skia's matrix. SKia's matrix to get values from. Image matrix. Converts the ole object into bitmap when the image and object is of WMF and equation type respectively. Draw the InlineShapePicture Create the Pen to draw the picture border Get the color for the picture border Get the line cap for picture border Get LineJoin for picture border Get the Dash and line style for the picture shape Get the dash and line style for picture border Get the Dash style for the border Set the CropImageBounds if the image offset is negative Gets the position to crop the image Draws the equation field swtiches. Draws an Array EQ switch using their properties. Represents a script type A layouted array EQ switch. Represents a charFormat for array switch. Represents a for array EQ switch. Draws a radical switch and the radical symbol as a graphic path. Represents a script type. A layouted radical EQ switch. Represents a charFormat for radical switch elements. Enable the EnableComplexScript if the CharacterFormat.ComplexScript property is true. Current widget character format. Determines the destination points for drawing an original image within a parallelogram. Represents the bounds where the image will be drawn. Represents the size of the image. Represents the width of the left border of the image Represents the width of the top border of the image Align the layouted equation field switch based on the current y position. Layouted EQ field switches x position of layouted equation field switch Y position of layouted equation field switch Shift the eqaution field's x, y position based on the given x,y value. Layouted EQ field switches x position of layouted equation field switch Y position of layouted equation field switch Generates the error text for the equation field. Represents a equation field to generate. Represents a which set for equation field. Represents a X position of equation field. Represents a Y position of equation field. Shift the equation field's y position based on the given y value. Layouted EQ field switches Y position of layouted equation field switch Gets the top most Y position of layouted EQ fields. Layouted EQ field Minimum value of y position Draws the string. Represents a script type. The text. The char format. The para format. The bounds. The clipwidth. The layouted widget. Rotate a Graphics based on Shape Rotation. Specified the rotation angle. Specifies whether text needs to vertically flip. Specifies whether text needs to horizontally flip. Specifies whether the text need to rotate. Specifies the text wrapping style. Indicates whether the text need to scale or not. Indicates whether the line rotate transform is applied or not. Specifies the modified rotation angle. Check that previous or next sibling is tab in that line paragraph CharacterFormat textBounds LayoutedWidget isSameLine Calculate the Text Bounds Add the line to the Dictionary collection Check that can we extend the previous Underline to the next text. Previous boundsRight Current boundsX Current CharacterFormat Previous CharacterFormat Compare the two float values. Value 1 value 2 Round off value Check that text having underline or strike through. TextRange Charformat Check that the Inline content control having the text range. Return true, if the InlineContentControl have text range; Else false. Checks whether the current widget is tab Get the text box widget of current widget. Reverse the string Draws the small cap string. scriptType characterRangeType. The text. The character format. The bounds. The font. The format. The text brush. if set to true [is character spacing]. Determine whether the text is need to clip when the text range y position is greater than the owner row bottom position Determine whether the text is need to clip when the text range x position is beyond the cell bounds or crossing the cell bounds Gets the index of the column. The section. The section bounds. Get Y position to clip paragraph items Get Default font to render non east characters Draw String based on CharacterSpacing Script Type Character Range Type Font style of current Layouted widget Text brush Layouted widget bounds Text string format character Format Transform the graphics rendering positions based on rotation angle Current ltWidget set to true when the widget need to scale set to true when the widget rotate transform is applied Translation points Rotation angle OwnerParagraph Update the X and Y position X posiiton Y position Owner entity Layouted Widget Update the X and Y position when document has different page setup. Gets the height of the layouted text box content. The lt widget. Get Width to shift vertical text Get Bounds to clip the text Update clip bounds based on vertical cell Update clipping bounds based on owner clipping Get Height of the cell with text direction as vertical Draw Chinese Text Checks whether the text is valid. (applicable for Arial text) Draw Unicode Text Draw unicode string Determines whether the owner paragraph is empty text true if owner paragraph is empty, set to true. Rotate and scale the graphics transform matrix Layoted widget bounds Clip bounds Scaling factor value Translation points Rotation angle Scale the graphics transform matrix. Scaling factor value Translation points Rotation angle Draws the paragraph borders. the paragraph The paragraph format. The lt widget. isParagraphMarkIsHidden Draws the paragraph borders Collection of borders, contains the each border rendering order Border bounds Current paragraph borders Previous paragraph borders Paragraph Layouted widget Draws the horizontal border. The border rendering order. The bounds. The borders. The border. if set to true [is multi line left border]. if set to true [is multi line right border]. if set to true [is multi line horizontal border]. Width of the between border line. Width of the left border line. Width of the right border line. Paragraph Layouted widget Draws the left border. The border rendering order. The bounds. The borders. The border. The previous border. if set to true [is multi line top border]. if set to true [is multi line bottom border]. if set to true [is multi line left border]. if set to true [is multi line horizontal border]. Width of the left border line. Width of the top border line. Width of the between border line. Width of the bottom border line. Paragraph Layouted widget Draws the right border. The border rendering order. The bounds. The borders. The border. The previous border. if set to true [is multi line top border]. if set to true [is multi line horizontal border]. if set to true [is multi line right border]. if set to true [is multi line bottom border]. Width of the right border line. Width of the top border line. Width of the between border line. Width of the bottom border line. Paragraph Layouted widget Draws the top border. The border rendering order. The bounds. The borders. The border. if set to true [is multi line top border]. Width of the top border line. Width of the left border line. Width of the right border line. Draws the bottom border. The border rendering order. The bounds. The borders. The border. if set to true [is multi line bottom border]. Width of the left border line. Width of the bottom border line. Width of the right border line. Paragraph Layouted widget If paragraph inside Text box or shape have bottom border and that paragraph is the last element of textbox means Microsoft word will preserve the bottom border at the top of the bottom margin of text box or shape by subtracting the internal bottom margin spacing and the text box or shape line width. The spacing between the paragraph bottom border and textbox's or shape's bottom border Sort the borders based on brightness Border rendering order list Horizontal border Either left border/right border Current paragraph borders To ensure wether we need to remove left or right border Adds the next paragraph bounds. The layouted widget. The bounds. Draw the revision bars in the specified color and width Start point of the revision bar End point of the revision bar Color of the revision bar Width of the revision bar Draws the border. The border. The start. The end. Draws the border. The border. The start. The end. Draws the border. The border. The start. The end. Draws the table. The table. The lt widget. Draws the table row. The row. The lt widget. Draws the table cell. The cell. The lt widget. Fill the Cell Color The Layouted widget Checks the TextBox for Background picture. Draws the texture style. Gets the fore color. Gets the color value. The fore color value. The back color value. The percent. isForeColorEmpty isBackColorEmpty Fill Texture within the bounds Texture Style Fore Color Back Color Bounds Draws the cell borders. The cell. The lt widget. The previous cells top border width Draws the multi line left border. The cell layout information. The left border. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the double line left border. The cell layout information. The left border. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the multi line right border. The cell layout information. The right border. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the right double line border. The cell layout information. The right border. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the multi line bottom border. The cell layout information. The start. The end. isBiDiTable Draws the double line bottom border. The cell layout information. The start. The end. isBiDiTable Draws the multi line top border. The cell layout information. The top border. The start. The end. if set to true [is start]. if set to true [is end]. Draws the top double line border. The cell layout information. The top border. The start. The end. if set to true [is start]. if set to true [is end]. Determines whether the specified border is multiline border Type of the border. Determines whether [is multi line paragraph border] [the specified border type]. Type of the border. Gets the border line array. Type of the border. Width of the line. To identify whether current border is double line border or triple line border Current border which is need to be check Trueid the current border type is double border Draws the multi line left border. The left border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the double line left border. The left border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the triple line left border. The left border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the multi line right border. The right border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the double line right border. The right border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the triple line right border. The right border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the multi line top border. The top border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the double line top border. The top border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the triple line top border. The top border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the multi line bottom border. The bottom border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the double line bottom border. The bottom border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draw the double line for the text. charFormat borderType lineWidth start point end point Draws the triple line bottom border. The bottom border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the multi line between border. The between border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. The left border. The right border. if set to true [is overlap left]. if set to true [is overlap right]. Draws the double line between border. The between border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. The left border. The right border. if set to true [is overlap left]. if set to true [is overlap right]. Draws the triple line between border. The between border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. The left border. The right border. if set to true [is overlap left]. if set to true [is overlap right]. Gets the adjacent border line width Left or right border line array true if we passing left border line array; otherwise false Draws the color of the background. Color of the bg. The width. The height. Draws the back ground image. The image. The page setup. Draws the Watermark Watermark Page setup Bounds Imlementation of Draw method of page. Currentl drawing page autoTagsCount Draws balloons for the track changes. Pen to draw the balloon outline Track changes balloon rect Draws Markup triangles. Position to draw the triangle. Revision Color Checks the current watermark is empty watermark or not. Checks the HeaderFooter Paragraph and Table Weather WaterMark has to draw first Checks the paragraph weather watermark in Paragraph Checks the paragraph weather watermark in Table Checks which One has to draw first watermark or picture,shape,textbox Draw the splitWidgetContainer to PDF document or Image. Currentl split widget container Layouted widget Align the child widgets. The layouted widget. The paragraph. Imlementation of Draw method of IWidget interface . Draw widget to graphics. Draws the specified dc. Check whether the widget is need to drwa or not Draw the page border Page number Imlementation of Draw method of BookMark interface . Decides whether Clipping is necessary or not. Get text highlight color Check whether the paragrah contains Text range Imlementation of Draw method of LayoutedWidget interface . The Layouted widget. Is need to initialize layout info Iterate every child elements of the table and add the floating items into the OverLappedShapeWidgets collection Table layouted widget Iterate the child elements of the paragraph Paragraph layouted widget Checks whether the child widget is floating item and add into the collection Child layouted widget Get space width at end of the line widget. Checks whether the paragraph line is RTL. Checks whether the paragraph line has text bidi. Check that Line item are drawn. LayoutedWidget Return true, if line items are drawn. Draw the Line Based in the collection. Contains the underline values Contains the strike through values Transform the graphics based on the rotation and scaling. The character format. Indicates whether the line need to scale or not. Indicates whether the line rotate transform is applied or not. Indicates whether the line need to set clip or not. Line widget. Gets the rotation values from the textbox, shapes(ChildShapes/GroupShapes). Specified the rotation angle. Specifies whether it is vertical flip. Specifies whether it is horizontally flip. Specifies whether the text need to rotate. Specifies the text wrapping style. Specifies the current textrange. Checks whether the underline width is need to change or not. Draw the underline style. Draw a wavy line using curved points represents the character properties of the text represents the bounds of the text represents the font of the text returns the GraphicsPath object to draw the wavy line Create the Pen to draw the Line for Underline and Strike through. charFormat lineWidth Return the Pen to draw the line. Checks whether clip bounds need to remove from container. Increase the bounds with the table paddings. Updates the clip bounds based on its owner clip bounds. Sets clipping for the particular region. Resets Graphics Transform positions. Scale the graphics with input X and Y scaling values. Specify the scaling factor of X. Specify the scaling factor of Y. Get the bounds based on the frame content. Draw the paragraph Draw a Comment highlighter for the line. Represents a layouted widget of line. Represents a WordDocument. Gets a KeyValuePair for the specified key from specified collection. Represents a input key to find. Represents a KVP colection. Returns a KeyValuePair for the specified key from specified collection. Check whether a KeyValuePair is available in specified collection for the specified key. Represents a input key to find. Represents a KVP colection. Returns a true, if KeyValuePair available in specified collection; Otherwise false. Draw a comment highlighter. Gets maximum height widget of line. Represent a layouted widget of line. Returns a LayoutedWidget, which has maximum height in line. Check whether any of line for current paragraph intersect with floating items. Current widget Whether this is line or line container Draw the back ground colour for current line. Current paragraph Current line widget Find the Back ground color rendering bounds. Check whether line preserved left or right or between floating items. Get the current child widget total bounds. Draw the split table widget Draw method for BlockContentControl Draw method for InlineContentControl Draw WCommentMark Draw AbsoluteTab Draw chart as image Draws chart Draw the Check box. Draw the Drop Down Form Field. Draw the Fields. Draw Ole Object. Draw the Picture. Draw the symbol. Draw the table. Gets the frames first item. Draw the table cell. Draw the table row. Draw the textbox. Draw the text form field. Imlementation of Draw method of LayoutedWidget interface Draw the shape to PDF document or Image. Current shape entity Current shale layouted widget Draw the shape to PDF document or Image. Current shape entity Current shale layouted widget Draw the splitStringWidget SplitStringWidget Layouted split string widget Draw the text ranges. Draw widget to graphics. Draw widget to graphics. Get Cell Widget Gets the owner widget of the paragraph Get owner widget of the cell Determines whether the layouted widget is Overlapping Widget The lt widget. true if the layouted widget is Overlapping shape widget; otherwise, false. Update the positions of text watermark. TextWatermark Draw the text watermark. Convert the Watermark text as Bitmap Image. Change the given color brightness Draw border for the page Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw left border Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw right border Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw bottom border Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw top border Page setup object Header bounds Footer bounds Page bounds Gets the font size for Text Watermark Text Watermark Adjust the brightness and contrast of the picture. Represents a image that we need to gets a graphics. The image. Represents image Attributes if set to true [is picture watermark]. Draws the Picture Watermark Picture Watermark Bounds Page Setup Draws the check box. The checkbox. The lt widget. Draw picture fill Imagebytes Shapes path Layouted widget bounds Apply transparency for image Represents image Attributes Represents image transparency Draw child shape Rotate the shape based on Flip positions Measures the image. The image. Measures the picture bullet size Picture Font The size of picture bullet Measures the string. The text. The font. The format. Measures the string. The text. The font. The format. The character format. isMeasureFromTabList Gets the exact bounds of a string without an line spacing and top/bottom spacing values of font. Specify the input string. Specify the font to measure. Measures the string. The text. The font. The format. The character format. if set to true [is measure from tab list]. if set to true [is measure from small cap string]. Get the factor. Represents a font name. Calculates the font size for subscript and superscript font. Represets a normal font to change as subscript and superscript size. Returns font size of subscript and superscript for corresponding inputed font. Get the Exceeded line height of the Arial unicode MS font. The font. isAscent. Measures the string. The text. The font. The default font The format. The Character format Measures the small cap string. The text. The size. The font. The format. The character format. Draw Unicode Text Gets the ascent The Font. Gets the descent The Font. Translate the specified matrix with offsetX and offsetY Represent the matrix to translate Represent the offsetX Represent the offsetY Represent the MatrixOrder to traslate Multiply the specified matrix with target matrix Represent the matrix to translate Represent the target matrix Represent the MatrixOrder to traslate Rotate the specified matrix with specified angle. Represent the angle to rotate the matrix Represent the center point to rotate a matrix Represent the MatrixOrder to traslate Gets a new GraphicsPath object. Returns a new GraphicsPath object. Gets a new Bitmap object with specified width and height. Represents a width of Bitmap. Represents a height of Bitmap. Returns a new Bitmap object with specified width and height. Gets a Graphics of with specified image. Represents a image that we need to gets a graphics. Returns a Graphics of with specified image. Draw a unicode text with specified font properties. Represents a text. Represents a font. Represents a brush. Represents a bounds. Represents a StringFormat. Gets a image to be drawn. Represents a input image. Returns a image to be drawn. Gets a image to be drawn. Represents a input image bytes. Returns a image to be drawn. Create a Image from specified image stream. Represent a image stream. Returns a Image from specified image stream. Gets a new HatchBrush object with specified HatchStyle and color. Represents a HatchStyle of HatchBrush. Represents a fore color of HatchBrush. Represents a back color of HatchBrush. Returns a new HatchBrush object with specified HatchStyle and color. Gets a new Pen object with specified color. Represents a color of Pen. Returns a new Pen object with specified color. Gets a new Pen object with specified color and width. Represents a color of Pen. Represents a width of Pen. Returns a new Pen object with specified color and width. Gets a new SolidBrush object with specified color. Represents a color of SolidBrush. Returns a new SolidBrush object with specified color. Gets a new ColorMatrix object. Returns new ColorMatrix object. Gets a new ColorMatrix object with specified color matrix. Represents a color of matrix. Returns new ColorMatrix object with specified color matrix. Gets a new ImageAttributes object. Returns a new ImageAttributes object. Draws the arrow head. The shape. The pen. The bounds. if set to true [is arrow head exist]. The path. The line points1. Draws the arrow head. The shape. The pen. The bounds. if set to true [is arrow head exist]. The path. The line points1. Draws the open end arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the close end arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the stealth end arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the close end arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the stealth end arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the open begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the open begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the close begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the close begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the stealth begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the stealth begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Adds the close arrow head points. The points. The pen. Adds the stealth arrow head points. The points. The pen. Adds the open arrow head points. The points. The path. Gets the open arrow default values. The lineFormat. Width of the line. Length of the arrow. The arrow angle. The adjust value. if set to true [is from begin arrow]. Gets the close arrow default values. The shape lineFormat. Width of the line. Length of the arrow. The arrow angle. The adjust value. if set to true [is from begin arrow]. Gets the length of the arrow head. Gets the close narrow arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the close medium arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the close wide arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the open narrow arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the open medium arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the open wide arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Finds the angle to left and right head point. The point1. The point2. Finds the angle to left and right head point. The shape. The point1. The point2. Finds the arrow head angle radians. The point1. The point2. if set to true [is from separate orientation]. Finds the base line end point. The line points. The adjust value. Gets the end point. if set to true [is from begin arrow]. The degree. The length. The adjust value. The line points. The x. The y. Finds the angle radians. The line points. if set to true [is from bottom to top]. Finds the end cap arrow head points. The shape. The pen. The bounds. The line points. if set to true [is from open arrow]. Finds the end cap arrow head points. The shape. The pen. The bounds. The line points. if set to true [is from open arrow]. Finds the left right head points. The line points. The points. The arrow angle. Length of the arrow. if set to true [is from begin arrow]. Construcs the baset line. if set to true [is from begin arrow]. The points. The line points. Gets the arrow default values. The line Format. The pen. Length of the arrow. The arrow angle. The adjust value. if set to true [is from begin arrow]. Radians to degree. The angle. Degree2s the radian. A. Gets the end point. The angle. The length. The start_x. The start_y. The end_x. The end_y. Gets the line points based on flip. The bounds. Determines whether the text range is soft hyphen and that need to be drawn. The lt widget. Gets the string format. The char format. Gets the brush. The color. Gets the color of the text. The char format. Get the RevisionColor Revision color Get the RevisionColor Revision color Is revision type insert type Get the RevisionColor Revision color Is revision type insert type Get the RevisionColor to fill a comment balloon. Revision color Is revision type insert type Updates the alternate font for the font not installed in the system. The char format. Name of the font. The font. Checks the owner paragraph of the textrange is a TOC Text Range Determins whether the paragraph is TOC. Determines the the paragraph contians hyperlink field. To check the current text range is present inside the HyperLink. Check whether current text range is present inside the hyperlink field. Gets the font. The char format. Updates the font name and size based on the Bidi property. Character format of the current text range. Font applied to the current text. Font size applied to the current text. Font style applied to the current text. Returns current text range Bidi font. Gets the string alignment. The para format. Gets the pen. The border. Gets the pen. Type of the border. Width of the border line. Color of the border. Gets the pen. Type of the underline. Width of the underline. Color of the underline. Scales the image. The image. The width. The height. Adds link to the bookmark. The bounds. The bookmark name. The target is nothing. Creates bookmark hyperlink and add into list. Adds the hyper link to collection. The hyperlink. The bounds. Adds the hyper link to collection. The picture. The bounds. Updates the target bounds and page number for current bookmark. Bookmark hyperlink. Bookmark hyperlink value. Updates the TOC level. The paragraph. The bookmark. Updates Result index text the measurer res index bSplitByChar bIsInCell offset Client Width res Index Determine whether the character is CJK leading character A line of text cannot end with any leading characters, which are listed below Determine whether the character is Begin CJK character A line of text cannot begin with any following characters Determine whether the character is CJK overflow character Overflow characters are allowed to render in the same line when it doesn't have required client width to fit the character Get previous text range Get cell Width The paragraph item Concatenates the font name, style, font size and Unicode text and returns the key for PDFFontCollection. Font object to extract font name, font size and font style from. check whether it's unicode or not. Key for the PdfFontCollection dictionary to store and retreive the created PdfFont. Determines whether the text is unicode text true if text is unicode, set to true. Gets length of WORD. NOTE: - WORD: text run that finished by last space letter (sample: "text " or " "; wrong sample: " text" or "text text" ) EXCLUSION: - If text working part have zero symbols return (-1) - If text working part don't consist SPACE letters return legth of text working part Index of word first letter Length of found word Closes this instance. Draws the behind shape widgets. Get Order index of the floating item Get the line width of the picture border for Inline picture shape Get the line width of the picture border Gets or sets a value that indicates whether to regenerate the nested EMF images present in the Word document during PDF conversion. Default value isfalse. True if it is necessary to regenerate the nested EMF images present in the Word document during PDF conversion; otherwise false. Get the Current Bookmark name Gets or sets the value indicates whether to export Word document heading as PDF bookmarks. Decides whether, we should enable PdfMetafile.ComplexScript property for current page. Gets or sets the custom font collection. Gets or sets the custom font name collection. fontName Gets a Fallback font collection of Word document. Gets or set the embedded fonts. Gets or sets the graphics. The graphics. Gets the bitmap graphics. The graphics. Gets the hyperlinks. The hyperlinks. Gets the bookmark hyperlinks list. Gets the bookmarks. Gets the overlapping shape widgets. The overlapping shape widgets. Gets the font metric. The font metric. Gets the string formt. The string formt. Gets or sets a value indicating whether to embed fonts to converted PDF in Word to PDF conversion. Gets or sets a value indicating whether to preserve the ole equation as bitmap in Word to PDF conversion. Gets or sets a value indicating whether to embed the complete font information in the resultant PDF document. Gets or sets a value indicates whether the converted PDF document is tagged or not. Remarks: Set this property as true, to preserve the accessible structure tags from Word document to the converted PDF. Using this property Word documents can be converted to PDF with 508 compliance. Setting this property as true will automatically enable property. Gets the vertical border Gets / sets the horizontal border Initializes a new instance of the class. Name of the bookmark. The page number. The bounds. Gets or sets the bookmarkStyle. The bookmarkStyle. Gets or sets the bounds. The bounds. Gets or sets the page number. The page number. Gets or sets the name of the bookmark. The name of the bookmark. Sort the border rendering order based on its color brightness order Represents the class which drawing a Math Equations. Creates a class instance to render the WMath entity. Represent the Draw the WMath instance. Represent the WMath instance to draw Represent the layouted widget of WMath instance Draw the IOfficeMath instance. Represent the layouted widget of OfficeMath instance Draw the delimiter character with required stretching. Specify the delimiter widget. Specify the required height to stretch. Specify the character format. Draw the Line used in MathML. Represent the layouted widget of a line. Draw the layouted string widget. Represent the string widget Represent the characterFormat Represent the scalingFactor Dispose a MathRenderer object. Gets a class object for drawing. Represents a page. Initializes a new instance of the class. The section. The i number. Initializing LayoutInfo value to null Gets the header area. Gets the footer area. Updates the gutter value of inside (left for odd page and right for even page) margin. Change the Left and Right margin. Gets the column area. The column. Width of the prev. Gets the column area. Index of the column. Width of the prev columns. Gets the section area. The column. Width of the prev. Gets the section area. Index of the column. Width of the prev columns. isNextSection. Collection of lay outed widget. The page widgets. Gets the page document sections. Gets the back ground images of the page. Gets the document back ground color. Collection of Footnote lay outed widget. The Footnote widgets. Collection of Endnote layouted widget. The Endnote widgets. Gets the collection of the trackchanges markups Gets the Collection of BehindWidgets in the page Collection for section id's of End note Widgets. The Section's ID's. Collection for section id's of Foot note Widgets. The Section's ID's. Gets page Setup info. Gets page number. Get the number of Behind widgets in header Get the number of Behind widgets in footer Need to swap left right margin values, when mirror margin property enabled And the current page is even page. Represents a collection of pages Initializes a new instance of the class. Initializes a new instance of the class. Gets the pages. The pages. Initializes a new instance of the class. Gets or sets the rendered image. The rendered image. Gets or sets the hyperlinks. The hyperlinks. Represents a interface class to get fallback fonts during Direct PDF conversion. Summary description for DataReaderEnumerator. Represents the Rows Enumerator. Resets the row index. Returns a value indicating whether the end of row is reached. True if it is end of row, otherwise false Returns the cell value for a specified column name. The string represents the column name. The element at the specified cell. Gets the column names of the table. The string array that has the column names of the table. Gets the total rows count. The integer that represents the total number of rows. Gets the current row index. The integer that represents the index of the current row. Gets the table name. The string that represents the name of the table. Gets a value indicating whether the end of the row is reached. True if it is the end of the row, otherwise false. Gets a value indicating whether the current row is last row. True if its last row, otherwise, false. Initializes a new instance of the class. The data reader. Resets the row index. Returns a Boolean indicating whether the end of row is reached. True if it is end of row, otherwise false Returns the cell value for a specified column name. The string represents the column name. The element at the specified cell. Closes this instance. Gets the current row index. The integer that represents the index of the current row. Gets the total rows count. The integer that represents the total number of rows. Gets the table name. The string that represents the name of the table. Gets a value indicating whether the end of the row is reached. True if it is the end of the row, otherwise false. Gets a value indicating whether the current row is last row. True if its last row, otherwise, false. Gets the column names of the table. The string array that has the column names of the table. Summary description for DataTableEnumerator. Initializes a new instance of the class. The table. Initializes a new instance of the class. The row. Resets the row index. Returns a Boolean indicating whether the end of row is reached. True if it is end of row, otherwise false Returns the cell value for a specified column name. The string represents the column name. The element at the specified cell. Closes this instance. Initializes a new instance of the class. The table. Read the column names from mail merge data table of type IDictionary<string,object> ie collection of ExpandoObject Read the column names of data table using data rows. The table Gets the current row index. The integer that represents the index of the current row. Gets the total rows count. The integer that represents the total number of rows. Gets the table name. The string that represents the name of the table. Gets a value indicating whether the end of the row is reached. True if it is the end of the row, otherwise false. Gets a value indicating whether the current row is last row. True if its last row, otherwise, false. Gets the column names of the table. The string array that has the column names of the table. Summary description for DataViewEnumerator. Resets the row index. Returns a Boolean indicating whether the end of row is reached. True if it is end of row, otherwise false Returns the cell value for a specified column name. The string represents the column name. The element at the specified cell. Closes this instance. Gets the current row index. The integer that represents the index of the current row. Gets the total rows count. The integer that represents the total number of rows. Gets the table name. The string that represents the name of the table. Gets a value indicating whether the end of the row is reached. True if it is the end of the row, otherwise false. Gets a value indicating whether the current row is last row. True if its last row, otherwise, false. Gets the column names of the table. The string array that has the column names of the table. Represents the mail merge functionality in the Word document. Fields used for nested mail merge. Initializes a new instance of the class. The document. Performs the mail merge operation using an array of field names with its values as data source. The array of merge field names. The array of merge field values. Performs the mail merge operation using a IEnumerable as data source. IEnumerable data source that contains the mail merge field names with corresponding values. Performs the mail merge operation for a specified region. The MailMergeDataTable contains the data source for performing mail merge operation. Performs the mail merge operation using a DataRow as data source. The DataRow contains the data for performing mail merge operation. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the mail merge operation using a DataTable as data source. The DataTable contains the data for performing mail merge operation. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the mail merge operation using a DataView as data source. The DataView contains the data for performing mail merge operation. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the mail merge operation using a OleDbDataReader as data source. The OleDbDataReader contains the data for performing mail merge operation. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the mail merge operation using a IDataReader as data source. The IDataReader contains the data for performing mail merge operation. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the mail merge operation for a specified region using DataTable as data source. The DataTable contains the data for performing mail merge operation. ExecuteGroup mail merge functionality performs the replacements of merge fields, in which field names match the table column names with the ///corresponding values of table cell. These replacements are performed for every row contained in the table of the specified region. The region where the mail merge operations are to be performed must be marked by two MergeFields with the following names: TableStart:TableName: For the entry point of the region. TableEnd:TableName: For the end point of the region. For Example, You have to insert three MergeFields in the document with the following field names: TableStart:Geography: Marks the beginning of mail merge region. FieldNames: Will be replaced by values from the table. TableEnd:Geography: Marks the end of mail merge region. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the mail merge operation for a specified region using DataView as data source. The DataView contains the data for performing mail merge operation. ExecuteGroup mail merge functionality performs the replacements of merge fields, in which field names match the table column names with the ///corresponding values of table cell. These replacements are performed for every row contained in the table of the specified region. The region where the mail merge operations are to be performed must be marked by two MergeFields with the following names: TableStart:TableName: For the entry point of the region. TableEnd:TableName: For the end point of the region. For Example, You have to insert three MergeFields in the document with the following field names: TableStart:Geography: Marks the beginning of mail merge region. FieldNames: Will be replaced by values from the table. TableEnd:Geography: Marks the end of mail merge region. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the mail merge operation for a specified region using IDataReader as data source. The IDataReader contains the data for performing mail merge operation. ExecuteGroup mail merge functionality performs the replacements of merge fields, in which field names match the table column names with the ///corresponding values of table cell. These replacements are performed for every row contained in the table of the specified region. The region where the mail merge operations are to be performed must be marked by two MergeFields with the following names: TableStart:TableName: For the entry point of the region. TableEnd:TableName: For the end point of the region. For Example, You have to insert three MergeFields in the document with the following field names: TableStart:Geography: Marks the beginning of mail merge region. FieldNames: Will be replaced by values from the table. TableEnd:Geography: Marks the end of mail merge region. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the nested mail merge operation for a specified region using DataBase as data source. The DbConnection represents the database connection which contains data for mail merge. The array of commands contains the sql queries to get the data from DB. Nested mail merge for a region works when the group start and end is BeginGroup and EndGroup respectively. Nested mail merge for a table works when the group start and end is TableStart and TableEnd respectively. The commands list to retrieve the DataTable from the data source must be in the same order of Group which is preserved in the input WordDocument. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the nested mail merge operation for a specified region using DataBase as data source. The DbConnection represents the database connection which contains data for mail merge. The array of commands contains the sql queries to get the data from DB. Set to true to indicate the is a SQLConnection; otherwise, false. Nested mail merge for a region works when the group start and end is BeginGroup and EndGroup respectively. Nested mail merge for a table works when the group start and end is TableStart and TableEnd respectively. The commands list to retrieve the DataTable from the data source must be in the same order of Group which is preserved in the input WordDocument. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the nested mail merge operation for a specified region using DataSet as data source. The DataSet contains data for mail merge. The array of commands contains the queries to get the data from dataset. Nested mail merge for a region works when the group start and end is BeginGroup and EndGroup respectively. Nested mail merge for a table works when the group start and end is TableStart and TableEnd respectively. The commands list to retrieve the DataTable from the data source must be in the same order of Group which is preserved in the input WordDocument. This method is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamarin platforms. Performs the nested mail merge operation for a specified region using the MailMergeDataTable as data source. The MailMergeDataTable contains the data source for performing mail merge operation. Performs the nested mail merge operation for a specified region using the MailMergeDataSet as data source. The MailMergeDataSet contains the data source for performing mail merge operation. Commands list Returns a collection of merge field names found in the document. The string array which contains the name of all the merge fields name in the document. Gets a collections of merge field names in the specified group. A String that represents the name of the group. The string array which contains the name of all the merge fields name in the specified group. Gets a collections of the merge field group names in the document. The string array which contains the name of all the merge fields group names in the document. Gets the merge field names. The fields array. Name of the group. Closes this instance. Called when group found by GroupSelector. Check the count of the matching records Rows Remove items between Empty Group The group selector Remove items between Empty group present in Text body. The group selector Removes items present between empty group present in Table. The group selector Removes GoBack bookmark from selected group Removes items present in Group after Table Start field The group selector Table Start index Start para index Start cell index End cell index Start row index End row index Removes Items present in group at table end The group selector Table End index End para index Start cell index End cell index Start row index End row index Remove items between empty group present in table cell. The group selector Removes items from start index to end index. Entity Start index End index Called when body group found. The rows enum. Insert page break to start next record of group in new page Removes the bookmark from the TextbodyPart Delete bookmarks Called when row group found. The rows enum. Executes the group for selection. The text body. The item start. The item end. The p item start. The p item end. The rows enum. Checks wheather the Group end need to remove or not when the BeforeClearGroup event is triggered. True, When Group start is not present in the collection,then remove the Group end False, When Group start is present in the collection, then no need to remove the group end Updates the FieldEnd index of EndGroup Get Table object if the given entity is available within the table Executes the group for row selection. The table. Start index of the row. The count. The rows enum. The number of rows that took part in mail merge Executes the nested group. Name of the table. Gets the enumerator for nested mail merge. Name of the table. Updates the enum. Name of the table. The rows enum. Gets the data table. Name of the table. The commands. Gets the data table. Name of the table. The commands. Gets the command. Name of the table. The commands. Updates the variable part of the command. The command. Checks the table nested groups. The start row. The end row. The table. Finds the table groups. The start row. The end row. The table. The founded nested group name. Gets the data table using connent. Name of the table. Gets the data table using data set. Name of the table. Sends MergeField event. The field. The value. The rows enum. Triggers the before clear field event send arugments to BeforeClearGroup event Gets the owner group of the current unmerged field Table name of the Current RowEnumerator Check the next matching record Rows enumerator A boolean value indicating the next matching record Executes for text body. The body items. The rows enum. Executes for text body item. The body items. The rows enum. Executes for paragraph. The paragraph. The rows enum. Checks whether all the paragraphs in the table cell has RemoveEmpty property. Executes for paragraph items. The paragraph. The rows enum. The Paragraph item. The indicate whether the paragraph item collection changed or not. Executes for table. The table. The rows enum. Converts to text. The field. The text. Updates the field value. The field. The rows enum. Trigger the Befor clear field event Updates the merge field result as text range. The merge field. The value. The rows enum. Index of the value. Ensures double quotes for result text when merge field is nested within an IF field. IF field Megre field true if previous items has double quote, else false. Checks double quotes count within specified range of the paragraph. Paragraph Start index End index Double quotes count Check whether the field owner paragraph is detached from document. Removes the field from its owner paragraph The field. Insert text range in the place of merge field with result value The merge field. Gets the field value. The field. The rows enum. Gets the field value. Name of the field. The rows enum. Updates if field value. The field. The rows enum. Updates the merged picture. The field. The paragraph. The instance containing the event data. Copies all document sections to clipboard. Appends copied sections to end of document. Gets the bitmap. The data. Gets the field names for paragraph. The fields array. The paragraph. Name of the group. Gets the field names from paragraph item. The fields array. Paragraph item Name of the group. Iterate StructureDocumentTagBlock items to get the fields name. The fields array. StructureDocumentTagBlocklockContent Name of the group. Determines whether [is start prefix] [the specified field]. The field. true if it specifies a begining of the group field, set to true. Determines whether [is end group] [the specified field]. The field. If it is a end of the group, set to true. Checks the selection. The rows enum. Hides the fields. The sections. Hides the fields. The row. Removes the empty merge fields in body items. The selection. Hides the fields. The body items. Hides the fields. The paragraph. Hides the field. The field. Gets the name of the mapped column name. Name of the merge field. Removes the spell checking. Gets or sets a value indicating whether to remove empty mail merge fields from a document. The default is true. Set true to remove empty mail merge fields from a document; otherwise, false. Gets or sets a value that indicates whether to start a new page for each group of records. The default value is false. Set True to start a new page for each group of records during mail merge execution; otherwise, false. This property is valid for group mail merge and also that the corresponding group start and group end should be present in the text body of the Word document. This property is not valid when the group start, and group end are present in the table, headers and footers. //Load the template Word document. WordDocument document = new WordDocument("Template.docx"); //Data source. DataSet ds = new DataSet(); ds.Tables.Add(); //Define the columns ds.Tables[0].TableName = "Employee"; ds.Tables[0].Columns.Add("NAME"); ds.Tables[0].Columns.Add("DESC"); //Set the values. DataRow row; row = ds.Tables["Employee"].NewRow(); row["NAME"] = "AAA"; row["DESC"] = null; ds.Tables["Employee"].Rows.Add(row); row = ds.Tables["Employee"].NewRow(); row["NAME"] = "BBB"; row["DESC"] = ""; ds.Tables["Employee"].Rows.Add(row); row = ds.Tables["Employee"].NewRow(); row["NAME"] = "CCC"; row["DESC"] = "ccc"; ds.Tables["Employee"].Rows.Add(row); //Enable a flag to start a new page for each group of records. document.MailMerge.StartAtNewPage= true; //Execute mail merge. document.MailMerge.ExecuteGroup(ds.Tables["Employee"]); //Save the Word document. document.Save("Result.docx", FormatType.Docx); //Close the Word document. document.Close(); 'Load the template Word document. Dim document As WordDocument = New WordDocument("Template.docx") 'Data source. Dim ds As DataSet = New DataSet ds.Tables.Add 'Define the columns. ds.Tables(0).TableName = "Employee" ds.Tables(0).Columns.Add("NAME") ds.Tables(0).Columns.Add("DESC") 'Set values. Dim row As DataRow row = ds.Tables("Employee").NewRow row("NAME") = "AAA" row("DESC") = Nothing ds.Tables("Employee").Rows.Add(row) row = ds.Tables("Employee").NewRow row("NAME") = "BBB" row("DESC") = "" ds.Tables("Employee").Rows.Add(row) row = ds.Tables("Employee").NewRow row("NAME") = "CCC" row("DESC") = "ccc" ds.Tables("Employee").Rows.Add(row) 'Enable a flag to start a new page for each group of records. document.MailMerge.StartAtNewPage= true 'Execute mail merge. document.MailMerge.ExecuteGroup(ds.Tables("Employee")) 'Save the Word document. document.Save("Result.docx", FormatType.Docx) 'Close the Word document. document.Close Gets the document. The document. Gets or sets a value indicating whether to remove paragraphs which contain empty merge fields. Set to True to remove empty paragraphs; otherwise, false. Gets or sets a value indicating whether to remove groups which contain empty merge fields. Set to True to remove empty groups; otherwise, false. Gets or sets a value indicating whether to insert a new row for every group in a table while performing mail merge. Default value is false. Set True to insert a new row for every group in a table; otherwise, false. This property is valid only if the group start and group end fields present in the table row with single cell. (i.e., rows containing single cell) //Opens the template document. WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Set "InsertAsNew" as true to insert a new row for every group when group start and end present in the same table cell. document.MailMerge.InsertAsNewRow = true; //Performs the mail merge. document.MailMerge.ExecuteGroup(DataTable); //Saves and closes the WordDocument instance. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Opens the template document. Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Set "InsertAsNew" as true to insert a new row for every group when group start and end present in the same table cell. document.MailMerge.InsertAsNewRow = True 'Performs the mail merge. document.MailMerge.ExecuteGroup(DataTable) 'Saves and closes the WordDocument instance. document.Save("Sample.docx", FormatType.Docx) document.Close() Gets the enumerators which are used during mailmerge. The nested enums. Gets the current data set for nested mail merge. The current data set. Gets the variable command regulat expression. The variable command regex. Gets the group selectors. The group selectors. Gets the collection of mapped fields. The mapped fields represent mapping between fields names in the data source and mail merge fields in the document. The keys of the collection are merge field names and the values are field names in the data source. Gets the previous state of the clear fields. The previous state of the clear fields. Gets the MailMerge settings The following code example demonstrates change the datasource path in the mail merge setting in the document. //Load an existing Word document into WordDocument instance. WordDocument document = new WordDocument("Sample.docx", FormatType.Docx); //Change the datasource property of the mail merge settings in the word document. document.MailMerge.Settings.DataSource = "NewDataSource.txt"; //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx", FormatType.Docx) 'Change the datasource property of the mail merge settings in the word document document.MailMerge.Settings.DataSource = "NewDataSource.txt" 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Occurs during mail merge when a text merge field is encountered in the document. Occurs during mail merge when an image merge field is encountered in the document. Occurs during mail merge when an unmerged field is encountered in the document. Occurs during mail merge when an unmerged group is encountered in the document. The internal fields. Initializes a new instance of the class. The on group found. Initialize the process. Processes the groups. The body. The rows enum. Processes the groups. The table. The start row. The end row. The rows enumerator. Finds inside body items. The body items. Finds the group in the table. The table. The start row. The end row. Clears the selection. Checks the item. The item. Starts the selection. Check whether each data should populate to new row or not. Merge field owner textbody Check whether current row contains single table cell. Owner table cell of merge field. Owner table row of the merge field. Ends the selection. Updates end of row selection in case cell has vertical merge. The cell. Gets or sets a value indicating whether to insert a new row for every group in a table while performing mail merge. Default value is false. Set True to insert a new row for every group in a table; otherwise, false. This property is valid only if the group start and group end fields present in the table row with single cell. (i.e., rows containing single cell) Gets the group selection. The group selection. Gets the row selection. The row selection. Gets the begin group field. The begin group field. Gets or sets the end group field. The end group field. Gets or sets the index of the body item. The index of the body item. Gets a value indicating whether group is found. If group is found, set to true. Gets the name of the group. The name of the group. Gets the Name of Fields which is inside the group - Read-only Represents a row selection. Initializes a new instance of the class. The table. Start index of the row. End index of the row. Validates the indexes. Represents the method that handles MergeField event Represents the method that handles MergeImageField event Represents the method that handles BeforeClearField event Represents the method that handles BeforeClearGroupField Event Represents the document. Represents the current merge field. Represents the Group name. Represents the field value. Represents the current Row index. Represents the clear Field. Represnts the row enumerator Initialize the new instance of class for the specified document with table name, row index, field and its value. IWordDcoument instance The groupName of table The row index of the table The current Merge Field The current Row enumerator The current Field value Gets the document instance - read only Gets the merge field Name. Read-only. The string that specifies the merge field name. Gets or sets the merge field value. An that specifies the field value. Gets the owner group name of the merge field. Gets a Boolean value whether the merge field has mapped field in data source or not. True, if the merge field has mapped field in data source. Otherwise false. Gets the row index. Read-only. The integer that specifies the row index. Gets or sets a Boolean value whether the unmerged merge field can be clear or not. True, Remove the unmerged fields, otherwise False Gets the current merge field. Read-only. Represents the MergeField event that occurs during mail merge operation. Represents the document. Represents the Merge field. Represents the Field Value Represents the Row Index. Represents the Table Name Represents the group name Represents the Text Range Initializes a new instance of class for the specified document with table name, row index, field and its value. The instance. The name of the table to perform merge. The row index in the table. The instance. An that specifies field value. Initializes a new instance of class for the specified document with table name, row index, field and its value. The instance. The name of the table to perform merge. The row index in the table. The instance. An that specifies field value. The owner group name of the merge field Gets the document instance. Read-only. The object. Gets the merge field Name. Read-only. The string that specifies the merge field name. Gets the merge field value. Read-only. An that specifies the field value. Gets the table name. Read-only. The string that specifies the table name. Gets the owner group name of the merge field. Gets the row index. Read-only. The integer that specifies the row index. Gets the character format of the field. Read-only. The instance that specifies the character format. Gets or sets the field value. The string that specifies the field value. Gets the current merge field. Read-only. The current instance. Gets the TextRange. Read-only Represents the MergeImageField event that occurs during Mail merge. Represents the Picture. Initializes a new instance of class for the specified Word document with table name, row index, field instance and the image. The instance. The name of the table to perform merge. The row index in the table. The instance. The instance. Initializes a new instance of class for the specified Word document with table name, row index, field instance and the image. The instance. The name of the table to perform merge. The row index in the table. The instance. An that specifies image. Gets a value indicating whether to use text. Read-only. True if to use the text; otherwise, false. Gets or sets the image file name. The string that specifies the image file name. Gets or sets the image stream. The that represents the image stream. Gets or sets the image. that specifies the image. Gets or sets a value indicating whether this is skip. True if skip; otherwise, false. Gets the Current Picture. Read-only Represents the document. Represents the current merge field. Represents the Group name. Represents the clear Field. Represnts the Field Has Mapped In DataSource Represents the Fields Name Represents the Alternate value for unmerged fields Initialize the new instance of class for the specified document with table name, row index, field and its value. IWordDcoument instance The groupName of table The current Merge Field Is field mapped in Data source The Current Field Vlue Gets the document instance - read only Gets the owner group name of the merge field - read only. Gets a Boolean value whether the merge field has mapped field in data source or not. True, if the merge field has mapped field in data source. Otherwise false. Gets or sets a Boolean value whether the unmerged groups can be clear or not. True, Remove the unmerged fields, otherwise False Gets the Fields Name inside the unmerged group Performs the mail merge operation for a specified region using the IEnumerable as data source. Represents the entries of entity class. Specifies the current entity. Specifies the index value. Initializes a new instance of class with the specified entity. The object. Fetches the entries element. True if contains entry; otherwise, false. Represents the data sets to perform mail merge operation. Create new instance of . Appends a new mail merge data set object to collection. MailMergeDataTable Removes all the mail merge dataset objects from the collection. Gets MailMergeDataTable with necessary table name MailMergeDataTable Name of table Remove MailMergeDataTable with necessary table name Name of table Gets list of data set objects. Read-only. Represents the data tables to perform mail merge operation. Create new instance of class. A string that represents the group Name. A collection of source data used as data source for mail merge operation. Create new instance of object Group Name Sourse data Dictionary Commands of formulation of new tablet Return new instance of MailMergeDataTable from the chosen rows of current MailMergeDataTable Gets a group name. Read-only. Gets a source data. Read-only. A collection of data used as data source for mail merge operation. Represents the mail merge exception. Default exception message. Default constructor. Initializes a new instance of the class with specified exception. The inner exception. Initializes a new instance of the class with specified exception message. A String that represents exception message. Initializes a new instance of the class with specified exception and message. A String that represents exception message. The inner exception. Represents the mail merge settings Checks whether the Key present in the collection or not. Sets the property key Disposes the instances used. Removes the mail merge settings. Removes the mail merge settings, to convert a Word mail merge main document to a normal Word document. Hence the Microsoft Word application won't prompt to mail merge while opening this document. The following code example demonstrates removes the mail merge setting in the document. //Load an existing Word document into WordDocument instance. WordDocument document = new WordDocument("Sample.docx", FormatType.Docx); //Removes the mail merge settings in the word document. if (document.MailMerge.Settings.HasData) document.MailMerge.Settings.RemoveData(); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx", FormatType.Docx) 'Removes the mail merge settings in the word document. If document.MailMerge.Settings.HasData Then document.MailMerge.Settings.RemoveData() End If 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Gets or Sets the record currently displayed in merged document. Gets or Sets the column containing E-mail address. Gets or Sets mail merge error reporting setting. Gets or sets the data source connection string. Gets or sets the data source file path. The following code example demonstrates change the datasource path in the mail merge setting in the document. //Load an existing Word document into WordDocument instance. WordDocument document = new WordDocument("Sample.docx", FormatType.Docx); //Change the datasource property of the mail merge settings in the word document. document.MailMerge.Settings.DataSource = "NewDataSource.txt"; //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx", FormatType.Docx) 'Change the datasource property of the mail merge settings in the word document document.MailMerge.Settings.DataSource = "NewDataSource.txt" 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Gets or sets the data source type. Gets or sets the merged document destination. Gets or sets the remove blank lines from merged documents. Gets or sets the header definition file path. Gets or sets the query contains link to external query file. Gets or sets the merged document to E-Mail attachment. Gets or sets the merged E-mail or Fax subject line. Gets or sets the source document type. Gets or sets the query for data source records to merge. Gets or sets the view merged data within document. Gets or sets the office data source object settings. Gets or sets the properties collection Gets a value indicating whether the document has mail merge settings or not. True, if the document has mail merge settings. Otherwise false. The following code example demonstrates whether the document has mail merge settings or not. //Load an existing Word document into WordDocument instance. WordDocument document = new WordDocument("Sample.docx", FormatType.Docx); //Removes the mail merge settings in the word document. if (document.MailMerge.Settings.HasData) document.MailMerge.Settings.RemoveData(); //Saves the specified document document.Save("Sample.docx", FormatType.Docx); //Close the WordDocument instance document.Close(); 'Load an existing Word document into WordDocument instance Dim document As New WordDocument("Sample.docx", FormatType.Docx) 'Removes the mail merge settings in the word document. If document.MailMerge.Settings.HasData Then document.MailMerge.Settings.RemoveData() End If 'Saves the specified document document.Save("Sample.docx", FormatType.Docx) 'Close the WordDocument instance document.Close() Represents a revision (tracked change) in a Word document. Accepts the specified tracked change. The revision marks are removed, and the changes are incorporated into the document. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Get the revision from the revision collection and accepts. document.Revisions[0].Accept(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Get the revision from the revision collection and accepts. document.Revisions(0).Accept() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Clear the dependent moving revision Gets the revision by given name. Remove the revision from the entity and remove the entity from the revision If the revision has child revision, add the items in the main revision Entity to be removed from the revision The revision to be removed from the entity and the document If we accept the delete revision or reject the insert revision, remove this item from all the corresponding revisions. If we accept the delete revision or reject the insert revision, remove this item from all the corresponding revisions. Accepts or rejects changes tracked from the moment of last change acceptance. The paragraph item. if it accepts changes, set to true. Make changes for the format. Make changes for the section format. Make changes in properties hash. Make changes for character format. Make changes for the break character format. Make changes for paragraph format. Make changes for the table. Make changes for the particular row. Make changes for the table cell. Removes the changed item. The item. if it accepts the changes, set to true. Index of the item. Checks whether the paragraph item need to remove while accept or reject changes Current Revision boolean to ensure accept or reject changes Move items to nextSection The Paragraph OwnerSection of the paragraph Checks the whether item's content has to be moved to next paragraph. The item. if it is accept the changes, set to true . Moves item's content to the next paragraph. The item. Removes the changed formatting. The item. Remove the revision from the formatBase and remove the formatBase from the revision If the revision has child revision, add the items in the main revision FormatBase to be removed from the revision The revision to be removed from the formatBase and the document Moved the child revisions to document collection and process the dependent moving related revisions. Rejects the specified tracked change. The revision marks are removed, leaving the original text intact. //Load an existing Word document into DocIO instance. WordDocument document = new WordDocument("Template.docx"); //Get the revision from the revision collection and rejects. document.Revisions[0].Reject(); //Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Load an existing Word document into DocIO instance. Dim document As WordDocument = New WordDocument("Template.docx") 'Get the revision from the revision collection and rejects. document.Revisions(0).Reject() 'Save and Close the Word document. document.Save("Sample.docx", FormatType.Docx) document.Close() Removes the revision from the owner collection. Clone the revision The cloned revision Initializes a new instance of the class with the specified . The instance. Clears the object. Gets the name of the user who made the specified tracked change. //Loads an existing Word document WordDocument document = new WordDocument(@"Template.docx"); //If the author of current revision is same as expected author name, then accept it if (document.Revisions[0].Author == "Syncfusion") document.Revisions[0].Accept(); //Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Loads an existing Word document Dim document As WordDocument = New WordDocument("Template.docx") 'If the author of current revision is same as expected author name, then accept it If document.Revisions(0).Author Is "Syncfusion" Then worddocument.Revisions(0).Accept() 'Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets the date and time that the tracked change was made. //Loads an existing Word document WordDocument document = new WordDocument(@"Template.docx"); DateTime dateTime = DateTime.Parse("2020 - 05 - 28T20: 26:00"); //If the date of current revision same as expected date, then accepts it if (document.Revisions[0].Date == dateTime) document.Revisions[0].Accept(); //Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Loads an existing Word document Dim document As WordDocument = New WordDocument("Template.docx") Dim dateTime As Date = Date.Parse("2020 - 05 - 28T20: 26:00") 'If the date of current revision same as expected date, then accepts it If document.Revisions(0).[Date] Is dateTime Then wordDocument.Revisions(0).Accept() 'Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets the range of the specified revision. This property will work for any revision type other than IsStyleDefinition. Gets the type of the track change revision. //Loads an existing Word document WordDocument document = new WordDocument("Template.docx"); //If the revision is insertion type of revision, then accept it if (document.Revisions[0].RevisionType == RevisionType.Insertions) document.Revisions[0].Accept(); //Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); 'Loads an existing Word document Dim document As WordDocument = New WordDocument("C:\Users\TamilselvanMuralisun\Desktop\style formatting.docx") 'If the revision is insertion type of revision, then accept it If document.Revisions(0).RevisionType Is RevisionType.Insertions Then word.Revisions(0).Accept() 'Saves and closes the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() Gets the name values of moveto or movefrom revisions types, for remaining tags it holds string.Empty value. Gets the child revision which are not directly linked with main revision. Gets the owner of the revision. The that specifies the owner. Get/Set if the moverange end is preserved after the Paragraph mark Get/Set if the moverange end is preserved after the TableCell mark Get/Set if the moverange end is preserved after the TableRow mark Get/Set if the moverange end is preserved after the Table mark Represents a block content control in the Word document. Initializes a new instance of the class. The Word document. By default, .RichText content control will be created The following example illustrates how to initializes a new instance of the . WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText("Block content control"); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control"; //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("Block content control") 'Adds paragraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control" 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Initializes a new instance of the class. The Word document. The content control type. Adds the self. Creates a duplicate of the entity. Clones the relations. The doc. Gets Next the text body item in the document. Determines whether is hidden paragraph mark is in last item of SDT content. The SDT blog. The layoutinfo. Determines whether the deletion revision paragraph mark is in last item of SDT content. The SDT blog. The layoutinfo. Check whether Block Content Control has paragraph or not Return true if Block Content Control has paragraph; otherwise false Gets the first paragraph of the SDTBlockContent. Gets the Last paragraph of the SDTBlockContent. Checks a value indicating whether this item was deleted from the document, when "Track Changes" is or was set to "true". if this instance is delete revision, set to true. Sets the changed Paragraph format for table. if it specifies the format to be changed, set to true. Sets the changed C format. if it specifies formatting, set to true. Sets the delete rev. if specifies delete revision, set to true. Sets the insert rev. if it specifies insert revision, set to true. Determines whether item has tracked changes. if has tracked changes, set to true. Replaces all entries of given regular expression with replace string. The used to find the text. The string specifies the text to replace. The integer that represents the count of the replacements made. The following example illustrates how to replace the text based on the given regex pattern. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText(@"the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions."); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Find the text based on regex. TextSelection text = control.Find(new Regex("instructions")); //Replaces all entries of given string with replace string. control.Replace(new Regex(@"requirements"), text); //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions.") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Find the text based on regex. Dim text As TextSelection = control.Find(New Regex("instructions")) 'Replaces all entries of given string with replace string. control.Replace(New Regex("requirements"), text) 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Replaces the regular expression with a text selection. The used to find the text. The which specifies the text to replace. The integer that represents the count of the replacements made. The following example illustrates how to replace the text based on the given regex pattern. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText(@"the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions."); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Find the text based on regex. TextSelection text = control.Find(new Regex("instructions")); //Replaces all entries of given string with replace string. control.Replace(new Regex(@"requirements"), text); //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions.") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Find the text based on regex. Dim text As TextSelection = control.Find(New Regex("instructions")) 'Replaces all entries of given string with replace string. control.Replace(New Regex("requirements"), text) 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Replaces all entries of given regular expression with TextRangesHolder. The pattern. The text selection. if it specifies save source formatting, set to true. The following example illustrates how to replace all entries of given regular expression with TextRangesHolder. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText(@"the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions."); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Find the text based on regex. TextSelection text = control.Find(new Regex("instructions")); //Replaces all entries of given string with replace string. control.Replace(new Regex(@"requirements"), text, true); //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions.") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Find the text based on regex. Dim text As TextSelection = control.Find(New Regex("instructions")) 'Replaces all entries of given string with replace string. control.Replace(New Regex("requirements"), text, true) 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Replaces all entries of given string with TextRangesHolder, taking into consideration caseSensitive and wholeWord options. The given. The text selection. if it specifies case sensitive, set to true . if it specifies to search a whole word, set to true . if it specifies save source formatting, set to true. The integer that represents the count of the replacements made. The following example illustrates how to replaces all entries of given string with TextRangesHolder, taking into consideration caseSensitive and wholeWord options. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText(@"the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions."); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Find the text based on regex. TextSelection text = control.Find(new Regex("instructions")); //Replaces all entries of given string with replace string. control.Replace("requirements", text, false, true, true); //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions.") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Find the text based on regex. Dim text As TextSelection = control.Find(New Regex("instructions")) 'Replaces all entries of given string with replace string. control.Replace(New Regex("requirements"), text, false, true, true) 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Replaces first entry of given string with replace string, taking into consideration caseSensitive and wholeWord options. The string to replace Replace string Is case sensitive replace? Search for whole word? Replaces all entries of given regular expression with replace string. Creates the layout information. Removes the character format changes. Removes the paragraph/table format changes. Accepts the changes for character format. Accepts changes in paragraph/table format. Defines whether format was changed. Checks a value indicating whether this item was inserted to the document, when "Track Changes" is or was set to "true". if this instance was inserted, set to true. Gets the first entry of given regex in the content control. The pattern. Text selection with this pattern. The following example illustrates how to find the text based on given regex pattern. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText(@"the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions."); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Find the text based on regex. TextSelection text = control.Find(new Regex("instructions")); //Replaces all entries of given string with replace string. control.Replace(new Regex(@"requirements"), text); //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code to native machine instructions.") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Find the text based on regex. Dim text As TextSelection = control.Find(New Regex("instructions")) 'Replaces all entries of given string with replace string. control.Replace(New Regex("requirements"), text) 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Accepts or rejects changes tracked from the moment of last change acceptance. if it accepts changes, set to true. Returns all entries of given regex. The pattern. Closes the item. Defines whether paragraph format is changed. Gets the string of the Block Content Control for word comparison Compare the block content control between original and revised document Compare block content control from original and revised textbody Compare the block content control Apply delete revision for the whole block content control Apply insert revision for the whole block content control Gets or sets the mapped paragraph to the block content control Gets the block control text body. Read-only. The following example illustrates how to get the text body of the content control. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText("Block content control"); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("Block content control") 'Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets the content control properties. Read-only. The object that specifies the content control properties. The following example illustrates how to set the properties for content control. WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText("Block content control"); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control"; //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("Block content control") 'Adds paragraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control" 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets the content control child entities. The child entities of the The following example illustrates how to get the child entities of the content control. /// WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); BlockContentControl control = new BlockContentControl(document, ContentControlType.RichText); //Adds new paragraph to the section. WParagraph paragraph = new WParagraph(control.Document); //Adds new text to the content control. paragraph.AppendText("Block content control"); //Adds pagagraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph); //Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control"; //Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() Dim control As New BlockContentControl(document, ContentControlType.RichText) 'Adds new paragraph to the section. Dim paragraph As New WParagraph(control.Document) 'Adds new text to the content control. paragraph.AppendText("Block content control") 'Adds paragraph into the Block content control. control.TextBody.ChildEntities.Add(paragraph) 'Sets title of the block content control. control.ContentControlProperties.Title = "Rich text content control" 'Adds content control into the document. document.LastSection.Body.ChildEntities.Add(control) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets the last child in the Content control's textbody. Gets the character format of the content control. Read-only. The object that specifies the character format. Gets the type of the entity. The of the current item. Get the string of the Block Content Control for word comparison Gets count of child items. Gets child item by index. Gets the child items Gets the child entity collection. Represents a row content control in the Word document. Initializes a new instance of . The Word document. In Microsoft Word, .RichText only be inserted as a The following example illustrates how to initializes a new instance of . WordDocument document = new WordDocument(); //Adds new section to the document. IWSection section = document.AddSection(); //Adds new table to the section. IWTable table = section.AddTable(); //Adds new row to the table. WTableRow tableRow = table.AddRow(); //Adds new cell to the row. WTableCell tableCell = tableRow.AddCell(); tableCell.Width = 100; //Adds new paragraph to the cell. IWParagraph paragraph = tableCell.AddParagraph(); //Adds new text to the paragraph. paragraph.AppendText("Content Control"); //Create the Row Content Control for the document. RowContentControl control = new RowContentControl(document); //Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Blue; // Sets it to the row content control. tableRow.ContentControl = control; //Save the Word document. document.Save("Sample.docx", FormatType.Docx); //Close the document. document.Close(); Dim document As New WordDocument() 'Adds new section to the document. Dim section As IWSection = document.AddSection() 'Adds new table to the section. Dim table As IWTable = section.AddTable() 'Adds new row to the table. Dim tableRow As WTableRow = table.AddRow() 'Adds new cell to the row. Dim tableCell As WTableCell = tableRow.AddCell() tableCell.Width = 100 'Adds new paragraph to the cell. Dim paragraph As IWParagraph = tableCell.AddParagraph() 'Adds new text to the paragraph. paragraph.AppendText("Content Control") 'Create the Row Content Control for the document. Dim control As New RowContentControl(document) 'Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Blue ' Sets it to the row content control. tableRow.ContentControl = control 'Save the Word document. document.Save("Sample.docx", FormatType.Docx) 'Close the document. document.Close() Closes this instance. Gets the content control properties. Read-only. The object that specifies the content control properties. The following example illustrates how to set the properties for content control. WordDocument document = new WordDocument(); //Adds new section to the document. IWSection section = document.AddSection(); //Adds new table to the section. IWTable table = section.AddTable(); //Adds new row to the table. WTableRow tableRow = table.AddRow(); //Adds new cell to the row. WTableCell tableCell = tableRow.AddCell(); tableCell.Width = 100; //Adds new paragraph to the cell. IWParagraph paragraph = tableCell.AddParagraph(); //Adds new text to the paragraph. paragraph.AppendText("Content Control"); //Create the Row Content Control for the document. RowContentControl control = new RowContentControl(document); //Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Blue; // Sets it to the row content control. tableRow.ContentControl = control; //Save the Word document. document.Save("Sample.docx", FormatType.Docx); //Close the document. document.Close(); Dim document As New WordDocument() 'Adds new section to the document. Dim section As IWSection = document.AddSection() 'Adds new table to the section. Dim table As IWTable = section.AddTable() 'Adds new row to the table. Dim tableRow As WTableRow = table.AddRow() 'Adds new cell to the row. Dim tableCell As WTableCell = tableRow.AddCell() tableCell.Width = 100 'Adds new paragraph to the cell. Dim paragraph As IWParagraph = tableCell.AddParagraph() 'Adds new text to the paragraph. paragraph.AppendText("Content Control") 'Create the Row Content Control for the document. Dim control As New RowContentControl(document) 'Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Blue ' Sets it to the row content control. tableRow.ContentControl = control 'Save the Word document. document.Save("Sample.docx", FormatType.Docx) 'Close the document. document.Close() Gets the character format of the content control. Read-only. The object that specifies the character format. Represents a cell content control in the Word document. Closes this instance. Gets the content control properties. Read-only. The object that specifies the content control properties. The following example illustrates how to set the properties for content control. WordDocument document = new WordDocument(); //Adds new section to the document. IWSection section = document.AddSection(); //Adds new table to the section. IWTable table = section.AddTable(); //Adds new row to the table. WTableRow tableRow = table.AddRow(); //Adds new cell to the row. WTableCell tableCell = tableRow.AddCell(); tableCell.Width = 100; //Adds new paragraph to the cell. IWParagraph paragraph = tableCell.AddParagraph(); //Adds new text to the paragraph. paragraph.AppendText("Content Control"); //Create the Cell Content Control for the document. CellContentControl control = new CellContentControl(document); //Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Green; //Set it to the row content control. tableCell.ContentControl = control; //Save the Word document. document.Save("Sample.docx", FormatType.Docx); //Close the document. document.Close(); Dim document As New WordDocument() 'Adds new section to the document. Dim section As IWSection = document.AddSection() 'Adds new table to the section. Dim table As IWTable = section.AddTable() 'Adds new row to the table. Dim tableRow As WTableRow = table.AddRow() 'Adds new cell to the row. Dim tableCell As WTableCell = tableRow.AddCell() tableCell.Width = 100 'Adds new paragraph to the cell. Dim paragraph As IWParagraph = tableCell.AddParagraph() 'Adds new text to the paragraph. paragraph.AppendText("Content Control") 'Create the Cell Content Control for the document. Dim control As New CellContentControl(document) 'Change the color value in Content Control properties. control.ContentControlProperties.Color = System.Drawing.Color.Green ' Set it to the row content control. tableCell.ContentControl = control 'Save the Word document. document.Save("Sample.docx", FormatType.Docx) 'Close the document. document.Close() Gets the character format of the content control. Read-only. The object that specifies the character format. Represents a inline content control in the Word document. Initializes a new instance of the class. The doc. Initializes a new instance of the class. The Word document. The content control type. The following example illustrates how to initializes a new instance of the . //Create a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Adds new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds new rich text content control to the last paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" Dim richTextControl As InlineContentControl = section.LastParagraph.LastItem richTextControl.ParagraphItems.Add(textRange) 'Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Determine whether InlineContentControl Items are hidden. Determine whether InlineContentControl Items are in deletion revision. Checks all item inside the content control are same revision or not. True, if all item inside the content control are same revision else false Adds the self. Creates a duplicate of the entity. Clones the relations. The doc. Applies the base format. Applies the base format for character format. Closes this instance. Gets the string of the Inline Content Control for word comparison Copies the items to. The para items. Gets or sets the mapped item to the inline content control Gets the content control paragraphitems. Read-only. The of the current control. The following example illustrates how to set the properties for content control. //Create a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Adds new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds new rich text content control to the last paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" Dim richTextControl As InlineContentControl = section.LastParagraph.LastItem richTextControl.ParagraphItems.Add(textRange) 'Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets the content control properties. Read-only. The object that specifies the content control properties. The following example illustrates how to set the properties for content control. //Create a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Adds new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds new rich text content control to the last paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" Dim richTextControl As InlineContentControl = section.LastParagraph.LastItem richTextControl.ParagraphItems.Add(textRange) 'Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets the character format of the content control. Read-only. The object that specifies the character format. Gets the type of the entity. The of the current item. Gets the end pos from the last item of. If there is any item inside inline content control, returns end pos from its last item. Else, returns their start pos as end pos. Gets or Sets whether the first nested para inside inline content control parsed or not Get the string of the Inline Content Control for word comparison Represents the collection of ContentControlListItem for drop-down and combo box content control. The following example illustrates how to apply various content control properties. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Drop down Content Control"; InlineContentControl dropDownList = paragraph.Items.LastItem as InlineContentControl; dropDownList.ParagraphItems.Add(textRange); ContentControlListItem item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "Ice cream"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "Cool drinks"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); dropDownList.ContentControlProperties.Tag = "Drop down"; dropDownList.ContentControlProperties.Title = "Drop down list items"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Drop down Content Control" Dim dropDownList As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) Dim item As New ContentControlListItem() dropDownList.ParagraphItems.Add(textRange); item.Value = "1" item.DisplayText = "Ice cream" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) item = New ContentControlListItem() item.Value = "2" item.DisplayText = "Cool drinks" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) dropDownList.ContentControlProperties.Tag = "Drop down" dropDownList.ContentControlProperties.Title = "Drop down list items" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Adds ContentControlListItem to the collection. ListItem to be added The following code illustrates how to add ContentControlListItem to the collection. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Drop down Content Control"; InlineContentControl dropDownList = paragraph.Items.LastItem as InlineContentControl; dropDownList.ParagraphItems.Add(textRange); ContentControlListItem item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "Ice cream"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "Cool drinks"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); dropDownList.ContentControlProperties.Tag = "Drop down"; dropDownList.ContentControlProperties.Title = "Drop down list items"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Drop down Content Control" Dim dropDownList As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) dropDownList.ParagraphItems.Add(textRange) Dim item As New ContentControlListItem() item.Value = "1" item.DisplayText = "Ice cream" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) item = New ContentControlListItem() item.Value = "2" item.DisplayText = "Cool drinks" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) dropDownList.ContentControlProperties.Tag = "Drop down" dropDownList.ContentControlProperties.Title = "Drop down list items" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Inserts the ContentControlListItem at the specified index. Index in which ContentControlListItem to be inserted. ContentControlListItem to be inserted The following code illustrates how to insert ContentControlListItem to the collection //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document WSection section = document.AddSection() as WSection; //Add new combo box content control BlockContentControl block = section.Body.AddBlockContentControl(ContentControlType.ComboBox) as BlockContentControl; block.TextBody.AddParagraph(); block.TextBody.LastParagraph.AppendText("Block Content control"); ContentControlListItem item1 = new ContentControlListItem(); item1.DisplayText = "Animals"; item1.Value = "Animals"; ContentControlListItem item2 = new ContentControlListItem(); item2.DisplayText = "Fruits"; item2.Value = "Fruits"; block.ContentControlProperties.ContentControlListItems.Add(item1); //Insert specific item to collection using index block.ContentControlProperties.ContentControlListItems.Insert(1, item2); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add new combo box content control Dim block As BlockContentControl = TryCast(section.Body.AddBlockContentControl(ContentControlType.ComboBox), BlockContentControl) block.TextBody.AddParagraph(); block.TextBody.LastParagraph.AppendText("Block Content control") Dim item1 As New ContentControlListItem() item1.DisplayText = "Animals" item1.Value = "Animals" Dim item2 As New ContentControlListItem() item2.DisplayText = "Fruits" item2.Value = "Fruits" block.ContentControlProperties.ContentControlListItems.Add(item1) 'Insert specific item to collection using index block.ContentControlProperties.ContentControlListItems.Insert(1, item2) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Removes the specified ContentControlListItems from the collection. ContentControlListItem to be removed. The following code illustrates how to remove the specified from the collection. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document WSection section = document.AddSection() as WSection; //Add new combo box content control BlockContentControl block = section.Body.AddBlockContentControl(ContentControlType.ComboBox) as BlockContentControl; block.TextBody.AddParagraph(); block.TextBody.LastParagraph.AppendText("Block Content control"); ContentControlListItem item1 = new ContentControlListItem(); item1.DisplayText = "Animals"; item1.Value = "Animals"; ContentControlListItem item2 = new ContentControlListItem(); item2.DisplayText = "Fruits"; item2.Value = "Fruits"; block.ContentControlProperties.ContentControlListItems.Add(item1); block.ContentControlProperties.ContentControlListItems.Add(item2); //Remove specific item from collection block.ContentControlProperties.ContentControlListItems.Remove(item1); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add new combo box content control Dim block As BlockContentControl = TryCast(section.Body.AddBlockContentControl(ContentControlType.ComboBox), BlockContentControl) block.TextBody.AddParagraph() block.TextBody.LastParagraph.AppendText("Block Content control") Dim item1 As New ContentControlListItem() item1.DisplayText = "Animals" item1.Value = "Animals" Dim item2 As New ContentControlListItem() item2.DisplayText = "Fruits" item2.Value = "Fruits" block.ContentControlProperties.ContentControlListItems.Add(item1) block.ContentControlProperties.ContentControlListItems.Add(item2) 'Remove specific item from collection block.ContentControlProperties.ContentControlListItems.Remove(item1) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Removes ContentControlListItems from the collection at specified collection. ContentControlListItem's index to be removed. The following code illustrates how to remove ContentControlListItem from the collection at specified index. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document WSection section = document.AddSection() as WSection; //Add new combo box content control BlockContentControl block = section.Body.AddBlockContentControl(ContentControlType.ComboBox) as BlockContentControl; block.TextBody.AddParagraph(); block.TextBody.LastParagraph.AppendText("Block Content control"); ContentControlListItem item1 = new ContentControlListItem(); item1.DisplayText = "Animals"; item1.Value = "Animals"; ContentControlListItem item2 = new ContentControlListItem(); item2.DisplayText = "Fruits"; item2.Value = "Fruits"; block.ContentControlProperties.ContentControlListItems.Add(item1); block.ContentControlProperties.ContentControlListItems.Add(item2); //Remove specific item from collection block.ContentControlProperties.ContentControlListItems.RemoveAt(0); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add new combo box content control Dim block As BlockContentControl = TryCast(section.Body.AddBlockContentControl(ContentControlType.ComboBox), BlockContentControl) block.TextBody.AddParagraph() block.TextBody.LastParagraph.AppendText("Block Content control"); Dim item1 As New ContentControlListItem() item1.DisplayText = "Animals" item1.Value = "Animals" Dim item2 As New ContentControlListItem() item2.DisplayText = "Fruits" item2.Value = "Fruits" block.ContentControlProperties.ContentControlListItems.Add(item1) block.ContentControlProperties.ContentControlListItems.Add(item2) 'Remove specific item from collection block.ContentControlProperties.ContentControlListItems.RemoveAt(0) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Returns ContentControlListItems as a collection. An object that can be used to iterate through the collection. Closes this instance. Creates a duplicate of the entity. Gets the last value �Gets the list items of the drop-down list or combo-box content control.. The following code illustrates how to get from collection based on specified index. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document WSection section = document.AddSection() as WSection; //Add new combo box content control BlockContentControl block = section.Body.AddBlockContentControl(ContentControlType.ComboBox) as BlockContentControl; block.TextBody.AddParagraph(); block.TextBody.LastParagraph.AppendText("Block Content control"); ContentControlListItem item1 = new ContentControlListItem(); item1.DisplayText = "Animals"; item1.Value = "Animals"; ContentControlListItem item2 = new ContentControlListItem(); block.ContentControlProperties.ContentControlListItems.Add(item1); //Insert specific item to collection using index block.ContentControlProperties.ContentControlListItems.Insert(1, item2); //Get the ContentControlListItem from the collection block.ContentControlProperties.ContentControlListItems[1].DisplayText = "Fruits"; block.ContentControlProperties.ContentControlListItems[1].Value = "Fruits"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add new combo box content control Dim block As BlockContentControl = TryCast(section.Body.AddBlockContentControl(ContentControlType.ComboBox), BlockContentControl) block.TextBody.AddParagraph() block.TextBody.LastParagraph.AppendText("Block Content control") Dim item1 As New ContentControlListItem() item1.DisplayText = "Animals" item1.Value = "Animals" Dim item2 As New ContentControlListItem() block.ContentControlProperties.ContentControlListItems.Add(item1) 'Insert specific item to collection using index block.ContentControlProperties.ContentControlListItems.Insert(1, item2); 'Get the ContentControlListItem from the collection block.ContentControlProperties.ContentControlListItems(1).DisplayText = "Fruits" block.ContentControlProperties.ContentControlListItems(1).Value = "Fruits" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() �Returns the count of ContentControlListItem's collection. The following code illustrates how to get the count of in the collection. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document WSection section = document.AddSection() as WSection; //Add new combo box content control BlockContentControl block = section.Body.AddBlockContentControl(ContentControlType.ComboBox) as BlockContentControl; block.TextBody.AddParagraph(); block.TextBody.LastParagraph.AppendText("Block Content control"); ContentControlListItem item1 = new ContentControlListItem(); item1.DisplayText = "Animals"; item1.Value = "Animals"; ContentControlListItem item2 = new ContentControlListItem(); item2.DisplayText = "Fruits"; item2.Value = "Fruits"; block.ContentControlProperties.ContentControlListItems.Add(item1); block.ContentControlProperties.ContentControlListItems.Add(item2); //Get the count of content control list items int count = block.ContentControlProperties.ContentControlListItems.Count; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As WSection = TryCast(document.AddSection(), WSection) 'Add new combo box content control Dim block As BlockContentControl = TryCast(section.Body.AddBlockContentControl(ContentControlType.ComboBox), BlockContentControl) block.TextBody.AddParagraph() block.TextBody.LastParagraph.AppendText("Block Content control") Dim item1 As New ContentControlListItem() item1.DisplayText = "Animals" item1.Value = "Animals" Dim item2 As New ContentControlListItem() item2.DisplayText = "Fruits" item2.Value = "Fruits" block.ContentControlProperties.ContentControlListItems.Add(item1) block.ContentControlProperties.ContentControlListItems.Add(item2) 'Get the count of content control list items Dim count As Integer = block.ContentControlProperties.ContentControlListItems.Count 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Represents the list item in a drop-down list content control or in a combo box content control. The following example illustrates how to create and manipulate list item in a drop-down list content control or in a combo box content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Drop down Content Control"; InlineContentControl dropDownList = paragraph.Items.LastItem as InlineContentControl; dropDownList.ParagraphItems.Add(textRange); ContentControlListItem item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "Ice cream"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "Cool drinks"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); dropDownList.ContentControlProperties.Tag = "Drop down"; dropDownList.ContentControlProperties.Title = "Drop down list items"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Drop down Content Control" Dim dropDownList As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) Dim item As New ContentControlListItem() dropDownList.ParagraphItems.Add(textRange) item.Value = "1" item.DisplayText = "Ice cream" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) item = New ContentControlListItem() item.Value = "2" item.DisplayText = "Cool drinks" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) dropDownList.ContentControlProperties.Tag = "Drop down" dropDownList.ContentControlProperties.Title = "Drop down list items" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets/Sets the text to be displayed as list item. The following code illustrates how to access DisplayText property of the list item. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Drop down Content Control"; InlineContentControl dropDownList = paragraph.Items.LastItem as InlineContentControl; //richTextControl.ParagraphItems.Add(textRange); ContentControlListItem item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "Ice cream"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "Cool drinks"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); dropDownList.ContentControlProperties.Tag = "Drop down"; dropDownList.ContentControlProperties.Title = "Drop down list items"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Drop down Content Control" Dim dropDownList As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) 'richTextControl.ParagraphItems.Add(textRange); Dim item As New ContentControlListItem() item.Value = "1" item.DisplayText = "Ice cream" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) item = New ContentControlListItem() item.Value = "2" item.DisplayText = "Cool drinks" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) dropDownList.ContentControlProperties.Tag = "Drop down" dropDownList.ContentControlProperties.Title = "Drop down list items" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets/Sets the value of the list item. The following code illustrates how to set the value of the list item. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Drop down Content Control"; InlineContentControl dropDownList = paragraph.Items.LastItem as InlineContentControl; ContentControlListItem item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "Ice cream"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "Cool drinks"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); dropDownList.ContentControlProperties.Tag = "Drop down"; dropDownList.ContentControlProperties.Title = "Drop down list items"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Drop down Content Control" Dim dropDownList As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) Dim item As New ContentControlListItem() item.Value = "1" item.DisplayText = "Ice cream" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) item = New ContentControlListItem() item.Value = "2" item.DisplayText = "Cool drinks" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) dropDownList.ContentControlProperties.Tag = "Drop down" dropDownList.ContentControlProperties.Title = "Drop down list items" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Represents the formatting options of the content control in the Word document. The following example illustrates how to apply various content control properties. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); richTextControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags; richTextControl.ContentControlProperties.Color = Color.Gray; richTextControl.ContentControlProperties.LockContentControl = true; richTextControl.ContentControlProperties.Tag = "RichText"; richTextControl.ContentControlProperties.Title = "Rich text content control"; //Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text); //Add new text to the content control WTextRange textRange1 = new WTextRange(document); textRange1.Text = "Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange1); InlineContentControl textControl = paragraph.Items.LastItem as InlineContentControl; textControl.ParagraphItems.Add(textRange1); textControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags; textControl.ContentControlProperties.Color = Color.Gray; textControl.ContentControlProperties.LockContentControl = true; textControl.ContentControlProperties.LockContents = true; textControl.ContentControlProperties.Multiline = true; textControl.ContentControlProperties.Tag = "Text"; textControl.ContentControlProperties.Title = "Text content control"; //Add new date content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Date); //Add new text to the content control WTextRange textRange2 = new WTextRange(document); textRange2.Text = "Date Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange2); InlineContentControl dateControl = paragraph.Items.LastItem as InlineContentControl; dateControl.ParagraphItems.Add(textRange2); dateControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags; dateControl.ContentControlProperties.DateCalendarType = CalendarType.GregorianArabic; dateControl.ContentControlProperties.DateDisplayFormat = "dd yy MMMM"; dateControl.ContentControlProperties.DateDisplayLocale = LocaleIDs.en_US; dateControl.ContentControlProperties.DateStorageFormat = ContentControlDateStorageFormat.DateStorageDate; dateControl.ContentControlProperties.Tag = "Date control"; dateControl.ContentControlProperties.Title = "Date content control"; //Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList); //Add new text to the content control WTextRange textRange3 = new WTextRange(document); textRange3.Text = "Drop down Content Control"; InlineContentControl dropDownList = paragraph.Items.LastItem as InlineContentControl; //richTextControl.ParagraphItems.Add(textRange); ContentControlListItem item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "Ice cream"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "Cool drinks"; dropDownList.ContentControlProperties.ContentControlListItems.Add(item); dropDownList.ContentControlProperties.Tag = "Drop down"; dropDownList.ContentControlProperties.Title = "Drop down list items"; //Add new picture content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Picture); Image image = Image.FromFile("Image.png"); IWPicture picture = new WPicture(document); picture.LoadImage(image); picture.Height = 100; picture.Width = 100; InlineContentControl pictureControl = paragraph.Items.LastItem as InlineContentControl; pictureControl.ParagraphItems.Add(picture); pictureControl.ContentControlProperties.Tag = "Picture control"; pictureControl.ContentControlProperties.Title = "picture control"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) richTextControl.ParagraphItems.Add(textRange) richTextControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags richTextControl.ContentControlProperties.Color = Color.Gray richTextControl.ContentControlProperties.LockContentControl = True richTextControl.ContentControlProperties.Tag = "RichText" richTextControl.ContentControlProperties.Title = "Rich text content control" 'Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text) 'Add new text to the content control Dim textRange1 As New WTextRange(document) textRange1.Text = "Text Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange1) Dim textControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) textControl.ParagraphItems.Add(textRange1) textControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags textControl.ContentControlProperties.Color = Color.Gray textControl.ContentControlProperties.LockContentControl = True textControl.ContentControlProperties.LockContents = True textControl.ContentControlProperties.Multiline = True textControl.ContentControlProperties.Tag = "Text" textControl.ContentControlProperties.Title = "Text content control" 'Add new date content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.[Date]) 'Add new text to the content control Dim textRange2 As New WTextRange(document) textRange2.Text = "Date Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange2) Dim dateControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) dateControl.ParagraphItems.Add(textRange2) dateControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags dateControl.ContentControlProperties.DateCalendarType = CalendarType.GregorianArabic dateControl.ContentControlProperties.DateDisplayFormat = "dd yy MMMM" dateControl.ContentControlProperties.DateDisplayLocale = LocaleIDs.en_US dateControl.ContentControlProperties.DateStorageFormat = ContentControlDateStorageFormat.DateStorageDate dateControl.ContentControlProperties.Tag = "Date control" dateControl.ContentControlProperties.Title = "Date content control" 'Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList) 'Add new text to the content control Dim textRange3 As New WTextRange(document) textRange3.Text = "Drop down Content Control" Dim dropDownList As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) 'richTextControl.ParagraphItems.Add(textRange); Dim item As New ContentControlListItem() item.Value = "1" item.DisplayText = "Ice cream" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) item = New ContentControlListItem() item.Value = "2" item.DisplayText = "Cool drinks" dropDownList.ContentControlProperties.ContentControlListItems.Add(item) dropDownList.ContentControlProperties.Tag = "Drop down" dropDownList.ContentControlProperties.Title = "Drop down list items" 'Add new picture content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Picture) Dim image As Image = image.FromFile("Image.png") Dim picture As IWPicture = New WPicture(document) picture.LoadImage(image) picture.Height = 100 picture.Width = 100 Dim pictureControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) pictureControl.ParagraphItems.Add(picture) pictureControl.ContentControlProperties.Tag = "Picture control" pictureControl.ContentControlProperties.Title = "picture control" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Creates a duplicate of the entity. Clones the relations. The doc. Sets the owner for content control properties. The owner content control. Closes this instance. Get the string value of the content control properties. Compare the properties of content control Gets or sets a value indicating the identification for the content control Gets or sets a value indicating the format in which dates are displayed in Date picker content control. The following example illustrates how to set date display format for the Date picker content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Date); InlineContentControl datePicker = paragraph.Items.LastItem as InlineContentControl; WTextRange textRange = new WTextRange(document); //Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString(); datePicker.ParagraphItems.Add(textRange); //Sets format for date to display. datePicker.ContentControlProperties.DateDisplayFormat = "M/d/yyyy"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.[Date]) Dim datePicker As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) Dim textRange As New WTextRange(document) 'Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString() datePicker.ParagraphItems.Add(textRange) datePicker.ContentControlProperties.DateDisplayFormat = "M/d/yyyy" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating the language format for the date displayed in a Date picker content control. The following example illustrates how to set date display locale for the Date picker content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Date); InlineContentControl datePicker = paragraph.Items.LastItem as InlineContentControl; WTextRange textRange = new WTextRange(document); //Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString(); datePicker.ParagraphItems.Add(textRange); //Sets the language format for the date. datePicker.ContentControlProperties.DateDisplayLocale = LocaleIDs.en_US; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.[Date]) Dim datePicker As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) Dim textRange As New WTextRange(document) 'Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString() datePicker.ParagraphItems.Add(textRange) 'Sets the language format for the date. datePicker.ContentControlProperties.DateDisplayLocale = LocaleIDs.en_US 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating the full date of the date content control Gets or sets a value indicating docpart of placeholder Gets or sets a value indicating the storage and retrieval of dates when a date content control is bound to the XML data storage. The following example illustrates how to set format for date display locale for the Date picker content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Date); InlineContentControl datePicker = paragraph.Items.LastItem as InlineContentControl; WTextRange textRange = new WTextRange(document); //Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString(); datePicker.ParagraphItems.Add(textRange); //Sets the storage and retrieval format for the date. datePicker.ContentControlProperties.DateStorageFormat = ContentControlDateStorageFormat.DateStorageDate; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.[Date]) Dim datePicker As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) Dim textRange As New WTextRange(document) 'Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString() datePicker.ParagraphItems.Add(textRange) 'Sets the storage and retrieval format for the date. datePicker.ContentControlProperties.DateStorageFormat = ContentControlDateStorageFormat.DateStorageDate; 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating the calendar type for a Date picker content control. The following example illustrates how to set calendar type for the Date picker content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Date); InlineContentControl datePicker = paragraph.Items.LastItem as InlineContentControl; WTextRange textRange = new WTextRange(document); //Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString(); datePicker.ParagraphItems.Add(textRange); //Sets calendar type for the date picker control. datePicker.ContentControlProperties.DateCalendarType = CalendarType.Gregorian; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new date picker content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.[Date]) Dim datePicker As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) Dim textRange As New WTextRange(document) 'Sets today's date to display. textRange.Text = DateTime.Now.ToShortDateString() datePicker.ParagraphItems.Add(textRange) 'Sets calendar type for the date picker control. datePicker.ContentControlProperties.DateCalendarType = CalendarType.Gregorian 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets the current state of the Check box content control. true if check box current state is checked; otherwise, false. Gets or sets a value indicating whether the user can delete a content control from the active Word document true if the control cannot be deleted; otherwise, false. The following example illustrates how to lock the content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Enables content control lock. richTextControl.ContentControlProperties.LockContentControl = true; //Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) richTextControl.ParagraphItems.Add(textRange) 'Enables content control lock. richTextControl.ContentControlProperties.LockContentControl = True 'Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating whether the user can edit the contents of a content control. true if the content of the control cannot be deleted; otherwise, false. The following example illustrates how to set Temporary property of the content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new rich text content control to the paragraph. paragraph.AppendInlineContentControl(ContentControlType.RichText); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; richTextControl.ParagraphItems.Add(textRange); //Protects the content control. richTextControl.ContentControlProperties.LockContents = true; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new rich text content control to the paragraph. paragraph.AppendInlineContentControl(ContentControlType.RichText) Dim richTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" richTextControl.ParagraphItems.Add(textRange) 'Protects the content control. richTextControl.ContentControlProperties.LockContents = True 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating whether a text content control allows multiple lines of text. This property is applicable only for Plain text content control. true if the control allows multiple lines of text; otherwise, false. The following example illustrates how to set Multiline property of Plain text content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new plain text content control to the paragraph. paragraph.AppendInlineContentControl(ContentControlType.Text); InlineContentControl plainTextControl = paragraph.Items.LastItem as InlineContentControl; //Enables multiline for plain text control. plainTextControl.ContentControlProperties.Multiline = true; //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Plain Text Content Control"; plainTextControl.ParagraphItems.Add(textRange); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new plain text content control to the paragraph. paragraph.AppendInlineContentControl(ContentControlType.Text) Dim plainTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) 'Enables multiline for plain text control. plainTextControl.ContentControlProperties.Multiline = True 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Plain Text Content Control" plainTextControl.ParagraphItems.Add(textRange) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating the appearance of the content control. The default value is .BoundingBox. The following example illustrates how to change the appearance of content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); //Sets Tag appearance for the content control. richTextControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) richTextControl.ParagraphItems.Add(textRange) 'Sets Tag appearance for the content control. richTextControl.ContentControlProperties.Appearance = ContentControlAppearance.Tags 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Use BoundingBox type to display the contents of content control within a box. Use Tags type to display the contents of content control within tags. Use Hidden type to display the contents of content control without any box or tags. Gets or sets a value indicating the color of the content control. The following example illustrates how to change the color of content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets the Color property of content control. richTextControl.ContentControlProperties.Color = Color.Blue; //Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) richTextControl.ParagraphItems.Add(textRange) 'Sets the Color property of content control. richTextControl.ContentControlProperties.Color = Color.Blue 'Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating the title of the content control The following example illustrates how to set the title property for the content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control"; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) richTextControl.ParagraphItems.Add(textRange) 'Sets Title property of the content control. richTextControl.ContentControlProperties.Title = "Rich text content control" 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating the content control has bibliograph Gets or sets a value indicating whether the content control has reference Gets or sets the value indicating that the content control can be unlocked Gets or sets values indicating the items in a drop-down list content control or in a combo box content control The following example illustrates how to set the ContentControlListItems for Combo-box and Drop-down content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList); InlineContentControl dropDownList = paragraph.Items.LastItem as InlineContentControl; //Set default option in drop down list. WTextRange textRange = new WTextRange(document); textRange.Text = "Choose an item"; dropDownList.ParagraphItems.Add(textRange); //Add item into drop down list. ContentControlListItem item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "DocIO"; //Add item into collection of drop down list items. dropDownList.ContentControlProperties.ContentControlListItems.Add(item); //Add item into drop down list. item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "PDF"; //Add item into collection of drop down list items. dropDownList.ContentControlProperties.ContentControlListItems.Add(item); //Add combo box control. IInlineContentControl comboboxControl = paragraph.AppendInlineContentControl(ContentControlType.ComboBox); //Set default option in Combo box. textRange = new WTextRange(document); textRange.Text = "Choose an item"; comboboxControl.ParagraphItems.Add(textRange); //Add item into combo box list. item = new ContentControlListItem(); item.Value = "1"; item.DisplayText = "Windows"; //Add item into collection of combo box list items. comboboxControl.ContentControlProperties.ContentControlListItems.Add(item); //Add another item into combo box list. item = new ContentControlListItem(); item.Value = "2"; item.DisplayText = "Xamarin"; //Add item into collection of combo box list items. comboboxControl.ContentControlProperties.ContentControlListItems.Add(item); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new drop down list content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.DropDownList) Dim dropDownList As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) 'Set default option in drop down list. Dim textRange As New WTextRange(document) textRange.Text = "Choose an item" dropDownList.ParagraphItems.Add(textRange) 'Add item into drop down list. Dim item As New ContentControlListItem() item.Value = "1" item.DisplayText = "DocIO" 'Add item into collection of drop down list items. dropDownList.ContentControlProperties.ContentControlListItems.Add(item) 'Add item into drop down list. item = New ContentControlListItem() item.Value = "2" item.DisplayText = "PDF" 'Add item into collection of drop down list items. dropDownList.ContentControlProperties.ContentControlListItems.Add(item) 'Add combo box control. Dim comboboxControl As IInlineContentControl = paragraph.AppendInlineContentControl(ContentControlType.ComboBox) 'Set default option in Combo box. textRange = New WTextRange(document) textRange.Text = "Choose an item" comboboxControl.ParagraphItems.Add(textRange) 'Add item into combo box list. item = New ContentControlListItem() item.Value = "1" item.DisplayText = "Windows" 'Add item into collection of combo box list items. comboboxControl.ContentControlProperties.ContentControlListItems.Add(item) 'Add another item into combo box list. item = New ContentControlListItem() item.Value = "2" item.DisplayText = "Xamarin" 'Add item into collection of combo box list items. comboboxControl.ContentControlProperties.ContentControlListItems.Add(item) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets the document part list to the content control Gets or sets the document part object to the content control Gets the type of the content control. The following example illustrates how to get type of content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); paragraph.AppendText("Plain Text"); //Add new plain text content control to the paragraph. paragraph.AppendInlineContentControl(ContentControlType.Text); InlineContentControl inlineContentControl = paragraph.Items.LastItem as InlineContentControl; //Gets the type of content control. ContentControlType controlType = inlineContentControl.ContentControlProperties.Type; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() paragraph.AppendText("Plain Text") 'Add new plain text content control to the paragraph. paragraph.AppendInlineContentControl(ContentControlType.Text) Dim inlineContentControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) 'Gets the type of content control. Dim controlType As ContentControlType = inlineContentControl.ContentControlProperties.Type 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets the appearance of the content control Gets character format of the content control Gets a value indicating whether the placeholder text for the content control is displayed or not. Gets or sets a value indicating the tab index of the content control Gets or sets a value to identify the content control The following example illustrates how to set the tag property for the content control. //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText); //Add new text to the content control WTextRange textRange = new WTextRange(document); textRange.Text = "Rich Text Content Control"; (paragraph.Items.LastItem as InlineContentControl).ParagraphItems.Add(textRange); InlineContentControl richTextControl = paragraph.Items.LastItem as InlineContentControl; richTextControl.ParagraphItems.Add(textRange); // Sets Tag property of the content control. richTextControl.ContentControlProperties.Tag = "RichText"; //Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text); //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new rich text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.RichText) 'Add new text to the content control Dim textRange As New WTextRange(document) textRange.Text = "Rich Text Content Control" TryCast(paragraph.Items.LastItem, InlineContentControl).ParagraphItems.Add(textRange) Dim richTextControl As InlineContentControl = TryCast(paragraph.Items.LastItem, InlineContentControl) richTextControl.ParagraphItems.Add(textRange) 'Sets Tag property of the content control. richTextControl.ContentControlProperties.Tag = "RichText" 'Add new text content control to the paragraph paragraph.AppendInlineContentControl(ContentControlType.Text) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Gets or sets a value indicating whether to remove a content control from the Word document when the user edits the contents of the control Gets or sets a content repeating type value to the content control Property to maintain values of content control properties from existing document. Represents a checked state or unchecked state in the checkbox content control. The following example illustrates how to apply checkbox state properties. //Create a new Word document WordDocument document = new WordDocument(); //Add one section and one paragraph to the document document.EnsureMinimal(); //Get the last paragraph. WParagraph paragraph = document.LastParagraph; //Add text to the paragraph paragraph.AppendText("A new text is added to the paragraph. "); //Append checkbox content control to the paragraph InlineContentControl checkBox = paragraph.AppendInlineContentControl(ContentControlType.CheckBox) as InlineContentControl; //Get checked state of checkbox CheckBoxState checkBoxCheckedState = checkBox.ContentControlProperties.CheckedState; //Set font for checked state value checkBoxCheckedState.Font = "Calibri"; //Set symbol for checked state value checkBoxCheckedState.Value = "C"; //Get unchecked state of checkbox CheckBoxState checkBoxUncheckedState = checkBox.ContentControlProperties.UncheckedState; //Set font for unchecked state value checkBoxUncheckedState.Font = "Calibri"; //Set symbol for unchecked state value checkBoxUncheckedState.Value = "U"; //Set the state for checkbox checkBox.ContentControlProperties.IsChecked = true; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); 'Create a new Word document Dim document As WordDocument = New WordDocument 'Add one section and one paragraph to the document document.EnsureMinimal 'Get the last paragraph. Dim paragraph As WParagraph = document.LastParagraph 'Add text to the paragraph paragraph.AppendText("A new text is added to the paragraph. ") 'Append checkbox content control to the paragraph Dim checkBox As InlineContentControl = CType(paragraph.AppendInlineContentControl(ContentControlType.CheckBox), InlineContentControl) 'Get checked state of checkbox Dim checkBoxCheckedState As CheckBoxState = checkBox.ContentControlProperties.CheckedState 'Set font for checked state value checkBoxCheckedState.Font = "Calibri" 'Set symbol for checked state value checkBoxCheckedState.Value = "C" 'Get unchecked state of checkbox Dim checkBoxUncheckedState As CheckBoxState = checkBox.ContentControlProperties.UncheckedState 'Set font for unchecked state value checkBoxUncheckedState.Font = "Calibri" 'Set symbol for unchecked state value checkBoxUncheckedState.Value = "U" 'Set the state for checkbox checkBox.ContentControlProperties.IsChecked = true 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close Compare the properties of content control Gets or sets a font name for the checked state or unchecked state of the checkbox content control. Gets or sets a value represents symbol for the checked state or unchecked state of the checkbox content control. Represents the data binding for Content controls. Deletes the XML mapping from the parent content control. Replace the XML value with replacementText The document The inlne content control The inline content control The text need to modify or not To ensure whether the value for content control gets from custom xml or not To ensure whether the value for content control gets by processing root element To ensure whether the value for content control gets by processing core property To ensure whether mapped custom xml has value Replace the XML value with replacementText The document The block content control The root element of block content control The text need to modify or not To ensure whether the value for content control gets by processing root element To ensure whether the value for content control gets by processing core property To ensure whether mapped custom xml has value Get the XmlNamespaceManager using the prefix mapping or xml document. Current XML document Content control prefix mapping value Returns, the XmlNamespaceManager Add the namespace to the XmlNamespaceManager by processing each node. Node to process The XmlNameSpaceManager Index value for namespace Checks whether the namespace uri exists in the namespace manager The XmlNamespaceManager URI value True, if the namespacemanager has uri value else false. Gets the list path Sets the resultant builtin property value to the content control Gets the index from the node path Update the XML value with replacementText Update the XML value with replacementText Replace the XML value with replacementText The document The inline content control The documeny custom XML container The mapped XML part in custom xml The replacement text Replace the XML value with replacementText The document The block content control The documeny custom XML container The mapped XML part in custom xml The replacement text Save the text replaced document and replace the custom XML stream Returns a Boolean that represents whether the content control in the document is mapped to an XML node in the document�s XML data. Read-only. �Returns a string that represents the prefix mappings used to evaluate the XPath for the current XML mapping. Read-only. Gets or sets a value indicating the color of the content control Returns a object that represents the custom XML part to which the content control in the document maps. Returns a object that represents the custom XML node in the data store to which the content control in the document maps. Returns a Boolean that represents whether the mapped content is WordML format or not. You can map WordML format or simple text, if data binding of content control supports WordML ("w:14:databinding" or "w:15:databinding" in file level). If true, then mapped content is WordML and preserved as text body item. If false, then mapped contents in not WordML and it is normal string or other In future, if changing this API behavior need to ensure Document Editor side cases also. Returns a Boolean that represents whether the mapped content control supports WordML format to map or not. You can map WordML format or simple text, if data binding of content control supports WordML ("w:14:databinding" or "w:15:databinding" in file level). If true, then content control preserves WordML content as text body item. If false, then content control preserves WordML content as normal string. Represents the custom XML part in the Word document. Initializes the Custom XML Part. A Word document. Loads the from the given XML file path. Specifies XML file path. The following code illustrates how to load XML file to CustomXMLPart. WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add new XmlPart to the section CustomXMLPart xmlPart = new CustomXMLPart(document); //Load the xml code. xmlPart.Load(@"F:\XmlFile.xml"); //Add new content control to the paragraph. InlineContentControl control = paragraph.AppendInlineContentControl(ContentControlType.Text) as InlineContentControl; control.ContentControlProperties.XmlMapping.SetMapping("/books/book/author", "", xmlPart); //Select the single node. CustomXMLNode node = xmlPart.SelectSingleNode(control.ContentControlProperties.XmlMapping.XPath); //Append text to second paragraph. control = paragraph.AppendInlineContentControl(ContentControlType.Text) as InlineContentControl; //Save the Word document document.Save("Sample.docx", FormatType.Docx); //Close the document document.Close(); Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add new XmlPart to the section Dim xmlPart As New CustomXMLPart(document) 'Load the xml code. xmlPart.Load(@"F:\XmlFile.xml"); 'Append text to second paragraph. control = TryCast(paragraph.AppendInlineContentControl(ContentControlType.Text), InlineContentControl) 'Save the Word document document.Save("Sample.docx", FormatType.Docx) 'Close the document document.Close() Loads the from the XML string. Specifies XML stream. Adds a new node to the CustomXMLPart under the mentioned parent node. Represents the node under which this node should be added. If adding an attribute, the parameter denotes the element that the attribute should be added to. Represents the base name of the node to be added. Specifies the type of node to append. Used to set the value of the appended node for those nodes that allow text. Represents the custom XML node in the custom XML part. Deletes the current node from the tree (including all of its children, if any exist). The following code illustrates how to delete from its parent. Selects a single node from a collection matching an XPath expression. Xpath of to be selected. Returns the node from a collection matching an XPath expression. The following code illustrates how to select single node from based on XPath Removes the specified child node (and its subtree) from the main tree. to be removed. The following code illustrates how to remove child nodes of the Gets the parent element node of the current node.Read-only. Represents the appearance of the content control. Represents BoundingBox appearance. Represents Tags appearance. �Represents Hidden appearance. Represents the date storage format for the selected date in Date Picker content control. Represents the date as a date storage format. Represents the date and time as a date storage format. Represents the Text as a date storage format. Specifies the type of content control. Specifies a rich-text content control Specifies a text content control Specifies a picture content control Specifies a combo box content control Specifies a drop-down list content control Specifies a building block gallery content control Specifies a date content control Specifies a group content control Specifies a checkbox content control Specifies a repeating section content control Represents the calendar type of Date picker content control. Represents the Gregorian calendar Represents the GregorianArabic calendar Represents the GregorianMiddleEastFrench calendar Represents the GregorianEnglish calendar Represents the GregorianTransliteratedEnglish calendar Represents the GregorianTransliteratedFrench calendar Represents the Hebrew calendar Represents the Hijri calendar Represents the Japan calendar Represents the Korean calendar Represents the Taiwan calendar Represents the Thai calendar Represents the Saka calendar Represent a style of paragraph items. Initializes a new instance of the class. The object. Clones the , creating duplicate style. The object. Gets the base style. Gets the type of the style. The specifies the type of the style. Represents a conditional style of table. Initializes a new instance of the ConditionalFormattingStyle class. The conditionCode. The doc. Clones the , creating duplicate style. The object. Clones itself. Returns cloned object. Closes this instance. Gets paragraph format. Gets cell properties. Gets row properties. Gets table properties. Gets conditional formatting code. Gets the type of the style. The member that specifies the type of the style. Represents a collection of . Gets the at the specified index. Represents a list style in the Word document. The following code example demonstrates how to private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Create a new list numbered list style ListStyle listStyle = new ListStyle(document, ListType.Numbered); //Set the name for the new list style listStyle.Name = "UserdefinedList"; WListLevel levelOne = listStyle.Levels[0]; //Define the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab; levelOne.NumberPrefix = "("; levelOne.NumberSufix = ")"; levelOne.PatternType = ListPatternType.LowRoman; levelOne.StartAt = 1; levelOne.TabSpaceAfter = 5; levelOne.NumberAlignment = ListNumberAlignment.Center; document.ListStyles.Add(listStyle); //Add new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Add text to the paragraph paragraph.AppendText("The list of pets available:"); //Add other paragraphs and apply the created new list style paragraph = section.AddParagraph(); //Apply default numbered list style paragraph.ListFormat.ApplyStyle("UserdefinedList"); paragraph.AppendText("Dog"); paragraph = section.AddParagraph(); paragraph.ListFormat.ApplyStyle("UserdefinedList"); paragraph.AppendText("Cat"); //Continue last defined list paragraph.ListFormat.ContinueListNumbering(); paragraph = section.AddParagraph(); paragraph.ListFormat.ApplyStyle("UserdefinedList"); paragraph.AppendText("Hamsters"); paragraph.ListFormat.ContinueListNumbering(); paragraph.ListFormat.ApplyStyle("UserdefinedList"); paragraph.AppendText("Turtles"); paragraph.ListFormat.ContinueListNumbering(); paragraph = section.AddParagraph(); paragraph.ListFormat.ApplyStyle("UserdefinedList"); paragraph.AppendText("Guinea Pigs"); paragraph.ListFormat.ContinueListNumbering(); paragraph = section.AddParagraph(); paragraph.ListFormat.ApplyStyle("UserdefinedList"); paragraph.AppendText("Ferrets"); paragraph.ListFormat.ContinueListNumbering(); paragraph = section.AddParagraph(); paragraph.ListFormat.ApplyStyle("UserdefinedList"); paragraph.AppendText("Fish"); paragraph.ListFormat.ContinueListNumbering(); //Save and close the Word document document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Create a new list numbered list style Dim listStyle As New ListStyle(document, ListType.Numbered) 'Set the name for the new list style listStyle.Name = "UserdefinedList" Dim levelOne As WListLevel = listStyle.Levels(0) 'Define the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab levelOne.NumberPrefix = "(" levelOne.NumberSufix = ")" levelOne.PatternType = ListPatternType.LowRoman levelOne.StartAt = 1 levelOne.TabSpaceAfter = 5 levelOne.NumberAlignment = ListNumberAlignment.Center document.ListStyles.Add(listStyle) 'Add new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Add text to the paragraph paragraph.AppendText("The list of pets available:") 'Add other paragraphs and apply the created new list style paragraph = section.AddParagraph() 'Apply default numbered list style paragraph.ListFormat.ApplyStyle("UserdefinedList") paragraph.AppendText("Dog") paragraph = section.AddParagraph() paragraph.ListFormat.ApplyStyle("UserdefinedList") paragraph.AppendText("Cat") 'Continue last defined list paragraph.ListFormat.ContinueListNumbering() paragraph = section.AddParagraph() paragraph.ListFormat.ApplyStyle("UserdefinedList") paragraph.AppendText("Hamsters") paragraph.ListFormat.ContinueListNumbering() paragraph = section.AddParagraph() paragraph.ListFormat.ApplyStyle("UserdefinedList") paragraph.AppendText("Turtles") paragraph.ListFormat.ContinueListNumbering() paragraph = section.AddParagraph() paragraph.ListFormat.ApplyStyle("UserdefinedList") paragraph.AppendText("Guinea Pigs") paragraph.ListFormat.ContinueListNumbering() paragraph = section.AddParagraph() paragraph.ListFormat.ApplyStyle("UserdefinedList") paragraph.AppendText("Ferrets") paragraph.ListFormat.ContinueListNumbering() paragraph = section.AddParagraph() paragraph.ListFormat.ApplyStyle("UserdefinedList") paragraph.AppendText("Fish") paragraph.ListFormat.ContinueListNumbering() 'Save and close the Word document document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub List bullets type Initializes a new instance of the class with the specified instance and the . The object. The type of the list. Initializes a new instance of the class. The doc. Type of the list. if it specifies one level list, set to true. Initializes a new instance of the class. The doc. Creates a new empty list style for the specified document, with the list type and single level option. The object. The for the new list style. The boolean value specifying whether this list should have only one level. The newly created instance. Creates a duplicate copy of this object. The reference of the newly created object. Closes this instance. Creates a duplicate copy of this instance. The reference of the new instance. Registers child objects in XDSL holder. Writes object data as xml attributes. The object. Reads object data from xml attributes. The object. Returns the with the specified level number. The integer that specifies the level number. The instance at the specified level number. The level number cannot be less than zero. When the specified level number is greater than the number of levels in the list, then the last level in the list will be returned. Clones the relations. The doc. Compares list style with current list style. The list style. Check whether the genreated list ID or name already contains or not. Destination document list styles Current list ID Current list name Sets new unique name for list style. Sets the new unique list id for the List style. Gets or sets the unique id for the list style. Gets or sets the value for styleLink attribute of abstractNum definitions. Gets or sets the name for the list style. The string that represents the style name. Gets or sets the list type. The member that specifies the list type. Gets the collection of the levels in the list. Read-only. The collection of list levels. Gets the type of the list style. Read-only. The member that specifies the type of the style. Gets or sets a value indicating whether this list style is hybrid multilevel/simple. if this instance is hybrid multilevel, set to true. Gets or sets a value indicating whether the list style is simple. if this instance is simple, set to true. Gets or sets a value indicating whether this instance is built in style. if this instance is built in style, set to true. Gets or Sets the base list style identifier. The base list style id. Represents a list level. List numbering strings Used to maintain the list level text. Create level layout data Gets list symbol for specified item index Gets list symbol for specified item index Clones this instance. Create default bullet level. Create default numbered level. Clones itself. Returns cloned object. Closes this instance. Compares List Level Removes the GUID appended with the style name The found style name Checks the number prefix and suffix. The prefix or suffix of level. Reads object data from xml attributes. The object. Writes object data as xml attributes. The object. Serialize paragraph and character properties. Gets or sets a constant that represents the alignment for the list level of the list template. Gets or sets the starting number for the specified list level. Gets or or sets the character inserted after the number for the specified list level. Gets or sets the position (in points) for the second line of wrapping text for the specified list level. Gets or sets the string inserted before the number for the specified list level. Gets or sets the string inserted after the number for the specified list level. Gets or sets the string inserted after the number for the specified list level. The following code snippet illustrates how to set the suffix after the number for the specified list level. private void Button1_Click(System.Object sender, System.EventArgs e) { //Creates a new Word document WordDocument document = new WordDocument(); //Adds new section to the document IWSection section = document.AddSection(); //Adds new list style to the document ListStyle listStyle = document.AddListStyle(ListType.Numbered, "UserDefinedList"); WListLevel levelOne = listStyle.Levels[0]; //Defines the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab; levelOne.NumberPrefix = "("; levelOne.NumberSuffix = ")"; //Adds new paragraph to the section IWParagraph paragraph = section.AddParagraph(); //Adds text to the paragraph paragraph.AppendText("User defined list - Level 0"); //Applies default numbered list style paragraph.ListFormat.ApplyStyle("UserDefinedList"); //Saves the Word document document.Save("Sample.docx", FormatType.Docx); //Closes the document document.Close(); } Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) 'Creates a new Word document Dim document As New WordDocument() 'Adds new section to the document Dim section As IWSection = document.AddSection() 'Adds new list style to the document Dim listStyle As ListStyle = document.AddListStyle(ListType.Numbered, "UserDefinedList") Dim levelOne As WListLevel = listStyle.Levels(0) 'Defines the follow character, prefix, suffix, start index for level 0 levelOne.FollowCharacter = FollowCharacterType.Tab levelOne.NumberPrefix = "(" levelOne.NumberSuffix = ")" 'Adds new paragraph to the section Dim paragraph As IWParagraph = section.AddParagraph() 'Adds text to the paragraph paragraph.AppendText("User defined list - Level 0") 'Applies default numbered list style paragraph.ListFormat.ApplyStyle("UserDefinedList") 'Saves the Word document document.Save("Sample.docx", FormatType.Docx) 'Closes the document document.Close() End Sub Gets or sets bullet character pattern for the specified list level. Gets or sets a constant that represents the list pattern type for the specified list level. Gets or sets a value indicating whether to restart the level's number sequence based on higher (more significant) levels in the list. True then restart the level's number sequence based on higher (more significant) levels in the list; otherwise, false. Gets the character formats of list symbol for the specified list level. Gets or sets the paragraph format of the specified list level. Gets the owner list style. The owner list style. Gets previous list. Gets or sets a constant that represents the type of character following the number text for the specified list. Gets or sets a value indicating whether to turns all inherited numbers to ArabaicNumberFormat property. The default is false. True then the level turns all inherited numbers to arabic; otherwise, false. Gets or sets the position (in points) of the number or bullet for the specified list level. Gets or sets a value indicating whether to include previous levels for generated number. The default is false. True number generated will include previous levels; otherwise, false. Gets or sets a value indicating whether to use Word6 compatibility mode. The default is false. /// True to use Word6 compatibility mode; otherwise, false. Get/set level space value for Word6 compatibility mode. Get/set level indent value for Word6 compatibility mode. Gets or sets the name of the paragraph style. The name of the paragraph style. Gets or sets a value indicating whether level has level text in list level formatting string. if it has no level text, set to true. Gets the number of the level. The index of the level. Gets or sets a value indicating whether this instance has pic bullet. Gets or sets the pic bullet id. The pic bullet id. Gets or sets the level text (lvlText) of current list level. As per the specification, level text(lvlText) is an string literal. If string contains % symbol and level index matched with string (%1 is match for level 0), then it will be incremented in list paragraphs. That means considered as list number. If level text and index mismatched then Micrsoft Word will display level text as string in paragraph. This scenario has more worst case combination behaviors. Now we handled only the case level text value is greater than level index, if it contains % symbol we reduce it's next number by one in Doc to PDF module as per Microsoft Word behavior. TODO: Need to analyze all worst cases and handle the same in all required modules. Represents a style of Numbering Initializes a new instance of the class. The doc. Clones the , creating duplicate style. The object. Clones itself. Returns cloned object. Closes this instance. Registers child objects in XDSL holder. Compares the properties of current style with the specified one for document comparison Gets paragraph format. Gets a base style of paragraph. Gets the type of the style. The member that specifies the type of the style. Gets format of the list for the paragraph. Gets or sets the index of the list. The index of the list. Gets or sets the list level. The list level. Represents a style of paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Create a new Word document WordDocument document = new WordDocument(); //Add new section to the document IWSection section = document.AddSection(); //Creates Paragraph styles. WParagraphStyle style = document.AddParagraphStyle("Heading 1") as WParagraphStyle; //Applies the base style. style.ApplyBaseStyle("Normal"); //Applies character formats. style.CharacterFormat.FontName = "Calibri Light"; style.CharacterFormat.FontSize = 16f; style.CharacterFormat.TextColor = System.Drawing.Color.FromArgb(46, 116, 181); //Applies paragraph formats. style.ParagraphFormat.BeforeSpacing = 12; style.ParagraphFormat.AfterSpacing = 0; style.ParagraphFormat.Keep = true; style.ParagraphFormat.KeepFollow = true; style.ParagraphFormat.OutlineLevel = OutlineLevel.Level1; //Add new paragraph WParagraph paragraph = section.AddParagraph() as WParagraph; //Apply style paragraph.ApplyStyle("Heading 1"); paragraph.AppendText("Applying paragraph style"); //Save and close the Word document document.Save("Sample1.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Create a new Word document Dim document As New WordDocument() 'Add new section to the document Dim section As IWSection = document.AddSection() 'Creates Paragraph styles. Dim style As WParagraphStyle = TryCast(document.AddParagraphStyle("Heading 1"), WParagraphStyle) 'Applies the base style. style.ApplyBaseStyle("Normal") 'Applies character formats. style.CharacterFormat.FontName = "Calibri Light" style.CharacterFormat.FontSize = 16.0F style.CharacterFormat.TextColor = System.Drawing.Color.FromArgb(46, 116, 181) 'Applies paragraph formats. style.ParagraphFormat.BeforeSpacing = 12 style.ParagraphFormat.AfterSpacing = 0 style.ParagraphFormat.Keep = True style.ParagraphFormat.KeepFollow = True style.ParagraphFormat.OutlineLevel = OutlineLevel.Level1 'Add new paragraph Dim paragraph As WParagraph = TryCast(section.AddParagraph(), WParagraph) 'Apply style paragraph.ApplyStyle("Heading 1") paragraph.AppendText("Applying paragraph style") 'Save and close the Word document document.Save("Sample1.docx", FormatType.Docx) document.Close() End Sub Member that specifies the paragraph format. Member that specifies the list format. Initializes a new instance of the class with the specified instance. The instance. Applies the base style for the current paragraph style. The name of the style to be applied. Creates a duplicate copy of the style. The reference to the newly created object. Compares the properties of current paragraph style with specified style. Applies base style for current style. The base style Gets the list format associated with the paragraph style. If the current style or any of its base styles has a list format with a ListType other than NoList or if it has an empty list, the list format is returned. The object representing the list format associated with the paragraph style, or null if no list format is found in the current style or any of its base styles. Retrieves the list level number associated with the paragraph style. Traverses the paragraph style hierarchy, starting from the current style, to find the first style that has a list level number defined, and returns the list level number along with the corresponding style. When this method returns, contains the object representing the style that has the list level number defined, if found; otherwise, it will be set to null. The list level number associated with the paragraph style, or 0 if no list level number is found in the current style or any of its base styles. Creates a duplicate copy of the entity. An reference to the newly created object. Closes this instance. Compares the properties of current style with the specified one for document comparison Add the default format to the character and paragraph format in original document Registers child objects in XDSL holder. Gets the formatting of paragraph. Read-only. The instance that specifies the paragraph format. Gets the base style of the paragraph. Read-only. The instance that specifies the base style. Gets the type of the style. Read-only. The member that specifies the type of the style. Gets the format of the list for the paragraph. Read-only. The instance that specifies the list format. Gets or sets the index of the list. The index of the list. Gets or sets the list level. The list level. Represents a style of . Initializes a new instance of the WTableStyle class. The doc. Create conditional formatting style for current style. Apply base style for current style. The string that specifies the style name. Applies the base style for the current table style. The member that specifies the built-in table style. using (WordDocument document = new WordDocument()) { document.EnsureMinimal(); WTable table = document.LastSection.AddTable() as WTable; table.ResetCells(3, 2); table[0, 0].AddParagraph().AppendText("Hi"); table[0, 1].AddParagraph().AppendText("Hi"); //Adds a new custom table style WTableStyle tableStyle = document.AddTableStyle("CustomStyle1") as WTableStyle; //Applies conditional formatting for first row ConditionalFormattingStyle firstRowStyle = tableStyle.ConditionalFormattingStyles.Add(ConditionalFormattingType.FirstRow); firstRowStyle.CharacterFormat.Bold = true; firstRowStyle.CharacterFormat.TextColor = Color.FromArgb(255, 255, 255, 255); firstRowStyle.CellProperties.BackColor = Color.Blue; //Applies conditional formatting for first column ConditionalFormattingStyle firstColumnStyle = tableStyle.ConditionalFormattingStyles.Add(ConditionalFormattingType.FirstColumn); firstColumnStyle.CharacterFormat.Bold = true; //Applies conditional formatting for odd row ConditionalFormattingStyle oddRowBandingStyle = tableStyle.ConditionalFormattingStyles.Add(ConditionalFormattingType.OddRowBanding); oddRowBandingStyle.CellProperties.BackColor = Color.Red; //Apply built in table style as base style for CustomStyle2 tableStyle.ApplyBaseStyle(BuiltinTableStyle.TableContemporary); //Applies the custom table style to the table table.ApplyStyle("CustomStyle1"); //Saves and closes the document instance document.Save("TableStyle.docx", FormatType.Docx); } Dim document As WordDocument = New WordDocument() document.EnsureMinimal() Dim table As WTable = TryCast(document.LastSection.AddTable(), WTable) table.ResetCells(3, 2) table(0, 0).AddParagraph().AppendText("Hi") table(0, 1).AddParagraph().AppendText("Hi") 'Adds a new custom table style Dim tableStyle As WTableStyle = TryCast(document.AddTableStyle("CustomStyle1"), WTableStyle) 'Applies conditional formatting for first row Dim firstRowStyle As ConditionalFormattingStyle = tableStyle.ConditionalFormattingStyles.Add(ConditionalFormattingType.FirstRow) firstRowStyle.CharacterFormat.Bold = True firstRowStyle.CharacterFormat.TextColor = Color.FromArgb(255, 255, 255, 255) firstRowStyle.CellProperties.BackColor = Color.Blue 'Applies conditional formatting for first column Dim firstColumnStyle As ConditionalFormattingStyle = tableStyle.ConditionalFormattingStyles.Add(ConditionalFormattingType.FirstColumn) firstColumnStyle.CharacterFormat.Bold = True 'Applies conditional formatting for odd row Dim oddRowBandingStyle As ConditionalFormattingStyle = tableStyle.ConditionalFormattingStyles.Add(ConditionalFormattingType.OddRowBanding) oddRowBandingStyle.CellProperties.BackColor = Color.Red 'Apply built in table style as base style for CustomStyle2 tableStyle.ApplyBaseStyle(BuiltinTableStyle.TableContemporary) 'Applies the custom table style to the table table.ApplyStyle("CustomStyle1") 'Saves and closes the document instance document.Save("TableStyle.docx", FormatType.Docx) document.Close() Checks the normal style. Creates a duplicate copy of the style. The reference to the newly created style. Applies base style for current style. The base style Creates a duplicate copy of the entity. An object that can be casted as . Closes this instance. To compare the table sytle of this object with another object. Gets the paragraph format. The object. Gets the list format. Gets cell properties. Gets row properties. Gets table properties. Gets base style of the current style. Gets the type of the style. The member that specifies the type of the style. Gets conditional formatting styles collection of the table style. Represents the part of the text body items. WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content as a text body part. TextBodyPart part = bookmarkNavigator.GetBookmarkContent(); //Convert the textbody part as a separate Word document. WordDocument new_document = part.GetAsWordDocument(); //Save and close the document new_document.Save("Sample.docx", FormatType.Docx); document.Close(); Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content as a text body part. Dim part As TextBodyPart = bookmarkNavigator.GetBookmarkContent() 'Convert the textbody part as a separate Word document. Dim new_document As WordDocument = part.GetAsWordDocument() 'Save and close the document new_document.Save("Sample.docx", FormatType.Docx) document.Close() Initializes a new instance of the class. Initializes a new instance of the class with the specified . The instance. Initializes a new instance of the class with the specified . The instance. Initializes a new instance of the class with the specified . The instance. Clears the text body items. Copies the text from the specified and adds the text as new paragraph in the document. The to copy the text. Copies the text from the specified and adds the text to the current . Find the field Copies the text from the specified and adds the text to the current . The to copy the text. Copies the specified and adds it to the current . The to copy the contents. True if to clone and add the item; otherwise, false. Copies the specified and adds the item in a new paragraph to the current . The to be copied. True if to clone and add the item; otherwise, false. Returns the content of the text body part as a new Word document. The newly created instance. Clears all the contents of the text body part. Copies the specified text body. The text body. if it is to clone, set to true. Pastes the at the index next to it. The which is to be pasted. Pastes the after specified paragraph item index. The to be pasted. Pastes at specified at the specified index. The to be pasted. The zero-based index to paste the text body. Pastes at specified position with character formatting. >The text body. Index of the item. Index of the p item. Replace character format if it specifies to apply the format, set to true. Pastes at specified position. The text body. Index of the item. Index of the p item. //Open the template document WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Create the bookmark navigator instance to access the bookmark BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document); //Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind"); //Get the bookmark content as a text body part. TextBodyPart part = bookmarkNavigator.GetBookmarkContent(); //Paste the content as first item in the second paragraph. part.PasteAt(document.Sections[0].Body, 1, 0); //Save and close the document document.Save("Result.docx", FormatType.Docx); document.Close(); 'Open the template document Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Create the bookmark navigator instance to access the bookmark Dim bookmarkNavigator As New BookmarksNavigator(document) 'Move the virtual cursor to the before the end location of the bookmark "Northwind" bookmarkNavigator.MoveToBookmark("Northwind") 'Get the bookmark content as a text body part. Dim part As TextBodyPart = bookmarkNavigator.GetBookmarkContent() 'Paste the content as first item in the second paragraph. part.PasteAt(document.Sections(0).Body, 1, 0) 'Save and close the document document.Save("Result.docx", FormatType.Docx) document.Close() Pastes at end of textbody. The text body. Pastes at specified position. The text body. Index of the item. Index of the p item. Set to true when performing bookmark replace functionality Paste the contents inside an inline content control. Represents an where to paste. Index of in to paste the content. Paste the in Represents a which is destination to paste the contents. Represents a to copy all its content and paste into the Paste the items from into an Represents an which is destination to paste. Represents a which is source to copy its items Paste items from content control as normal text in the text type inline content control. Represents an to paste the items. Represents to copy the items. Paste paragraph items from table into inline content control. to paste the text ranges from table. to copy all its paragraph items. Paste a text range in inline content control and update the formattings. as desination to paste text range. to paste. Copies the paragraph items. The source paragraph. The dest paragraph. Splits the paragraph. The paragraph. Index of the next paragraph item. The paragraph to insert. Validates the args. Splits the paragraph. The TRG first paragraph. The SRC last paragraph. Updates fromatting from source to destination. Ensures the text body. The doc. Applies the source format. The paragraph. Applies the source format. The Table. Gets the bookmark content in between various section/cell in the Word document Current bookmark start Current bookamrk end Gets the owner section index The entity Gets the bookmark content inside table after paragraph in same/multiple section. Bookmark start owner paragraph Bookmark end owner paragraph Current bookamark start Current bookmark end Gets the bookmark content inside paragraph after table in single/multiple section Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Curretn bookmark end Gets the bookmark content inside table in single/multiple section Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Bookmark end cell is null,if bookmark end entity placed inside table next paragraph means set bookmark end cell Adds the textbody item from the cell, when bookmark end is at the nested table of same cell. Represents a Represents a of Represents an index of contains Represents a of Copy the textbody items Start textbody index End textbody index The textbody Gets the bookmark content inside paragraph in single/multiple section. Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Inserts the bookmark start textbody items into single text body Bookmark start owner paragraph owner index Bookmark end owner paragraph owner index Bookmark start owner textbody Bookmark start next item index Bookmark end previous item index When bookmark start and end in paragraph set to true When bookmark start owner section and bookmark end owner section index same, set to true Inserts the bookmark end owner textbody item into single textbody Bookmark end owner paragraph index Bookmark end previous item index Bookmark end owner text body When true ,if the bookmark end entity is first item of it's owner paragraph To check the bookmark end entity is first item of it's owner paragraph Bookmark end owner paragraph Current bookmark end Bookmark end previous item index Insert the in between section bodyitem into single textbody Bookmarkstart owner next section index Bookmark end owner section index Owner document Gets the collection text body items. Read-only. The instance. Represents a collections of sections. Initializes a new instance of the class. Initializes a new instance of the WordDocumentPart class and loads the content of the Word document to this instance The Word document to load into this Loads the content of the Word document to this instance. The document to load into the current word document part. WordDocumentPart contains the copy of sections from the documents. When you modify the content of the WordDocumentPart, it does not affect the objects inside the document. Gets the content of document part as new Word document. The contains the content of this Closes all the contents of the document part. Get the bookmark content in beween different text body Current bookmark start Current bookmark end Gets the owner section Entity Get the bookmark content in between paragraph after table Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Get bookmark content in between table after paragraph in same/different section Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Get the bookamrk content in between same/multiple table Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end Bookmark end cell is null,if bookmark end entity placed inside table next paragraph means set bookmark end cell //The previous sibling of bookmarkendparagraph is WTable,then get the bookmarkendcell from previous sibling of bookmarkend paragraph and get the last cell of the Table. Copy textbody items Textbodyitem start index Textbodyitem end index The textbody The section Get the bookmark content inbetween same/different section paragraph. Bookmark start owner paragraph Bookmark end owner paragraph Current bookmark start Current bookmark end If the bookmark content inside different section, combine bookmark end owner section to Sections collection Bookmark end owner paragraph index Bookmark end previous item index Bookmark end owner text body When true ,if the bookmark end entity is first item of it's owner paragraph Insert the in between sections to section collection Bookmark start's next section index Bookmark end section index Owner document If the bookmark content inside different section, combine bookmark start owner section to Sections collection BookmarkStart owner paragraph index Bookmark end owner paragraph index Bookmark start owner textbody Bookmark start next item index Bookmark end previous item index If the bookmark content preserved in single section set to true To check the bookmark end entity is first item of it's owner paragraph Bookmark end owner paragraph Current bookmark end Bookmark end previous item index Gets the sections in the Word document part. Read-only. Provides the functionalities to convert the Word document as text file. Initializes a new instance of the class. Returns the text contents of the specified as string. The instance. The string that represents the text contents of the Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open a new Word document WordDocument document = new WordDocument("Template.docx"); //Initialize a new instance of TextConverter class TextConverter converter = new TextConverter(); //Get the text contents from the template document string text = converter.GetText(document); //Create new Word document WordDocument textDocument = new WordDocument(); textDocument.EnsureMinimal(); //Add the text to the newly created document textDocument.LastParagraph.AppendText(text); //Save and close the document. textDocument.Save("Sample.txt", FormatType.Txt); document.Close(); textDocument.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open a new Word document Dim document As New WordDocument("Template.docx") 'Initialize a new instance of TextConverter class Dim converter As New TextConverter() 'Get the text contents from the template document Dim text As String = converter.GetText(document) 'Create new Word document Dim textDocument As New WordDocument() textDocument.EnsureMinimal() 'Add the text to the newly created document textDocument.LastParagraph.AppendText(text) 'Save and close the document. textDocument.Save("Sample.txt", FormatType.Txt) document.Close() textDocument.Close() End Sub Writes the specified text contents as text file(.txt format). The instance to write the text file. The to be converted as text file. Reads the text file and convert it to the specified . The instance to read the text file. The instance to represent the text file. The following code example demonstrates how to write the text file content to Word document. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); FileStream fs = new FileStream("Result.txt", FileMode.Open, FileAccess.Read); StreamReader reader = new StreamReader(fs); reader.BaseStream.Position = 0; //Create the new TextConverter TextConverter txtConverter = new TextConverter(); //Write the text file to document txtConverter.Read(reader, document); reader.Dispose(); fs.Dispose(); //Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") Dim fs As New FileStream("Result.txt", FileMode.Open, FileAccess.Read) Dim reader As New StreamReader(fs) reader.BaseStream.Position = 0 'Create the new TextConverter Dim txtConverter As New TextConverter() 'Write the text file to document txtConverter.Read(reader, document) reader.Dispose() fs.Dispose() 'Save and close the Word document instance document.Save("Sample.docx", FormatType.Docx) document.Close() End Sub Reads the specified text. The text. The document. Writes the specified header and footer body contents. The instance. Writes the specified document content to the text file. The instance content to write into text file. Writes the specified content to the text file. The instance to write into the text file. True if it is the last paragraph; otherwise, false. Writes the specified text content to the text file. The instance to write into the text file. Writes the end of the section. The instance. True if it is the last section; otherwise, false. Writes the text contents to the text file. The string that specifies the text to write into the text file. The following code example demonstrates how to write the document content to text file. private void Button1_Click(System.Object sender, System.EventArgs e) { //Load an existing Word document into DocIO instance WordDocument document = new WordDocument("Template.docx"); FileStream fs = new FileStream("Result.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite); StreamWriter writer = new StreamWriter(fs); //Create the new TextConverter TextConverter txtConverter = new TextConverter(); //Write the document to text file txtConverter.Write(writer, document); writer.Flush(); writer.Dispose(); fs.Dispose(); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Load an existing Word document into DocIO instance Dim document As New WordDocument("Template.docx") Dim fs As New FileStream("Result.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite) Dim writer As New StreamWriter(fs) 'Create the new TextConverter Dim txtConverter As New TextConverter() 'Write the document to text file txtConverter.Write(writer, document) writer.Flush() writer.Dispose() fs.Dispose() document.Close() End Sub Writes the list to the text file. The instance to get the list format. Writes new line in the text file. Updates the last paragraph. The document. Writes the content of the document to the text file. Returns the footers referred by the current section Current section Current section index returns the footer referred by the current section by comparing the current and preceeding section Returns the header referred by the current section Current section Current section index returns the header referred by the current section by comparing the current and preceeding section Check if stream is utf8 encoded. Notice: stream is read completely in memory! Stream to read from. True if the whole stream is utf8 encoded. Determines whether the specified stream has extended ASCII character. The stream. true if the specified stream has extended ASCII character; otherwise, false. Represents the IWarning and can be used to notify the warnings occurred in Word document to PDF conversion. Shows the warning messages that describes the unsupported elements found while converting the specified Word document to PDF. The warnings. Represents the WarningInfo and it contains the Warning type and its description for the unsupported elements in Word document to PDF conversion. The m_description of the warning The m_warning type Initializes a new instance of the class. The description. Type of the warning. Gets the description about specified warning The description. Gets the warning type The type of the warning. Represents the page margins of the Word document. storage of Left margin storage of Right margin storage of Top margin storage of Bottom margin Initializes a new instance of class. Initializes a new instance of class with the specified left, top, right and bottom margin values in points. The value for left margin in points. The value for top margin in points. The value for right margin in points. The value for bottom margin in points. Gets or sets the value of all the four on one call measured in points. The integer that specifies the margin values in points. Gets or sets the left margin value in points. The integer that specifies the left margin value in points. Gets or sets the right margin value in points. The integer that specifies the right margin value in points. Gets or sets the top margin value in points. The integer that specifies the right margin value in points. Gets or sets the bottom margin value in points. The integer that specifies the bottom margin value in points. Allow to check is all settings has the same value or not Represents the page margins of the Word document. Initialize the keys for the properties. Initializes a new instance of class. Initializes a new instance of class with the specified left, top, right and bottom margin values in points. The value for left margin in points. The value for top margin in points. The value for right margin in points. The value for bottom margin in points. Creates a duplicate copy of the instance. The reference of the newly created instance. Returns the default values. The integer that specifies the key. An object that specifies the default value. Sets the margin values in oldpropertyhash. The value for left margin in points. The value for top margin in points. The value for right margin in points. The value for bottom margin in points. The value for gutter margin in points. Gets the property value. The property key. The value. sets the property value. The prop key. Compares the current section properties with another section properties The paragraph format Gets or sets the value of all the four on one call measured in points. The float that specifies the margin values in points. Gets or sets the left margin value in points. The float that specifies the left margin value in points. Gets or sets the right margin value in points. The float that specifies the right margin value in points. Gets or sets the top margin value in points. The float that specifies the top margin value in points. Gets or sets the bottom margin value in points. The float that specifies the bottom margin value in points. Allow to check is all settings has the same value or not Gets/sets section gutter. Represents the information about page size. Specifies A3 format page size. The structure that represent the size of the page. Specifies A4 format page size. The structure that represent the size of the page. Specifies A5 format page size. The structure that represent the size of the page. Specifies A6 format page size. The structure that represent the size of the page. Specifies B4 format page size. The structure that represent the size of the page. Specifies B5 format page size. The structure that represent the size of the page. Specifies B5 format. page size. The structure that represent the size of the page. Specifies Letter format page size. The structure that represent the size of the page. Specifies HalfLetter format page size. The structure that represent the size of the page. Specifies 11x17 format page size. The structure that represent the size of the page. Specifies EnvelopeDL format page size. The structure that represent the size of the page. Specifies Quarto format page size. The structure that represent the size of the page. Specifies Statement format page size. The structure that represent the size of the page. Specifies Ledger format page size. The structure that represent the size of the page. Specifies Tabloid format page size. The structure that represent the size of the page. Specifies Note format page size. The structure that represent the size of the page. Specifies Legal format page size. The structure that represent the size of the page. Specifies Flsa format page size. The structure that represent the size of the page. Specifies Executive format page size. The structure that represent the size of the page. Private constructor. Provides functions for unit conversions. Converts centimeter to points. The float that represents the value in centimeter. The float that specifies the value in points. Converts inch to points. The float that represents the value in inch. The float that specifies the value in points. Converts pixel to points. The float that represents the value in pixel. The float that specifies the value in points. Summary description for WordMLtoDocIOConverter. Initializes a new instance of the class. Converts the specified word as ml. The path to word ML. Corrects the XML. Modifies the paragraph. Modifies the bookmark. The bookmark. Modifies the picture. The picture. Initialize the namespace manager. Gets the XSLT reader. Reads the binary element. The node. Reads the image. The node. if it is meta file, set to true. Gets or sets the name. The name. Gets or sets the ID. The ID. Adds an object to the end of the . The to be added to the end of the . The value can be . The index at which the has been added. The is read-only. -or- The has a fixed size. Adds the bookmark. The name. Gets the with the specified name. Summary description for IXDLSAttributeWriter. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. if it specifies value, set to true. Writes color as string to XML. Name of attribute. Color structure. Writes DateTime as string to XML. Name of attribute. Color structure. Summary description for IXDLSAttributeReader. Determines whether the current node has attribute with specified name. The name. if has attribute with specified name, set to true. Reads the string. The name. Reads the int. The name. Reads the short. The name. Reads the float. The name. Reads the boolean. The name. Reads the byte. The name. Reads the enum. The name. Type of the enum. Reads color from XML. Name of attribute. Reads the date time. The s. Summary description for IXDLSContentWriter. Writes the child binary element. The name. The value. Writes the child string element. The name. The value. Writes the child element. The name. The value. Writes the child ref element. The name. The ref to element. Gets the inner writer. The inner writer. Summary description for IXDLSContentReader. Gets the attribute value. The name. Parses the type of the element. Type of the enum. Type of the element. Reads the child element. The value. Reads the child element. The type. Reads the content of the child string. Reads the child binary element. Gets the name of the tag. The name of the tag. Gets the type of the node. The type of the node. Gets the inner reader. The inner reader. Gets the attribute reader. The attribute reader. Summary description for IXDLSFactory. Creates the specified reader. The reader. Utility class. Holds string names of the properties, used for serialization. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. Name of the property. This constructor is bever used. Constants used in DLS for serialization to XML format Document tag names The styles tag The list styles tag Section tag names The page setup tag The page setup first page attribute The page setup difference odd even pages attribute The columns tag The column tag The paragraphs tag The headers footers tag The text body tag The toc field tag Section attribute names Style tag names The character format tag The paragraph format tag The table format tag The cell format tag The list format tag The style base tag The shape format tag List tag and attribute names The list levels tag The list level internal data tag The list level preference pattern attribute The list level suf pattern attribute The list level bullet pattern attribute The list level indent attribute The list level previous pattern attribute The list level pattern type attribute The list level start at attribute The list level number align attribute The list level follow character attribute The list level is legal attribute The list level no restart number List style attributes names The list format level number attribute The list format style name attribute Style attribute names The style base name attribute Pen attribute names The pen brush attribute PageSettings attribute names The page settings page width attribute The page settings alignment attribute The page settings footer distance attribute The page settings header distance attribute The page settings orientation attribute The page settings bottom margin attribute The page settings top margin attribute The page settings left margin attribute The page settings right margin attribute The page settings spacing before columns attribute HeadersFooters attribute names The odd header tag The even footer tag The odd footer tag The first page header tag The first page footer tag Tables tag names The columns item tag The cell item tag The cells item tag The row item tag The rows item tag Tables attribute names The table horizontal alignment attribute The table vertical merge attribute The table horizontal merge attribute The table width attribute The table cell width attribute The table cell shading color attribute The table row heigth attribute The table row header attribute The table row heigh type attribute The table left indent attribute The table cell paddings attribute The cell spacing The left offset The cell text wrap attribute The cell same paddings as table attribute The table cell texture attribute The table cell fore color attribute The table cell fit text attribute The table cell text dir attribute Paragraph tag names The items tag The item tag The item type paragraph value The item type table value ParagraphFormat attribute names The paragraph horizontal alignment attribute The paragraph vertical alignment attribute The paragraph left indent attribute The paragraph right indent attribute The paragraph first line indent attribute The paragraph keep attribute The paragraph before spacing attribute The paragraph after spacing attribute The paragraph keep follow attribute The paragraph widow control attribute The paragraph page break before attribute The paragraph page break after attribute The paragraph column break after attribute The paragraph back color attribute The paragraph bidi attribute Tab attribute name The tab justification attribute The tab leader attribute The tab tag The automatic tab width attribute The tab delete attribute Shape tag names Column attribute names The column spacing attribute Image tag names Image attribute names Width scale attributes. Name of the property. Image quality attributes names. The picture contrast attribute The picture color attribute The crop from left The crop from right The crop from top The crop from bottom TextRange tag name TextRange child tag names Type tag Paddings tag names The padding top tag The padding left tag The padding right tag Borders tag names The border top tag The border left tag The border right tag The border horizontal tag The border vertical tag The borders item tag Borders attribute names The border width attribute The border type attribute The border space attribute The border shadow attribute CharacterFormat attribute names The text font name attribute The text font size attribute The text bold attribute The text italic attribute The text strike attribute The text double strike attribute The text underline attribute The text sub super script attribute The text line spacing attribute The text position attribute The text background color attribute The text line break attribute TextBox tag name TextBoxFormat attribute names The shape height attribute The shape line style attribute The shape text wrapping style attribute The shape fill color attribute The shape line color attribute TextBoxes tag The text boxes tag Bookmark attributes name The bookmark The cell group bookmark attribute Hyperlink attribute names The URI The hyperlink type The hyperlink Picture formatting tag. Break atrribute names. The protection type attribute The shade form data attribute The macros tag The escher containers tag The escher data conatiners tag The macro commands tag DOP internal data The DOP dxa hot z attribute The DOP consec attribute The DOP internal data Standard font names The standard far east font The standard non far east font Merge field attribute names. The field converted attribute The merge field text before attribute The merge field text after attribute The merge field number format attribute The merge field date format attribute The merge field prefix attribute The field upper case attribute The field lower case attribute The field title case attribute The field first capital attribute The field is local attribute The field type attribute The field name attribute The field value attribute The field mark type attribute The field formatting attribute Attribute name for embedded object storage name containing FormField attribute names. The form field maximum length attribute The form field CheckBox size attribute The form field CheckBox size type The form field title attribute The form field definition text attribute The form field default CheckBox value attribute The form field default drop down value attribute The form field text format attribute The form field string text format attribute The form field help attribute The form field tooltip attribute The form field macro on start attribute The form field macro on end attribute The form field is special attribute The form field text type attribute FormField attribute names. The form field drop down item text attribute Document properties tag names. The custom properties tag The property tag The character styles tag The text character style name The list overrides tag Styles attributes. Document properties attribute names. The properties manager attribute The properties category attribute The properties bytes count attribute The properties lines count attribute The properties paragraph count attribute The properties slide count attribute The properties note count attribute The properties hidden count attribute The properties author attribute The properties application name attribute The properties title attribute The properties subject attribute The properties keywords attribute The properties comments attribute The properties template attribute The properties last author attribute The properties revision number attribute The properties edit time attribute The properties last printed attribute The properties create date attribute The properties last save date attribute The properties page count attribute The properties word count attribute The properties character count attribute The properties thumbnail attribute The properties document security attribute Property attribute names. The properties name attribute The properties value attribute Attributes for ListFormatting. The list format use base style attribute The list format lfo style name attribute The list format hybrid attribute The list format simple attribute The list level legacy attribute The list level legacy space attribute The list level legacy indent attribute The level override tag The level override start at attribute The level override format attribute The level override start attribute The level override reserved1 attribute The level override reserved2 attribute The level override reserved3 attribute The override list levels tag The override list level tag The override list style tag The override list style name attribute The override list res1 attribute The override list res2 attribute The override list unused1 attribute The override list unused2 attribute Table`s attributes names. The table is break across pages attribute The table bidi attribute Internal Data. ShapeObject tags. The shape blip tag The shape fbse tag The picture descriptor tag ShapeObjject attribute names The shape object OLE cont identifier WCharacterFormat attribute names. The text emboss attribute The text engrave attribute The text hidden attribute The text hidden complex attribute The text d strike complex attribute The text small caps complex attribute The text strike complex attribute The text all caps attribute The text small caps attribute The text bidi attribute The text bold bidi attribute The text italic bidi attribute The text font size bidi attribute The text font name bidi attribute The text font name ASCII attribute The text font name far east attribute The text font name non far east attribute The text highlight color key The text italic complex key The text shadow complex attribute The text bold complex key The text rg lid0 attribute The text rg lid1 attribute The text rg lid3 attribute The text rg lid3 2 attribute The text lid attribute The text lid bi attribute The text no proof attribute The text idct hint attribute The text all caps complex key The text texture attribute The text fore color attribute The text out line attribute The text emboss complex The text engrave complex WCharacterFormat tag names. ParagraphFormat attribute names. The paragraph line spacing rule attribute ViewSetup tag names. ViewSetup attribute names. The view setup zoom type attribute The view setup view type attribute WPageSetup attribute names. The page setup line number distance attribute The page setup line number mode attribute The page setup line number start value attribute The page setup border apply attribute The page setup border offset from attribute The page setup border is in front attribute The page setup column equal attribute Attributes names for characters. The symbol character code ext attribute Textbox tag name Shape attribute names The shape vert origin attribute The shape horiz position attribute The shape vert position attribute The shape line width attribute The shape line dashing attribute The shape wrapping type attribute The shape wrapping style attribute The shape wrapping mode attribute The shape is below text attribute The shape no line attribute The shape no fill attribute The shape horiz align attribute The shape vert align attribute The shape front order attribute The shape ident attribute The shape text box count attribute The shape is header attribute Comment tags. The comment format tag The comment format user initials attribute The comment format user attribute The comment bookmark start attribute The comment bookmark end attribute The comment tag BKMK attribute Footnote tags. The footnote marker cp tag The footnote is automatic numbered attribute The footnote custom marker attribute The footnote type attribute The footnote symbol code attribute The footnote symbol font name attribute The initial footnote number attribute The footnote position attribute The restart index for footnotes attribute The endnote number format attribute The footnote number format attribute The restart index for endnote attribute The endnote position attribute The initial endnote number attribute Watermark. The watermark type attribute The watermark text attribute The watermark text font name attribute The watermark text font size attribute The watermark text font color attribute The watermark text layout attribute The watermark text semitrans attribute The watermark shape height attribute The watermark shape width attribute The watermark picture washout attribute The watermark picture scale attribute The watermark picture is meta attribute The watermark picture pib attribute Background effects. The background gradient tag The background type attribute The back image is meta attribute The background color attribute The background back color attribute The background gradient style The background gradient variant Embedded object storage tags The embed object is ole2 attribute The object pool tag Grammar and spelling data tags The spelling data tag Summary description for XDLSCustomRW. Initializes a new instance of the class. Writes the specified writer. The writer. Name of the tag. The value. Reads the specified reader. The reader. The type. Summary description for DLSXmlHolder. Initializes a new instance of the class. Adds the element. Name of the tag. The value. Adds the ref element. Name of the tag. The value. Writes the holder. The writer. Reads the holder. The reader. After the deserialization. The owner. Before the serialization. Gets or sets the ID. The ID. Gets or sets a value indicating whether this is cleared. if it cleared, set to true. Gets or sets a value indicating whether [enable ID]. If it is enable ID, set to true. Gets or sets a value indicating whether [skip me]. If it specifies to skip, set to true. Summary description for XDLSReader. Initializes a new instance of the class. The reader. Deserializes the specified value. The value. Determines whether the current node has attribute with specified name. The name. if has attribute with specified name, set to true. Reads the string. The name. Reads the int. The name. Reads the short. The name. Reads the double. The name. Reads the float. The name. Reads the boolean. The name. Reads the byte. The name. Reads the enum. The name. Type of the enum. Reads color from XML. Name of attribute. Color structure. Gets the hexadecimal color. The color. Reads color from XML. Name of attribute. Color structure. Gets the attribute value. The name. Parses the type of the element. Type of the enum. Type of the element. Reads the child element. The value. Reads the child element. The type. Reads the content of the child string. Reads binary value. Reads the image. Reads the image. if it is a metafile, set to true. Gets the name of the tag. The name of the tag. Gets the type of the node. The type of the node. Gets the inner reader. The inner reader. Gets the attribute reader. The attribute reader. Summary description for DLSXmlWriter. Symbol, used during color saving to XML. format for color convertion to string. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. The value. Writes the value. The name. if it is specifies value, set to true. Writes color as string to XML. Name of attribute. Color structure. Writes DateTime as string to XML. Name of attribute. Color structure. Writes the child string element. The name. The value. Writes binary value. The name. The value. Writes the child element. The name. The value. Writes the child ref element. The name. The ref to element. Writes the image. The image. Gets the inner writer. The inner writer. Specifies the type of a DLS entity. Main Word document. Section in the Word document. Text body in the Word document. Header and Footer in the Word document Paragraph in the Word document AlternateChunk in the Word document Block Content control in the Word document Structure Document Tag Inline in the Word document Structure Document Tag Row in the Word document Structure Document Tag Cell in the Word document Structure Document Tag in the Word document Structure Document Tag Inline in the Word document Structure Document Tag Row in the Word document Structure Document Tag Cell in the Word document Structure Document Tag Block Content in the Word document Structure Document Tag Inline Content in the Word document Structure Document Tag Row Content in the Word document Structure Document Tag Cell Content in the Word document Table in the Word document Table row in the Word document Table Cell in the Word document Text run in the Word document Picture in the Word document Field in the Word document Field mark in the Word document Merge field in the Word document Sequence Field Tag in the Word document Embeded in the Word document Control field in the Word document Text form field in the Word document Drop down form field in the Word document Check box in the Word document Bookmark start in the Word document Bookmark end in the Word document Shape in the Word document Comment in the Word document Footnote in the Word document TextBox in the Word document Break in the Word document Symbol in the Word document Table of content in the Word document Xml Paragraph Item in the Word document Undefiened element Chart in the Word document This enum is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. Comment mark in the Word document Comment End in the Word document OLE Object in the Word document Absolute Tab in the Word document Auto shape in the Word document Editable range start in the Word document Editable range end in the Word document Group shape in the Word document Child shape in the Word document Child group shape in the Word document Mathematical equation in the Word document Specifies type of the Header or Footer. Header for even numbered pages. Header for odd numbered pages. Footer for even numbered pages. Footer for odd numbered pages. Header for the first page of the section. Footer for the first page of the section. Specifies type of the Shape. Specifies text shape. Specifies rectangle shape. Specifies image shape. Specifies arc shape. Specifies ellipse shape. Specifies line shape. Specifies path shape. Specifies bezier shape. Specifies pie shape. Specifies polygon shape. Specifies type of the style. Paragraph style. Character style. Table style. Numbering style. Other kind of style. Specifies type of the paragraph item. Text. Picture. Field. Field mark. Merge field. Form field. Check box. Text form field. Drop down form field. Sequence field. Embedded field. Control field. Start of bookmark. End of bookmark. Shape object. Inline shape object. Comment. Footnote. Textbox. Break. Symbol. Table of contents. Chart. This enum is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamarin platforms. OLE object. Inline Content Control. Mathematical equation Specifies orientation of the page. Portrait page orientation. Landscape page orientation. Specifies multiple pages property. Normal in multiple pages. Mirror Margin in multiple pages. Two pages per sheets in multiple pages. Book Fold in multiple pages. Reverse Book Fold in multiple pages. Specifies alignment of the text on a page. Text is aligned at the top of the page. Text is aligned at the middle of the page. Text is spanned to fill the page. Text is aligned at the bottom of the page. Specifies type of the vertical alignment. Specifies top alignment. Specifies middle alignment. Specifies bottom alignment. Specifies type of the shadow alignment. Specifies top alignment. Specifies top left alignment. Specifies top right alignment. Specifies center alignment. Specifies bottom alignment. Specifies bottom left alignment. Specifies bottom right alignment. Specifies Left alignment. Specifies right alignment. Specifies type of the 3D Material type. Specifies Clear type Specifies Dark Edge type. Specifies flat type. Specifies Legacy Matte type. Specifies Legacy Metal type. Specifies Legacy plastic type. Specifies Legacy Wireframe type. Specifies Matte type. Specifies Metal type. Specifies Platic type. Specifies Powder type. Specifies Soft Edge type. Specifies Soft Metal type. Specifies Translucent Powder type. Specifies Warm Matte type. Specifies type of the Bevel Preset Type. Specifies Angle type Specifies Art Deco type. Specifies Circle type. Specifies Convex type. Specifies Cool Slant type. Specifies Cross type. Specifies Divot type. Specifies Hard Edge type. Specifies Relaxed Inset type. Specifies Riblet type. Specifies Slope type. Specifies Soft Round type. Specifies type of the Bevel Preset Type. Specifies Isometric Bottom type Specifies Isometric BottomUp type. Specifies Isometric LeftDown type. Specifies Isometric LeftUp type. Specifies Isometric OffAxis 1 Left type. Specifies Isometric OffAxis 1 Right type. Specifies Isometric OffAxis 1 Top type. Specifies Isometric OffAxis 2 Left type. Specifies Isometric OffAxis 2 Right type. Specifies Isometric OffAxis 2 Top type. Specifies Isometric Top Up type. Specifies Perspective Front type. Specifies Perspective Left type. Specifies Perspective Right type. Specifies Perspective Below type. Specifies Perspective Above type. Specifies Perspective Relaxed Moderately type. Specifies Perspective Relaxed type. Specifies Perspective Contrasting Left type. Specifies Perspective Contrasting Right type. Specifies Perspective Heroic Extreme Left type. Specifies Perspective Heroic Extreme Right type. Specifies Oblique TopLeft type. Specifies Oblique TopRight type. Specifies Oblique BottomLeft type. Specifies Oblique BottomRight type. Specifies Orthographic Front type. Specifies Isometric OffAxis3 Bottom type. Specifies Isometric OffAxis3 Left type. Specifies Isometric OffAxis3 Right type. Specifies Isometric OffAxis4 Bottom type. Specifies Isometric OffAxis4 Left type. Specifies Isometric OffAxis4 Right type. Specifies Isometric RightDown type. Specifies Isometric RightUp type. Specifies Isometic TopDown type. Specifies Legacy Oblique Bottom type. Specifies Legacy Oblique BottomLeft type. Specifies Legacy Oblique BottomRight type. Specifies Legacy Oblique Front type. Specifies Legacy Oblique Left type. Specifies Legacy Oblique Right type. Specifies Legacy Oblique Top type. Specifies Legacy Oblique TopLeft type. Specifies Legacy Oblique TopRight type. Specifies Legacy Perspective Bottom type. Specifies Legacy Perspective BottomLeft type. Specifies Legacy Perspective BottomRight type. Specifies Legacy Perspective Front type. Specifies Legacy Perspective Left type. Specifies Legacy Perspective Right type. Specifies Legacy Perspective Top type. Specifies Legacy Perspective TopLeft type. Specifies Legacy Perspective TopRight type. Specifies Oblique Bottom type. Specifies Oblique Left type. Specifies Oblique Right type. Specifies Oblique Top type. Specifies Perspective Above LeftFacing type. Specifies Perspective Above RightFacing type. Specifies Perspective Contrasting LeftFacing type. Specifies Perspective Contrasting RightFacing type. Specifies Perspective Heroic Extreme LeftFacing type. Specifies Perspective Heroic Extreme RightFacing type. Specifies Perspective Heroic LeftFacing type. Specifies Perspective Heroic RightFacing type. Specifies type of the LightRig Direction. Specifies top direction. Specifies top left direction. Specifies top right direction. Specifies center direction. Specifies bottom direction. Specifies bottom left direction. Specifies bottom right direction. Specifies Left direction. Specifies right direction. Specifies type of the Bevel Preset Type. Specifies Isometric Bottom type Specifies Two Pt type. Specifies Three Pt type. Specifies Sunrise type. Specifies Soft type. Specifies Morning type. Specifies Legacy Normal 1 type. Specifies Legacy Normal 2 type. Specifies Legacy Normal 3 type. Specifies Legacy Normal 4 type. Specifies Legacy Harsh 1 type. Specifies Legacy Harsh 2 type. Specifies Legacy Harsh 3 type. Specifies Legacy Harsh 4 type. Specifies Legacy Flat 1 type. Specifies Legacy Flat 2 type. Specifies Legacy Flat 3 type. Specifies Legacy Flat 4 type. Specifies Harsh type. Specifies Glow type. Specifies Freezing type. Specifies Flood type. Specifies Flat type. Specifies Contrasting type. Specifies Chilly type. Specifies BrightRoom type. Specifies Balanced type. Specifies type of the Extrusion Plane Preset Type. Specifies XY Plane Specifies YZ plane Specifies ZX plane Specifies type of the Tile Filp Type. Specifies No Plane Specifies XY Plane Specifies Y plane Specifies X plane Specifies type of the Extrusion Preset Type. Specifies Parallel type Specifies Perspective type Specifies type of the Extrusion Render Mode Type. Specifies Solid mode Specifies Wireframe mode. Specifies Bounding cube. Specifies type of the Fill Aspects. Specifies Atleast. Specifies Atmost. Specifies Ignore. Specifies type of the Blip Compression Type. Specifies No compression mode. Specifies Email mode Specifies Print mode. Specifies Screen mode. Specifies High Quality Printing mode. Specifies type of the shadow type. Specifies single shadow. Specifies double shadow. Specifies top alignment. Specifies the shadow which is shape relative. Specifies the shadow which is drawing relative. Specifies emboss shadow. Specifies type of the horizontal alignment. Specifies paragraph text is aligned to the left. Specifies paragraph text is aligned to the center. Specifies paragraph text is aligned to the right. Specifies paragraph text is aligned to both left and right. Specifies paragraph characters are distributed to fill the entire width of the paragraph. Specifies paragraph uses medium-length Kashida, if the language is Arabic. In other languages, paragraph text is justified with a medium character compression ratio. Specifies paragraph uses longer length Kashida, if the language is Arabic. In other languages, paragraph text is justified with a high character compression ratio. Specifies paragraph uses small length Kashida, if the language is Arabic. In other languages, paragraph text is justified with a high character compression ratio. Specifies paragraph text is justified with Thai distributed justification, if the language is Thai. In other languages, text is justified with a low character compression ratio. Specifies type of the horizontal row alignment. Specifies row alignment to the left. Specifies row alignment to the center. Specifies row alignment to the right. Specifies style of the underline. This enum is not supported in MVC6 and Xamarin platforms. No underline. A single line. default. Underline individual words only. A double line. Dots. A single thick line. Dashes. Long dashes. Alternating dots and dashes. An alternating dot-dot-dash pattern. A single wavy line. Heavy dots. Heavy dashes. Long heavy dashes. Alternating heavy dots and heavy dashes. An alternating heavy dot-dot-dash pattern. A heavy wavy line. A double wavy line. Specifies type of the sub and super script. No sub- or superscript. Specified superscript format. Specified subscript format. Specifies the line style of the border. No border. A single solid line. Thick solid lines. Double solid lines. Hairline border. Dots. A dash followed by a large gap. A dash followed by a dot. A dash followed by two dots. Three solid thin lines. An internal single thin solid line surrounded by a single thick solid line with a small gap between them. An internal single thick solid line surrounded by a single thin solid line with a small gap between them. An internal single thin solid line surrounded by a single thick solid line surrounded by a single thin solid line with a small gap between all lines. An internal single thin solid line surrounded by a single thick solid line with a medium gap between them. An internal single thick solid line surrounded by a single thin solid line with a medium gap between them. An internal single thin solid line surrounded by a single thick solid line surrounded by a single thin solid line with a medium gap between all lines. An internal single thin solid line surrounded by a single thick solid line with a large gap between them. An internal single thick solid line surrounded by a single thin solid line with a large gap between them. An internal single thin solid line surrounded by a single thick solid line surrounded by a single thin solid line with a large gap between all lines. A single wavy solid line. Double wavy solid lines. A dash followed by a small gap. A dash followed by a dot stroke, thus rendering a border similar to a barber pole. The border appears to have a 3-D embossed look. The border appears to have a 3-D engraved look. The border appears to be outset. The border appears to be inset. Twisted Lines Art Border. Cleared border. Specifies the graphical page border settings Specifies type of the section break code. No break with the new section beginning on the next paragraph of the same page. Column break with the new section beginning on the next column on the page. Section break with the new section beginning on the next page. Section break with the new section beginning on the next even-numbered page. Section break with the new section beginning on the next odd-numbered page. Specifies type of the link. No links. Links to another file. Links to a web page. Link to e-mail. Bookmark link. Specifies type of the list format. Specifies numbered list. Specifies bulleted list. No numbering. Specifies type of the list numbering format. Arabic format. Upper roman numbering format. Lower roman numbering format. Upper case letter numbering format. Lower case letter numbering format. Ordinal numbering format. Number numbering format. Ordinal text numbering format. Leading zero numbering format. Bullet numbering format. Far east numbering format. Special numbering format. Specifies chinese counting thousand format. Specifies Japanese counting format. Specifies None numbering format. Specifies the way of cell merging. No merge. Merge starts from this cell. Merge is continued. Specifies shape position Specifies the horizontal origin of the object. Origin to margin. Origin to page. Origin to column. Origin to character. Origin to left margin. Origin to right margin. Origin to inner margin area. Origin to outer margin area. Specifies the vertical origin of the object. Origin to margin. Origin to page. Origin to paragraph. Origin to line. Origin to top margin. Origin to bottom margin. Origin to inner margin area. Origin to outer margin area. Specifies the vertical origin of the object height. Origin to margin. Origin to page. Origin to top margin. Origin to bottom margin. Origin to inner margin area. Origin to outer margin area. Specifies the horizontal origin of the object width Origin to margin. Origin to page. Origin to left margin. Origin to right margin. Origin to inner margin area. Origin to outer margin area. Specifies the text box border line style. A single solid line. Double solid lines. Thick line next to thin line. For horizontal lines, thick line is below thin line. For vertical lines, thick line is to the right of the thin line. Thick line next to thin line. For horizontal lines, thick line is above thin line. For vertical lines, thick line is to the left of the thin line. Three solid lines. Specifies the text wrap style. In line with text. Top and bottom. Wraps text around the shape. Line continuation is on the opposite side of the shape. Places shape in front of text. Tight. Through. Places shape behind text. Specifies the text wrapping type. Wrap text both sides. Wrap text left side only. Wrap text right side only. Side that is farthest from the page margin. Specifies the tab justification. Left tab. Centered tab. Right tab. Decimal tab. Bar. List. Specifies the tab leader. No leader. Dotted leader. Hyphenated leader. Single line leader. Heavy line leader. Specifies the table row height type. "At least" table row height type " Exactly" table row height type Specifies the list number alignment. Left align. Center align. Right align. Specifies the type of character following the list level number text for the paragraph. List levels number or bullet is followed by tab. List levels number or bullet is followed by space. Follow character isn't used. specifies the picture color. Picture automatic color. Picture gray-scale color. Picture black and white color. Picture washout color. Specifies the type of separator to chapter pages. A hyphen. A period. A colon. An emphasized dash. A standard dash. Specifies the level of the heading. No heading level. Heading level 1. Heading level 2. Heading level 3. Heading level 4. Heading level 5. Heading level 6. Heading level 7. Heading level 8. Heading level 9. Specifies the type of the break. Page break type. Column break type. Line break type. Text wrapping break type. Specifies the watermark type. No watermark. Picture watermark. Text watermark. Specifies the watermark layout. Diagonal watermark layout. Horizontal watermark layout. Specifies the type of the background. No background fill effect. Gradient fill effect. Picture fill effect. Texture fill effect. Color fill effect. Specifies the shading styles for Gradient background effect. Horizontal shading style. Vertical shading style. Diagonal Up shading style. Diagonal Down shading style. From Corner shading style. From Center shading style. Speecifies the shading variants for background gradient. Shading in the upper part. Shading in the lower part. Shading in upper and lower parts. Shading in the middle. Specifies the type of a form field. Text form field. Check box form field. Drop-down form field. Specifies the checkBox size type. Auto check box size. Exact check box size. Specifies the format of the text. No text formatting Uppercase text formatting. Lowercase text formatting. First capital text formatting. Title case text formatting. Specifies the format of the number. No formatting Format with whole number. Format with floating point number. Whole number in percents. Floating point number in percents. Format which suits to "# ##0" Word format. Format which suites to "# ##0,00" Word format. Format which suites to "# ##0,00 $;(# ##0,00 $)" Word format. Specifies the direction of text. Text flows horizontally. default. Text flows vertically and reads from top to bottom, right to left in order to read Far East Languages. Text flows vertically and reads from bottom to top. Text flows vertically and reads from top to bottom. Text flows horizontally and reads from right to left in order to read Far East Languages. Text flows vertically and reads from top to bottom, left to right. Specifies the direction of text. Text flows in left to right order. Text flows in Top to bottom order. Text flows in Top to bottom order and rotated. Text flows in left to right order and rotated. Text flows in right to left order. Text flows in right to left order and rotated. Specifies the type of field mark. Field separator type Field end type. Specifies the built-in styles. Normal style. Heading level 1 style. Heading level 2 style. Heading level 3 style. Heading level 4 style. Heading level 5 style. Heading level 6 style. Heading level 7 style. Heading level 8 style. Heading level 9 style. Index 1 style. Index 2 style. Index 3 style. Index 4 style. Index 5 style. Index 6 style. Index 7 style. Index 8 style. Index 9 style. Table of content 1 style. Table of content 2 style. Table of content 3 style. Table of content 4 style. Table of content 5 style. Table of content 6 style. Table of content 7 style. Table of content 8 style. Table of content 9 style. Normal indent style. Footnote text style. Comment text style. Header style. Footer style. Index heading style. Caption style. Table of figures style. Footnote reference style. Comment reference style. Line number style. Page number style. Endnote reference style. Endnote text style. Table of authorities style. Macro text style. TOA heading style. List style. List bullet style. List number style. List 2 style. List 3 style. List 4 style. List 5 style. List bullet 2 style. List bullet 3 style. List bullet 4 style. List bullet 5 style. List number 2 style. List number 3 style. List number 4 style. List number 5 style. Title style. Closing style. Signature style. Default paragraph font style. Body text stye. Body text indent style. List continue style. List continue 2 style. List continue 3 style. List continue 4 style. List continue 5 style. Message header style. Bub title style. Salutation style. Date style. Body Text 1 style. Body Text 2 style. Note heading style. Body text 2 style. Body text 3 style. Body text indent 2 style. Body text indent 3 style. Block text style. Hyperlink style. Followed hyperlink style. Strong style. Emphasis style. Document map style. Plain text style. Email signature style. Normal web style. Html acronym style. Html address style. Html cite style. Html code style. Html definition style. Html keyboard style. Html pre-formatted style. Html sample style. Html type writer style. Html variable style. Comment subject style. No list style. Balloon text style. User style. No style. Specifies the built-in list styles. List bullet style. List number style. List bullet 2 style. List bullet 3 style. List bullet 4 style. List bullet 5 style. List number 2 style. List number 3 style. List number 4 style. List number 5 style. Specifies the built-in table styles. Table normal style. Table grid style. Light shading style. Light shading accent 1 style. Light shading accent 2 style. Light shading accent 3 style. Light shading accent 4 style. Light shading accent 5 style. Light shading accent 6 style. Light List style. Light list accent 1 style. Light list accent 2 style. Light list accent 3 style. Light list accent 4 style. Light list accent 5 style. Light list accent 6 style. Light grid style. Light grid accent 1 style. Light grid accent 2 style. Light grid accent 3 style. Light grid accent 4 style. Light grid accent 5 style. Light grid accent 6 style. Medium shading 1 style. Medium shading 1 accent 1 style. Medium shading 1 accent 2 style. Medium shading 1 accent 3 style. Medium shading 1 accent 4 style. Medium shading 1 accent 5 style. Medium shading 1 accent 6 style. Medium shading 2 style. Medium shading 2 accent 1 style. Medium shading 2 accent 2 style. Medium shading 2 accent 3 style. Medium shading 2 accent 4 style. Medium shading 2 accent 5 style. Medium shading 2 accent 6 style. Medium list 1 style. Medium list 1 accent 1 style. Medium list 1 accent 2 style. Medium list 1 accent 3 style. Medium list 1 accent 4 style. Medium list 1 accent 5 style. Medium list 1 accent 6 style. Medium list 2 style. Medium list 2 accent 1 style. Medium list 2 accent 2 style. Medium list 2 accent 3 style. Medium list 2 accent 4 style. Medium list 2 accent 5 style. Medium list 2 accent 6 style. Medium grid 1 style. Medium grid 1 accent 1 style. Medium grid 1 accent 2 style. Medium grid 1 accent 3 style. Medium grid 1 accent 4 style. Medium grid 1 accent 5 style. Medium grid 1 accent 6 style. Medium grid 2 style. Medium grid 2 accent 1 style. Medium grid 2 accent 2 style. Medium grid 2 accent 3 style. Medium grid 2 accent 4 style. Medium grid 2 accent 5 style. Medium grid 2 accent 6 style. Medium grid 3 style. Medium grid 3 accent 1 style. Medium grid 3 accent 2 style. Medium grid 3 accent 3 style. Medium grid 3 accent 4 style. Medium grid 3 accent 5 style. Medium grid 3 accent 6 style. Dark list style. Dark list accent 1 style. Dark list accent 2 style. Dark list accent 3 style. Dark list accent 4 style. Dark list accent 5 style. Dark list accent 6 style. Colorful shading style. Colorful shading accent 1 style. Colorful shading accent 2 style. Colorful shading accent 3 style. Colorful shading accent 4 style. Colorful shading accent 5 style. Colorful shading accent 6 style. Colorful list style. Colorful list accent 1 style. Colorful list accent 2 style. Colorful list accent 3 style. Colorful list accent 4 style. Colorful list accent 5 style. Colorful list accent 6 style. Colorful grid style. Colorful grid accent 1 style. Colorful grid accent 2 style. Colorful grid accent 3 style. Colorful grid accent 4 style. Colorful grid accent 5 style. Colorful grid accent 6 style. Table 3 deffects 1 style. Table 3 deffects 2 style. Table 3 deffects 3 style. Table classic 1 style. Table classic 2 style. Table classic 3 style. Table classic 4 style. Table colorful 1 style. Table colorful 2 style. Table colorful 3 style. Table columns 1 style. Table columns 2 style. Table columns 3 style. Table columns 4 style. Table columns 5 style. Table contemporary style. Table elegant style. Table grid 1 style. Table grid 2 style. Table grid 3 style. Table grid 4 style. Table grid 5 style. Table grid 6 style. Table grid 7 style. Table grid 8 style. Table list 1 style. Table list 2 style. Table list 3 style. Table list 4 style. Table list 5 style. Table list 6 style. Table list 7 style. Table list 8 style. Table professional style. Table simple 1 style. Table simple 2 style. Table simple 3 style. Table subtle 1 style. Table subtle 2 style. Table theme style. Table web 1 style. Table web 2 style. Table web 3 style. Defines conditional formatting styles type. The first row The last row The odd row banding The even row banding The first column The last column The odd column banding The even column banding The first row last cell The first row first cell The last row last cell The last row first cell Specifies the number style for a page. Arabic. Upper case roman. Lower case roman. Upper case letter. Lower case letter. Specifies the page number alignment. Left alignment. Center alignment. Right alignment. Inside alignment. Outside alignment. Specifies the horizontal frame anchor. Specifies the vertical frame anchor. Specifies the vertical frame position. Specifies the XHTML validation type. XHTML 1.0 validation. It does not allows the attributes inside the tag. XHTML 1.1 validation. It allows several attributes within the tags. No validation. It does not perform any schema validation, but the given HTML content should have proper open and close tags. Specifies the type of grid pitch. The no grid The chars and line The lines only The snap to chars Specifies the document creation version. Document created using Word 97 Document created using Word 2000 Document created using Word 2002 Document created using Word 2003 Document created using Word 2007 Specifies the type of comment mark. Comment start mark type. Comment end mark type Specifies the type of the ole object field. Ole object field type is EMBED. Ole object field type is LINK. Specifies the type of OLE object. Type is not defined. Adobe Acrobat Document. File has ".pdf" extension. Bitmap Image. File has ".png" extension. Media Clip. Equation. Graph Chart. Excel 97-2003 Worksheet. File has ".xls" extension. Excel Binary Worksheet. File has ".xlsb" extension. Excel chart. File has ".xls" extension. Excel Macro-Enabled Worksheet. File has ".xlsm" extension. Excel Worksheet. File has ".xlsx" extension. PowerPoint 97-2003 Presentation. File has ".ppt" extension. PowerPoint 97-2003 Slide. File has ".sld" extension. PowerPoint Macro-Enabled Presentation. File has ".pptm" extension. PowerPoint Macro-Enabled Slide. File has ".sldm" extension. PowerPoint Presentation. File has ".pptx" extension. PowerPoint Slide. File has ".sldx" extension. Word 97-2003 Document. File has ".doc" extension. Word Document. File has ".docx" extension. Word Macro-Enabled Document. File has ".docm" extension. Visio Deawing. MIDI Sequence. OpenDocument Presentation. OpenDocument Spreadsheet. OpenDocument Text. OpenOffice.org 1.1 Spreadsheet. OpenOffice.org 1.1 Text. Package. Video Clip. Wave Sound. WordPad Document. OpenOffice spreadsheet. OpenOffice Text. Specifies the type of the ole object update mode. The object is updated when the object's application indicates there is new data available. The object is updated when the user chooses to update it. Specifies the image type. Meta file. Bitmap. Specifies the Rtf table type. Font table collection List table collection Color table collection List override collection Style sheet collection No table collection Specifies the Rtf token type. Group start. Group end. Control word. Text. Table entry. Unknown. Specifies the type of the field character. Field begin. Field separator. Field end. Field unknown. simple field. Specifies the ligature type. Does not apply any ligatures to the font. Applies standard ligatures to the font. Standard ligatures are designed to enhance readability. Standard ligatures in Latin languages include "fi", "fl", and "ff", for example. Applies contextual ligatures to the font. Contextual ligatures are often designed to enhance readability, but may also be solely ornamental. Contextual ligatures may also be contextual alternates. Applies standard and contextual ligatures to the font. Applies historical ligatures to the font. Historical ligatures are similar to standard ligatures in that they were originally intended to improve the readability of the font, but may look archaic to the modern reader. Applies standard and historical ligatures to the font. Applies contextual and historical ligatures to the font. Applies standard, contextual, and historical ligatures to the font. Applies discretional ligatures to the font. Discretional ligatures are most often designed to be ornamental at the discretion of the type developer. Applies standard and discretional ligatures to the font. Applies contextual and discretional ligatures to the font. Applies standard, contextual and discretional ligatures to the font. Applies historical and discretional ligatures to the font. Applies standard historical and discretional ligatures to the font. Applies contextual, historical, and discretional ligatures to a font. Applies all types of ligatures to the font. Specifies the number form type. The default The lining The old style Specifies the number spacing type. The default The proportional The tabular Specifies the stylistic set type. The stylistic set default The stylistic set01 The stylistic set02 The stylistic set03 The stylistic set04 The stylistic set05 The stylistic set06 The stylistic set07 The stylistic set08 The stylistic set09 The stylistic set10 The stylistic set11 The stylistic set12 The stylistic set13 The stylistic set14 The stylistic set15 The stylistic set16 The stylistic set17 The stylistic set18 The stylistic set19 The stylistic set20 Specifies the compatibility types. Don't add automatic tab stop for hanging indent. Don't add extra space for raised/lowered characters. Print colors as black on noncolor printers. Wrap trailing spaces to next line. Don't balance columns for continuous section starts. Treat \" as "" in mail merge data sources. Suppress Space Before after a hard page or column break. Suppress extra line spacing at top of page. Combine table borders like Word 5.x for the Macintosh. Truncate font height. Show hard page or column breaks in frames. Swap left and right borders on odd facing pages. Convert backslash characters into yen signs. Don't expand character spaces on the line ending Shift+Return. Draw underline on trailing spaces. Balance SBCS characters and DBCS characters. Suppress extra line spacing at top of page like Word 5.x for the Macintosh. Specifies whether line spacing emulates WordPerfect 5.x line spacing Print body text before header/footer. Don't add leading (extra space) between rows of text. Add space for underline. Use larger small caps like Word 5.x for the Macintosh. Suppress extra line spacing like WordPerfect 5.x. Truncate font height. Substitute fonts based on font size. Use printer metrics to lay out document. Use Word 6.x/95 border rules. Don't center "exact line height" lines. Set the width of a space like WordPerfect 5.x. Do full justification like WordPerfect 6.x for Windows. Line wrap like Word 6.0. Lay out autoshapes like Word 97. Lay out footnotes like Word 6.x/95/97. Don't use HTML paragraph auto spacing. Adjust line height to grid height in the table. Forget last tab alignment. Specifies whether to emulate Word for Windows 95 full-width character spacing Slign table rows independently. Lay out tables with raw width. Allow table rows to lay out apart. Use Word 97 line breaking rules for Asian text. Don't break wrapped tables across pages. Don't snap text to grid inside table with inline objects. Select entire field with first or last character. Use line-breaking rules. Don't allow hanging punctuation with character grid. Don't use Asian rules for line breaks with character grid. Use Word 2002 table style rules. Allow tables to extend into margins. Use the Normal style instead of the List Paragraph style for bulleted or numbered lists. Do not use hanging indent as tab stop for bullets and numbering. Use Word 2003 hanging-punctuation rules in Asian langauges. Allow space between paragraphs of the same style in a table. Use Word 2003 indent rules for text next to wrapped objects. Do not autofit tables next to wrapped objects. Use Microsoft Office Word 2003 table autofit rules. Underline the tab character between the number and the text in numbered lists. Do not use proportional width for Korean characters. Split apart page break and paragraph mark. Specifies whether to not vertically align cells containing floating objects Specifies whether to not break table rows around floating tables Specifies whether to ignore vertical alignment in text boxes Specifies whether to use ANSI kerning pairs from fonts instead of the Unicode kerning pair info Specifies whether to use cached paragraph information for column balancing specifies whether to apply the additional preceding rules when determining the font size and justification of text within tables. specifies whether the preceding features are to be used when displaying the font. specifies whether to swap indentation values when displaying paragraphs. conditional formatting of table row headers does apply separately to multi-row table headers Specifies the compatibility mode that uses when opening a document. Features new to Word 2007 and later are disabled in this mode. Features new to Word 2010 and later are disabled in this mode. All Word 2010 features are enabled. Default. All Word 2013 features are enabled. Also Word 2016 have similar features of Word 2013 and it doesn't have any difference. Specifies the text effect for the revised text Specifies that the revised text has no special effects Applies bold for the revised text Applies italic for the revised text Applies underline style for the revised text Applies strike through for the revised text Specifies the track changes revision color. Represents 2e97d3 for insert text, else 1b9cab color. Represents 000000 color. Represents 2e97d3 color. Represents 84a35b color. Represents 376e96 color. Represents 881824 color. Represents e09a2b color. Represents a0a3a9 color. Represents 50565e color. Represents 2c6234 color. Represents ce338f color. Represents b5082e color. Represents 1b9cab color. Represents 3eafc2 color. Represents 633277 color. Represents ffffff color. Represents fad272 color. Represents 2e97d3 for insert text, else 1b9cab color. Represents ff0000 color. Represents 0000ff color. Specifies the rendering options for document comments. No document comments are rendered. Renders document comments in balloons. Specifies the track changes revision markup. No revision Insertion revision type Deletion revision type Formatting revision type StyleDefinition revision type MoveFrom revision type MoveTo revision type Revisions to preserve in track changes ballloons Renders revisions in inline in the PDF. Renders deleted markup balloon in PDF. CaptionEscapeDirectionCaptionEscapeDirection Renders formatting markup balloon in PDF. Specifies the Import options. Imports the contents from the source document, applies the default style (Normal), and preserves all other formatting as direct formatting in order to preserve the contents as in source document. Imports the contents of the source document to the destination document, and applies the formatting of surrounding content to the destination document. Imports only the text from the source document to the destination document. Imports the contents of the source document to the destination document, and applies the styles present in the destination document, or imports the source style to the destination document when there is no style with the same name in the destination document. Imports the contents of the source document to the destination document, and continues the list numbering. Imports the contents of the source document to the destination document, and restarts the list numbering. Represents the node types of CustomXMLNode. Represents Element node type. Represents Attribute node type. Represents Text node type. Represents Document node type. Specifies the warning type element names Date and Time Annotation reference Comment Current section number Custom shape Group shape Line number Mathematical text OLE object Page number Shape Print merge helper field SmartArt diagram Track changes Text box WordArt Watermark Specifies the types of emphasis marks which can be displayed for each non-space character. No Emphasis Mark Dot Emphasis Mark Above Characters Comma Emphasis Mark Above Characters Circle Emphasis Mark Above Characters Dot Emphasis Mark Below Characters Specifies the text rendering direction Left to Right Right to left Document's AbsoluteTab Relation. Relative to margin. Relative to indent. Document's AbsoluteTab Relation. left alignment. center alignment. right alignment. The none The round The square The angle The curly Specifies the data type of external data source. Specifies the possible results which may be generated when a mail merge is carried out on a document. Specifies the possible types for a mail merge source document. Specifies how Microsoft Word will report errors detected during mail merge. Specifies the AutoFitType Fit the contents respect to contents. Fit the contents respect to window/pagewidth. Fit the contents respect to fixed column width. Specifies the printer paper tray. The default bin The only bin The lower bin The middle bin The manual feed The envelope feed The manual envelope feed The automatic sheet feed The tractor feed The small format bin The large format bin The large capacity bin The paper cassette The form source Determines whether [is pattern empty] [the specified pattern]. The pattern. true if it is the specified pattern empty, set to true. Strings to regex. The given. if it is case sensitive, set to true. if it is specified to search a whole word, set to true. Gets the start index of the range. The paragraph. The start. The Text Range. Ensures both and have same owner information. Starting text range of the text to find. Ending text range of the text to find. Returns true if start and end text ranges are from same owner, else returns false Ensures the start and end text ranges are in same paragraph or same inline content control, and also ensures there is no inline content control in between them. Get the start index of the range, inside inline content control. of that need to check. Position value to find the text range. Object to hold the found . Returns start index and also that text range element, which has position value. TextFinder variable. Finds the text by specified pattern. The paragraph. The pattern. if it is only first match, set to true. Finds the text by specified pattern. The paragraph. The pattern. if it is only first match, set to true. Finds the in items. The paragraph item collection to find inside the items. The pattern. if it is only first match, set to true. The selections. Gets the text body of paragraph item. The item. Finds the text by specified pattern in single-line mode. The text body. The pattern. Finds the text by specified pattern in single-line mode. The text body. The pattern. The start index. The end index. Finds the in items. The paragraph. The pattern. The start index. The end index. Finds the single-line text by pattern. The pattern. Finds the text by specified pattern in table using single-line mode. The tables. The pattern. Forms the list of text selections. The paragraphs. The match. Close this instance. Gets the instance of TextReplacer. The instance. Class provides replacing method for the specified paragraph TextReplacer variable. Replaces the specified paragraph. The paragraph. The pattern. The replace. Ensures whether start and end text range are from same owner. Represents a paragraph to find the text ranges. Starting character position from matched text. Ending character position from matched text. Starting text range, to perform further operations. Index of starting text range, to perform further operations. Replaces the in items. A to perform replacement in its items. The pattern. The replacement. Replaces the single line. The find text. The replacement. Replaces the single=line selection with TextSelection. Single-line selection to replace. The replacement. Replaces the single-line selection with TextBodypart. Single-line selection to replace. The replacement. Removes the owner paragraph from selection in case paragraph is empty. The selection. Removes the internal items. A to remove internal items from the start index Start index of the range. Corrects the next items. Item which position value is changed recently. The start index. The offset. Gets the instance of TextReplacer. The instance. The exception that is thrown when a layouting error occurs. Default exception message. Initializes a new instance of the class. Initializes a new instance of the class. The inner exc. Initializes a new instance of the class. The message. Initializes a new instance of the class. The message. The inner exc. Initializes a new instance of the class. The object that holds the serialized object data. The contextual information about the source or destination. The exception that is thrown when a layouting error occurs. Default exception message. Default constructor. Initializes a new instance of the class. The inner exc. Initializes a new instance of the class. The message. Initializes a new instance of the class. The message. The inner exc. Summary description for TableLayoutInfo. Gets or sets the width. The width. Gets the height. The height. Gets or sets the width of the cells. The width of the cells. Gets the headers row count. The headers row count. Gets the is default cells. The is default cells. Gets or sets if the table is splitted Gets the cell spacings. The cell spacings. Gets the cell paddings. The cell paddings. Class representing the layout area. Initializes a new instance of the class. Initializes a new instance of the class. The area. Initializes a new instance of the class. The area. The spacings. Cuts from left. The x. Cuts from left. The x. Updates the dynamic relayout bounds. The x. The y. if set to true [is need to update width]. The width. Cuts from top. The y. Cuts from top. The y. Cuts from top. The y. The footnote height. Is skip to update the Y position. Cuts from top. When second layouting occurs the clientactivearea has assigned a new value. Updates the client area. Update Bounds based on Text Wrap Updates the Width Updates the left position Gets the width. The width. Gets the height. The height. Gets or sets a value indicating whether [skips subtract when invalid parameter]. true if [skips subtract when invalid parameter]; otherwise, false. Gets the margins. The margins. Gets the paddings. The paddings. Gets the outer area. The outer area. Gets the client area. The client area. Gets the client active area. The client active area. Summary description for ILayoutedRange. Specifies the footnote textbody height of the current line Specifies the endnote textbody height of the current line Specifies the any of floating item intersects in current line. Specifies the document has track changes. Specifies the text range has RTL text. Initializes a new instance of the class. The widget. Initializes a new instance of the class. The widget. Initializes a new instance of the class. The widget. The location. Get the footnote textbody height Get the footnote textbody height Retreive pagragraphs present in the cells. paragraph widget of cells Determines whether the given widget is Table widget or not. The widget. Gets the frame clip bounds Current paragraph widget bounds Current paragraph paragraph format Paragrph layoutinfo Checks the type of the widget. The widget. Initializing LayoutInfo value to null Initializing LayoutInfo value to null for textwrap elements Initializes the layout information all. Shifts the location. The x offset. The y offset. Determines whether the floating items need to be align or not. Determines whether the floatting item need to be align or not based on the compatibility mode. The compatibility mode. if set to true [dont vert align cell with sp]. if set to true [layout in cell]. Shifts the location. The X offset The y offset.s Height of the footer. Height of the page. Shifts the location. The x offset. The y offset. if set to true [is picture need to be shifted]. Height of the footer. Height of the page. Updates the text wrapping bounds for a layouted floating items. The layouted widget. The document layouter containing the floating items. Retrieves the distance values for wrapping around a widget. The widget for which to retrieve distance values. Reference to the distance from the left side. Reference to the distance from the right side. Reference to the distance from the top side. Reference to the distance from the bottom side. The absolute table shifted based on bottom if absolute table bottom exceeded the page bottom. The widget The x offset. The absolute table shifted based on bottom if absolute table bottom exceeded the page bottom. The widget The x offset. Shifts the location of CommentsMarkUp. The x offset. The y offset. Collection of markups. Get the groupShape width before shrink Get the groupShape width before shrink Get the extension width and height of group shape Get the base entity Update Layouted Widget Bounds for the Nested Table Owner cell Width Owner cell Height Get owner textbody bounds Returns owner textbody bounds Determine Whether the layouted Widget Bounds is need to be update or not. Aligns the bottom. The g. Check we need to update the List Y Position. Return True,if the paragraph have child entities; Else false. Check whether the line contains picture Determines whether the paragraph has no valid items. Shifts the line child widgets based on top Ascent value Drawing context Maximum Ascent Top line space Maximum height Extra line ascent Refers the inline floating item is inside the line when the paragraph line spcing rule is exactly Get the text ascent value for the math widget. Indicates the layouted MathWidget. Drawing Context to get decent value. Shifts the Y for the list value based on top Ascent value. Drawing context Maximum Ascent Top line space Maximum height Extra line ascent Shifts the Y position. Drawing context Text ascent Maximum ascent Top line space Maximum height Exceeded line ascent Extra line ascent Character format Layoute widget (shifts Y position based on layouted widget) Size (shifts Y position based on List value) Detetmines whether the line contains the raised position. Determines whether it is maximum height in line or not. Drawing context Height Returns true if height is maximum Determines whether the MathML item exist in line or not. Returns true if contains Math in a line. Gets the paragraph. The widget. Calculates the max child widget. The g. Height of the max. The max ascent. Checks whether paragraph has only tabs. Gets field for current widget. Determines whether the field code paragraph height is need to skip or not. Determines whether [is inline floating item] [the specified item]. The item. Aligns the Center The Custom graphics. Width of the sub is for center align Aligns the Right The Custom graphics. Width of the sub is for center align Aligns the Right The Custom graphics. Width of the sub Consider valuable right positon in layputed widget collection for right alignment Aligns the justify. The custom graphics. Width of the sub. Check wether the next layouted widget's has renderable content whose width is greater than zero Get index of the tab from the current line Get the Text Range Decides whether document is not Word 2013 compatible. Get Space Delta Updates the para first line horizontal positions. The paragraph information. The widget. The x. The width. Determines whether it includes the specified widget in line height. The widget. Determines whether it includes the specified text widget in line height. The widget. Gets or sets the prev tab justification. The prev tab justification. Gets or sets the no. of spaces True, if it is last line of the paragraph Gets or Sets the SubWidth Gets or sets the HorizontalAlignment Gets or sets the Extra Wordspace, needs to be added while justifying Gets or sets the text tag. The text tag. Gets or sets Character Range Type in the widget Gets or sets Owner Layouted Widget Indicate the word which contains trimmed empty spaces charcters at end It holdes the floating item bounds which are instersecting current line. Represents the collection of layouted widget. Represent the layouted widget of WMath instance. Initializes a new instance of the class with the specified instance. Represent the WMath instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Disposes the instances. Shifts the X,Y position of LayoutedMathWidget. Represents the X position to Shift. Represents the Y position to Shift. Decides to update owner containder bounds or not. Shifts the X,Y position of LayoutedMathWidget. Represents the X position to Shift. Represents the Y position to Shift. Gets the Ascent or center point of the layouted math widget. Gets the child elements of the LayoutedMathWidget. Read-only The layouted widget collection of WMath child elements. Represent the layouted widget of OfficeMath instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMath instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Disposes the instances. Shifts the X,Y position of Layouted OfficeMath Widget. Represents the X position to Shift. Represents the Y position to Shift. Decides to update owner containder bounds or not. Shifts the X,Y position of Layouted OfficeMath Widget. Represents the X position to Shift. Represents the Y position to Shift. Gets the vertical center point of a layouted office math widget. Represent the layouted office math widget to find. Returns the vertical center point of an LayoutedOMathWidget. Gets the vertical center point of a layouted office math widget. Represent the layouted office math widget to find. Represent the maximum height widget index in LayoutedOMathWidget collection. Returns the vertical center point of an LayoutedOMathWidget. Gets the center point of a specified math function. Represent the layouted widget of an function to find the center point. Returns the center point of an function. Gets the child elements of the LayoutedOMathWidget. Read-only The layouted widget collection of OfficeMath child elements. Gets or Sets the bounds of a LayoutedOMathWidget The rectangle bounds of LayoutedOMathWidget. Gets the widget (IOfficeMath Entity) of the corresponding LayoutedOMathWidget. Read-only The of the layouted widget. Gets or Sets the Owner layouted widget. Represent the layouted widget of OfficeMathFunctionBase instance. Represent the interface of LayoutedFuntionWidget instance. Shift the corresponding layouted funtion widget's X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Gets the widget (IOfficeMathFunctionBase Entity) of the corresponding LayoutedFuntionWidget. Read-only The of the layouted widget. Gets or Sets the bounds of a LayoutedFuntionWidget The rectangle bounds of LayoutedFuntionWidget. Gets or Sets the Owner layouted widget. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Gets the widget (IOfficeMathFunctionBase Entity) of the corresponding LayoutedFuntionWidget. Read-only The of the layouted widget. Gets or Sets the bounds of a LayoutedFuntionWidget The rectangle bounds of LayoutedFuntionWidget. Gets or Sets the Owner layouted widget. Represent the layouted widget of OfficeMathRunElement instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Gets the widget (IOfficeMathFunctionBase Entity) of the corresponding LayoutedFuntionWidget. Read-only The of the layouted widget. Gets or Sets the of corrsponding run element. The represents a layouted widget of a run element. Gets or Sets the Owner layouted widget. Represent the layouted widget of OfficeMathFraction instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of a Numerator. Represent the layouted widget of a Denominator. Represent the layouted widget of a FractionLine. Represent the layouted widget of OfficeMathDelimiter instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of a BeginCharacter. Represent the layouted widget of a EndCharacter. Represent the layouted widget of a Seperator. Represent the layouted widget of a Equation. Represent the layouted widget of OfficeMathDelimiter instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Gets/Sets whether to show the equation or not. Represent the layouted widget of a Equation. Represent the layouted widget of OfficeMathRadical instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of a Degree. Represent the layouted widget of a Equation. Represent the layouted widget of a RadicalLines. Represent the layouted widget of OfficeMathLimit instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of the Limit. Represent the layouted widget of the Equation widget. Represent the layouted widget of OfficeMathBox instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of the Equation widget. Represent the layouted widget of OfficeMathScript instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of a Superscript. Represent the layouted widget of a Subscript. Represent the layouted widget of a Equation. Represent the layouted widget of OfficeMathNArray instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of a Superscript. Represent the layouted widget of a Subscript. Represent the layouted widget of a Equation. Represent the layouted widget of a NArrayCharacter. Represent the layouted widget of OfficeMathFunction instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of the Function name widget. Represent the layouted widget of the Equation widget. Represent the scaling factor of the accent character. Represent the layouted widget of OfficeMathFunction instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of the Function name widget. Represent the layouted widget of the Equation widget. Represent the scaling factor of the accent character. Represent the layouted widget of Line, thats used in MathML. Initializes a new instance of the class. Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the bounds of a layouted string. Represent the Text of a layouted string. Represent the Font of a layouted string. Represent whether current layouted string widget is stretchable or not. Represent the layouted widget of OfficeMathFunction instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of the Function name widget. Represent the layouted widget of the Equation widget. Represent the layouted widget of OfficeMathBorderBox instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Gets or sets a value that represents a BorderPoints Specifies a object that represents the base of the specified equation object. Represent the layouted widget of OfficeMathEquationArray instance. Initializes a new instance of the class with the specified instance. Represent the IOfficeMathFunctionBase instance Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of a Equation. Represent the layouted widget of OfficeMathBar instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Gets or sets a value that represents a BorderPoints Specifies a object that represents the base of the specified equation object. Represent the layouted widget of OfficeMathMatrix instance. Initializes a new instance of the class with the specified instance. Initializes a new instance of the class by cloning the specified instance. Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the layouted widget of Line, thats used in MathML. Initializes a new instance of the class. Initializes a new instance of the class by cloning the specified instance. Represent the source widget to get clone Shift the layouted widget X,Y positions. Represent the X position value to shift. Represent the Y position value to shift. Disposes the instances. Represent the starting point of a layouted line. Represent the ending point of a layouted line. Represent the color of a layouted line. Represent the width of a layouted line. Represent whether to skip the line or not. Class represents the layouter. Represents an layouting operator. Sends the event that current leaf widget lay outed complete. The widget. Gets or sets the custom graphics. The custom graphics. Client LayoutArea Page Top margin of the client area Holds the table of content Layout specified widget container. Method use ILayoutProcessHandler for control layout process The widget. The handler. The dc. Removes the layouted footnote widget from the page once dynamic relayout starts at the intersection points. Remove split string widgets from the first paragraph of current page. ltwidget of current page. Here, we removed the skipped widgets of LCLineContainer.ChangeChildsAlignment method. Layout a content in the track changes balloon. Gets the balloon layoutted widget Gets the balloon y position. Adjust the balloon position for the multiple balloons in same line of track changes. check whether the current widget is need to be layout Sends the event that current leaf widget lay outed complete. The widget. Resets the flags which are all used for word layouting funtionality Gets the left margin of section based on mirror margin property. Gets the Right margin of section based on mirror margin property. Gets the height of the header on the current page. Gets the current page right position value. Right Margin position value. Gets or set the previous layouted widget Gets or Sets the frame bounds. Holds the overall floating frame bounds and it will reset once frame bounds added to floatingItems collection Gets or sets that the value indicating whether currently layouting Vertical Merge Start cell or not. Gets and set the IsNeedToRestartFootnote Gets and set the m_canSplitbyCharacter Gets and set the m_canSplitByTab Gets and set the IsNeedToRestartEndnote Gets and set the IsNeedToRestartFootnoteID Gets and set the IsNeedToRestartEndnoteID Gets the current page index Get or Set the re-layout flag. Determines whether current layout process is to fit Word 2013 Justification extra words. Gets or sets a value indicating whether to relayout the table. true if relayout the table; otherwise, false. Gets the current page number Holds the widgets height which is removed from column by Keepwithnext behavior. This is used only for multi column with continous section break. Gets or sets the IsRowFitInSamePage. Gets or sets the IsLayoutingHeaderRow. Represent whether current layouting process is for TrackChanges or not. Represent whether at least one item fitted in a line or not. Gets or sets the field entity. The custom graphics. Gets or sets the custom graphics. The custom graphics. Get or set the Unknown field. Gets the Client LayoutArea. The ClientLayoutArea. Gets the frame layout area. The frame layout area. Gets the frame Height with Height type as Atleast The frame height A boolean denotes whether skip to consider bottom or not for Frame with atleast height. For atleast frame height, if there is space available to consider bottom values along with content height means, then skip to consider bottom(spacing+ line width) after the alteast frame height. Gets the IsLayoutingHeaderFooter. The IsLayoutingHeaderFooter. Gets the IsLayoutingHeader The IsLayoutingHeader Gets the First Item in the line Checks whether currently we are layouting the table to find its height. Check if currently layouting the footnote content Get or set the wrapping difference. The widget container. Gets or sets the maximum right position of tab stop inter secting floatting items. The maximum right position of tab stop inter secting floatting items. Gets or sets the right position of tab stop interSect floatting items. The right position of tab stop inter floatting items. Gets the toc entry page numbers. The toc entry page numbers. Gets the TOC link styles instance The TOC link style instance Gets the hidden paragraphs in a document. Hidden paragraphs collection Get last TOC pargraph Gets a value indicating whether updating Page fields. true if updating Page fields; otherwise, false. Gets or sets a value indicating whether footer area needs to adjust or not. true if updating Page fields; otherwise, false. Gets the Footnote widgets. Gets the Footnote count. Gets the line number widgets. Gets the Endnote widgets. Gets the TrackChangesMarkups widgets. Gets the Endnote widgets. Gets the number of behind widgets in header. Gets the number of behind widgets in footer. Gets the Endnote section index. Gets the current section. The current section. Gets the Footnote section index. Get the Splitted Footnote widgets Get or set the Splitted Endnote widgets Get or set the Endnote instances Gets the wrapping entity collection. Get the floating item, when the wrapping style have InFrontOfText or Behind Gets or sets the dynamic paragraph. The dynamic paragraph. Gets or sets the dynamic table. The dynamic table. Gets or sets the not fitted floating item. The Not fitted floating item. Gets the wrapping entity collection. Gets the wrapping entity collection. Gets the page end widget. The page end widget. Decides whether to force fit the widgets during layouting process. While creating new page this property will be enabled. Gets or sets the previous tab. The previous tab. Gets or sets the width of the previous tab. The width of the previous tab. Gets or sets a value indicating whether the tab preserved in-between the indent. true if tab preserved in-between the indent; otherwise, false. Gets or sets the table of content. Gets or sets the current column index Gets or sets the consecutive hyphenate line count. Holds the current paragraph Original Y position. This property value won't change when paragraph wrapped by floating item. Determines whether two lines are layouted for paragraph with Widow/Orphan control. when the paragraph has Widow/OrphanControl and the footnote position for current section is bottom of the page, this flag denotes whether minimum two lines of the paragraph are layouted. Determines whether the footnote's textbody is adjusted to fit two lines of corresponding paragraph. The corresponding paragraph of footnote has Widow/Orphan control and the footnote position is bottom of the page. Then only adjust the footnote to fit two lines of paragraph It holds the current line's white space widths. It is used to find the deleted and formatted text along with its coordinates while track changes is on. Gets the balloon value for the markup type. Display balloon value for the formatted text. Display balloon value for removed existing character format in track changes. s Get the display name based on the locale. Returns formatting text for the text style applied in shadding. Generate formatting text for shading formattings in track changes. Returns a color name equivalent to Word 2013 behavior for the formatting changes. Generate balloon value for the paragraph formattings in track changes. Mehtod to get formatted paragraph alignment string Generate balloon value for the removed paragraph formattings from existing in track changes. Generate formatting text for paragraph texture style formatting in track changes Generate formatting text for paragraph background color formatting in track changes Generate formatting text for paragraph fore color formatting in track changes Returns a balloon vaue for formattings in borders in track changes. paragraph format to get modified properties values from Returns a balloon vaue for formattings in paragraph spacing in track changes. new property hash to check whether keys are present paragraph format to get modified properties values from Returns a balloon vaue for formattings in frame in track changes. Returns balloon value for formattings in Frame wrapping. Returns the balloon value for formattings in Frame Y position. Returns the balloon value for formatting in Frame X position. Returns balloon value for indents formattings in paragraph. Get the balloon value for the tab alignments. Displays balloon value for list format changes in paragraph. Returns the balloon value for list pattern formattings. Appends the textrange in deletions balloon. Concat string values in the dictionary to a single string value. dictionary that contains string values single string value Gets a WordDocument object. Represents a Y position of Track Chaneges Ballon. Get or Set the Markup Type Get or Set the text from the revision. Get or Set the position of the track changes markups LayoutWidget for balloon Holds the empty space value Checks whether the track changes markup position is aligned or not. It is used to find the comment text along with its coordinates while CommentDisplayMode is ShowInBalloons. Gets the balloon value for the comments. Returns the balloon value for the comments. Appends a paragraph into Comments balloon. Apply the Comments properties to Comments Body. Gets a Comment of the MarkUp. Gets a Comment ID of the MarkUp. Gets or Sets a extra spacing (Line/After/Before spacing) of line. Class to hold the floating items. Sorts the specified floating items. The floating items. The sort list based on. Check whether Y position intersect or not Sorts the same y position floating items based on x position. The floating items. The sort list based on. Sorts the intersected y position floating items based on x position. The floating items. The sort list based on. Updates the wrap collection index after sorting. The floating items. Current sort item index Index in which the floating item to be inserted Sorts the X position floating items based on Y position. Check whether Y position intersect or not Determines whether the sorted item need to be changed or not. The sort list based on. The first item. The secon item. Get the floating item bounds,which preserved left side of current floating item. Get the list of floating item, which preserved left side of current floating item. Get the floating item which has minimum bottom. Get or Set the wrapping bounds. Get or Set the wrapping element instances. While considering the Frame object as floating item, first entity of frame is maintained in this property. And remaining items are maintained in FrameEntities property. Gets or Sets the frame entities. Contains frame entites, if current floating item is frame; Otherwise null. Gets wrapping style. Gets wrapping type Gets the boolean value that represents whether a floating entity in a table is displayed inside or outside the table. Gets or sets the index of the wrap collection. The index of the wrap collection. Gets or sets a value indicating whether this instance is floating item fit. true if this instance is floating item fit; otherwise, false. Gets or sets a value indicating whether the instance is added. true if the instance is added; otherwise, false. Class to hold the layouted equation field switches. Entity for the equation field. Represents a layouted equation field switch. Class to hold the layouted equation field. Holds the bounds points of the layouted EQ fields. Child widgets, to hold collection of layouted EQ fields. Denotes the types of the EQ field switch. Holds the alignment of the layouted EQ fields. Types of EQ field switch Class to hold the line related EQ field Class to hold the text related EQ field Summary description for FieldLayoutInfo. Initializes a new instance of the class. if set to true [b top subtract area]. Gets/Sets boolean value to indicate whether line break need to be removed if it is last item in a paragraph Summary description for TableLayoutInfo. Checks whether the table is need to autofit to content or not. True, If the preferred width of the column is not defined. Else returns false Add empty paragraph to empty cell in the sepcified table Specify the table Gets the Table height using row height Gets the table row height Gets / sets table width Gets table height Gets / sets cells width array Gets / sets count of headers rows Gets the bool values array determining if cells are default Gets or sets a value indicating whether this table is splitted table true If this table is splitted into next page; otherwise, false> Gets or sets the height of the header row. The height of the header row. Gets or sets a value indicating whether this instance is header row height updated. true if this instance is header row height updated; otherwise, false. Gets the paddings. The paddings. Gets the margins. The margins. Gets owner table cell spacings. Gets owner cell paddings. Summary description for RowLayoutInfo. Initializes a new instance of the class. if set to true [is exactly row]. Height of the row. Gets and sets IsFootnoteReduced Gets and sets IsFootnoteSplitted Gets or sets a value indicating whether this instance is exactly row height. true if this instance is exactly row height; otherwise, false. Gets or sets a value indicating whether this instance is row splitted. true if this instance is row splitted; otherwise, false. Gets or sets the height of the row. The height of the row. Gets or sets a value indicating whether this instance is row has vertically merge continue cell. true if this instance is row has vertically merge continue cell; otherwise, false. Gets or sets a value indicating whether this instance is row has vertically merge continue end cell. true if this instance is row has vertically merge continue end cell; otherwise, false. Gets or sets a value indicating whether this instance is row has vertically merge start cell. true if this instance is row has vertically merge start cell; otherwise, false. Gets or sets a value indicating whether this instance is row has vertical text cell. true if this instance is row has vertical text cell; otherwise, false. Gets or Sets a value inidcating whether this row is splitted by pagebreak before property inside the first item of cell true if this row is splitted by page break before property ; otherwise,false. Gets or sets a value indicating whether header row repeat or not true If header row not repeat by floating items present in table; otherwise, false> Gets or sets a value indicating whether the table cell padding is already updated for a row Gets or sets a value indicating whether this instance is row splitted by floating item. true if this instance is row splitted by floating item; otherwise, false. Gets the paddings. The paddings. Gets the margins. The margins. Summary description for CellLayoutInfo. Initializes a new instance of the class. The child layout direction. Determines the formats. Checks the cell is vertically merged. The cell start position. Width of the cell. Index of the adj row. Update the cell's border, padding, margins Table style having padding value Is Table Have Padding value,return true; else false Gets the Left HalfWidth. The cellIndex. Gets the Right HalfWidth. The cellIndex. The cellLast. Gets the Bottom HalfWidth. The cellIndex. The cellLast. The rowIndex. The rowLast. Gets the Top HalfWidth. The cellIndex. The rowIndex. The Cell widget Previous row index depends on splitted table Gets the adjacent row cell. Returns the horizontal merge start cell for merged cells. Index of the row. Returns the adjacent row cell, ie., top and bottom cell Initilizes the layoutinfo values as null Gets a value indicating whether this instance is column merge start. true if this instance is column merge start; otherwise, false. Gets a value indicating whether this instance is column merge continue. true if this instance is column merge continue; otherwise, false. Gets a value indicating whether this instance is row merge start. true if this instance is row merge start; otherwise, false. Gets a value indicating whether this instance is row merge continue. true if this instance is row merge continue; otherwise, false. Gets or sets a value indicating whether this instance is row merge end. true if this instance is row merge end; otherwise, false. Gets the vertical alignment. The vertical alignment. Gets or sets the width of the cell content layouting. The width of the cell content layouting. Gets or sets a value indicating whether to skip top border. true if skip top border; otherwise, false. Gets or sets a value indicating whether to skip bottom border. true if skip bottom border; otherwise, false. Gets or sets a value indicating whether to skip left border. true if skip left border; otherwise, false. Gets or sets a value indicating whether to skip right border. true if skip right border; otherwise, false. Gets or sets the top padding. The top padding. Gets or sets the new top padding. The new top padding. Gets or sets the bottom padding. The bottom padding. Gets or sets the top border. The top border. Gets or sets the bottom border. The bottom border. Gets or sets the left border. The left border. Gets or sets the right border. The right border. Gets the updated top borders. The updated top borders. Gets the previous cell top border. The previous cell top border. Gets the next cell top border. The next cell top border. Gets or sets the previous cell bottom border. The previous cell bottom border. Gets or sets the next cell bottom border. The next cell bottom border. Gets or sets a value indicating whether this instance is cell has end note. true if this instance is cell has end note; otherwise, false. Gets or sets a value indicating whether this instance is cell has foot note. true if this instance is cell has foot note; otherwise, false. Gets the paddings. The paddings. Gets the margins. The margins. Gets the type of the border. The type of the border. Gets the color of the border. The color of the border. Gets the width of the border line. The width of the border line. Gets the width of the border line. The width of the border line. Gets or sets the adj cell left border. The adj cell left border. Summary description for LayoutContext. The minimum width for required for text to fit before the square type floating item. The minimum width for required for text to fit before the Tight and throw type floating item in Word 2013. The minimum width for required for text to fit before the Tight and Throw type floating item. The minimum width for required for text to fit after the square type floating item. The minimum width for required for text to fit after the Tight and throw type floating item in Word 2013. The minimum width for required for text to fit after the Tight and Throw type floating item. The maximum width. The bottom overlap difference for tight and through wrapping style. Right margin of client layout area Initializes a new instance of the class. The widget. The lc operator. Layouts the specified widget. The rect. Determines whether ensure splitted. true if ensure splitted; otherwise, false. Does the layout after. Layout Footnote Retrun whether needs to consider Adjusting value for text wrapping. Get the minimum value Ms Word preserves for a text wrapping to occur. Gets the footnote layouting client area. Denotes whether current cell is vertical merge start cell and owner row height type is exactly. Check whether the owner entity is textbox or not Checks whether Word document is 2013 format or not. Returns true, if this paragraph is Word 2013 Justification. Calculates the total padding and margin values for nested table. The current table. Removes layouted behind wrapping style items from BehindWidgets collection. Layouted Widget. Removes layouted behind wrapping style items from BehindWidgets collection. Layouted table widget (WTable). Removes layouted behind wrapping style items from BehindWidgets collection. Layouted table row widget (WTableRow). Removes layouted behind wrapping style items from BehindWidgets collection. Layouted line container widget (WParagraph). Removes layouted behind wrapping style items from BehindWidgets collection. Layouted line widget (WParagraph). Layout Endnote Check Weather footnote is splitted and return the boolean value. Layout Footnote TextBody Represents text body of Footnote. Represents height of footnote. Represents client height availble for layouting footnote. Represents a flag, which denotes line continaing footnote refrence is already layouted, without layouting footnote textbody. Check Weather footnote is splitted and return the boolean value. Layout Endnote TextBody Adds the layout widget in before insecting point. The inter sect widget. The index. Need to update the wrapping difference value. Update footnote widgets Determines whether we need to remove the layouted footnote separator. Represent the layouted line. Returns true, if it need to remove separator; otherwise returns false. Update footnote widgets Creates the layout area. The Rectangle. layout the bounds for wrapping element in paragraph collection Add the layoutwidget to the floating item collection. LayoutedWidget Leafwiget To check whether leaf element is drawing element or not. Leaf element. Return true if it is drawing element; else false. Check whether doNotSuppressIndentation property is set and skip the indent for the paragraph and its not applicable for Word 2013 Return the owner of the StructureDocumentTagBlock. Resets the floating entity property. The paragraph. Get paragraph top margin Get the Text Range Adjust bounds the based on wrap polygon. The rect. The vertices. Lines the intersection point. The PS1. The pe1. The PS2. The pe2. Determines whether [is wrap polygon denotes rectangle] [the specified vertices]. The vertices. Update X position of the paragraph based on TextWrap Checkes whether the paragraph is in cell and the owner table of that cell is present in frame. Paragraph to check Returns true if the paragraph is inside a table cell which is present in a frame else returns false. Set the floating item bounds with the mirror image bounds of the floating item. Index of the floating item Text wrapping bounds to be modified Layout area to shift the floating item. Reset the floating item bounds to original position FLoating item index Text wrapping bounds to be modified Original x position of floating item Determines whether the paragraph mark position need to update to the bottom. The y position. The text wrapping style. The paragraph. The size. The bottom position. Determines whether the floating item is intersect the paragraph mark or not. The start value. The end value. Adjusts the tight and through bounds. The curr text range. The size. The rect. Determines whether [is line slope is left to right] [the specified first point]. The first point. The second point. Pnpolies the specified poly. The poly. The PNT. Check whether paragraph Y position should update by floating item or not. Update Paragraph Y position based on TextWrap Gets the previous sibling of paragraph Update the X and Y positions based on the floating items present in the same Y region. Y position sorted floating item collections Current layouting area size of the widget current pargraph Determine whether this is called from leaf layout context class or not Update the client area Y position with minimum bottom position of the floating items Get the minimum width. Return the document Word version in the format of string. current paragraph. Return the minimum size required between two floating items based on Word version and floating item wrapping type. Left side floating item wrapping style Right side floating item wrapping style current paragraph Check whether floating item wrapping style is square or tight and throw Check whether Y position intersect or not Gets the bottom position for tight and through. The floatting item bottom position. The text wrapping bounds. The paragraph. The y postion. The leaf widget. Height of the leaf widget. Gets the height of the floatting item. The entity. Gets the height of the floatting item. The entity. Gets the exceeded bottom value for tight and through. The height. Height of the break character. The para. Gets the exceeded bottom value for tight and through. The para. Gets the previous paragraph. The paragrph. Gets the content of the previous paragraph is in SDT. Content of the SDT. Gets the previous paragraph is in table. The table. Determine whether the paragraph is in textbox and wrapping added to the collection or not Determine whether the paragraph is in footnote Determine whether the paragraph is in footnote Get Left Margin of the Page Update Top Margin of the paragraph Checks whether the paragraph is a TOC Text Range Check whether the current widget is have page break Determine the whether the paragraph is have Page or Column break. Determine the whether the paragraph is have section break Creates the layout area. The rect. The cell padding. Creates the layouted widget. The location. Updates the width of client area and client active area width. Implemented alternative method to improve the performance Disable IsForceFitLayout prperty once the minimum widgets fitted in current page. Creates the specified widget. The widget. The lc operator. The layout option. Determines whether the specified paragraph is in frame. The paragraph. true if [is in frame] [the specified paragraph]; otherwise, false. Determines the frame intersects with the client area. Gets the Location of frame and draw the frame content. dc. ltWidget. Checks whether current frame already started to layout. Get Base Entity. The entity. Get Base Entity. The entity. Determines whether it's base from section for the specified entity. The entity. Determines whether given entity is in table or not. The entity. Positions the X. The para format. The section. The bounds. Width of the frame. Gets the Y Position of frame. paraformat. section. The bounds. Height of the frame. /// Gets the splitted widget. The splitted widget. Gets the layouted state. The state. Gets the layout info. The layout info. Gets the layout area. The layout area. Gets the drawing context. The drawing context. Gets the bounds padding right. The bounds padding right. Gets the bounds padding bottom. The bounds padding bottom. Gets the widget. The widget. Gets or sets a value indicating whether this instance is vertical not fitted. true if this instance is vertical not fitted; otherwise, false. Gets or sets a value indicating whether to skip splitted Paragraph true if the splitted Paragraph to skip; otherwise, false. Gets or sets a value indicating whether the Area is Updated true if the Area is Updated; otherwise, false. Gets or sets a value indicating whether the tab with stop position beyond right margin exists or not true if the Tab with stop position beyond right margin exists; otherwise, false. Gets or sets a value indicating whether this instance need to wrap true if this instance need wrap Decides whether the widget must fit in current page. Microsoft Word fits atleast a single line in a page. Similarly, we have to fit the single line in a page, even there is no client area available. If first item is table then we need to fit single row for exactly row. We can use this property wherever we need to decide the widget is first item. Gets or sets the client layout area right. The client active layout right. Initializes a new instance of the class. The widget. The lc operator. Layouts the specified widget. The rect. Need to add it to the floating item collection and relayout the paragraph Current child context Check whether current widget is floating item or not. Find the next paragraph's x position Decides whether text range (creaed for preserved para mark height) should be skipped or not. Current widget. Check whether keep with next property is applicable or not Check whether floating entity size exceeds the client height. Get the previous deleted paragraph item Creates the next child context. We have remove the Line layouted widget from the table cell layouted wiget Determines the paragraphs are in same textbody. Updates the position value for absolute tab. Checks whether need to create balloons for comment in the Word document. Create balloon for deleted paragraph text. Checks whether need to create balloons for deletions markup in the Word document. Checks whether need to create balloons for formatting markup in the Word document. Denotes whether need to create new balloon for character format changes or use the balloon of previous item. Create balloon for deleted paragraph text. Appends the content in the track changes balloon for deleted text range track changes markup collection child widget Appends the content in the track changes balloon for deleted image track changes markup collection child widget Create balloon for deleted paragraph text. Appends the content in the track changes balloon for deleted paragraph track changes markup collection child widget Creates balloon for character format. Compare properties hash and remove the same value from PropertiesHash Creates the content for track changes balloon for the paragraph formatting changes. Creates the content for track changes balloon for the List formatting changes. Creates the content for track changes balloon for the table formatting changes. Check whether last row of table have dynamic paragraph. Check whether last item of nested table have dynamic paragraph. Determine whether the page break is need to move last item of para or not. Updates the expression field. The child widget. Checks the null condition and returnltwidget. Finds the intersect point and removlt widget. Get the intersecting item for the dynamic relayout occurred table cell. The layouted widget. The y position. The index. The intersecting widget index. Layout splitted footnote textbody Layout splitted endtnote textbody Check whether pararagph splitted by Page break or not. Check whether previous paragraph have section break or not. Need to skip updating top margin as zero when its header contents exceeds page top margin height Update the text body items positio Getting the footnote height Check whether the specified paragraph is already updated or not Represent the current paragraph LayoutInfo Returns whether the paragraph is updated or not This method is used to skip the padding reset of same paragraph, Which is already updated on first page HeaderFooter layoutting and now comes for second page HeaderFooter layoutting Update paragraph Top and Bottom Margins Marks as not fitted. The child context. This method decide whether to Set the layout state to Not fitted or not. Get pevious sibling Check whether content control is not fittted based on on previous sibling behavior Removes the hyphenated word in last line of the page, if it is hyphenated based on auto hyphenation. Updates the layouted widget bounds. layouted widget. Gets maximum right position of the layouted widget. Gets maximum bottom of the layouted widget. Read a word from the last position of hyphenated line. Checks whether page break is present inside the table If it is present inside the table, it will not be considered during Doc to PDF conversion. bool Gets the paragraph. The widget. Remove Xml Math Paragraph items from paragraph if it exists. Current paragraph. Marks as fitted. The child context. Checks whether item is Horizontal rule or not returns true if item is horizontal rule. otherwise false Returns true if need to create separate balloon for character format changes in break character format. Generate balloon value for character format. Get the balloon value of last formatting Mark Ups. Check whether current line widget having corresponding comment end mark or not. Returns true, if it has a comment end mark. Otherwise flase. Shift the track changes balloons to the bottom of line. Determines whether to layout textbody of footnote. Represents a footnote layouting context. Retruns true, if footnote need to be layout; otherwise false. Marks as Wrap Text. The child context. Marks as splitted. The child context. Upddate index of split string widget to perform text wrap Marks as breaked. The child context. Updates the client area. Updates the spacing information. The bounds. Determines whether the next text body item is paragraph or not. The para. Determines whether the specified table is in frame. The table. true if the specified table is in frame; otherwise, false. Updates the frame bounds. Changes the childs alignment. Nexts the child widget. Spliteds up widget. The split widget. Spliteds up widget. The split widget. Whether the splitted widget is in frame Commits the child context. The child context. Gets the table height by adding the row's height. Layouted current child The child context. Gets the horizontal position of the floating item when it is relative to character Current widget that is going to be layouted Returns the distance that needs to be shifted Determines whether textrange is layout in next line The client area Owner paragraph of child entity TextRange contains text or space Return true, if textrange is layout in next line otherwise false Determines whether range contains text or not by trimming spaces at the end. Child context. Returns true, if range contains text other than only space; otherwise false. Return true if entity wrapping style is tight or throw Return the floating item from its floating item collection. Adds the child LW. The child context. Layout the skipped footnotes' textbody from the layouted lines. Represents a layouted lines. Determines whether the footnotes' text body has started to layout in the same page. Represents a layouted lines. Returns true, if last footnote of layuoted line is not found in same page; otherwise false. update paragraph y position when the frame vertical postion exceeds page height Shifts the paragraph y position when the frame vertical postion exceeds page height Calculates the frame height by adding the paragraphs height in the frame update the textwrapping bounds of floating item Resets the bounds from adjusted bounds based on wrap polygon Floating item Current child layouted widget bounds Returns resetted bounds based on wrap polygon //if the split widget container have the Endnote item set the empty section in split widget container and change the state to the splitted for layout the Endnote textbody at the second page. Add Behind widgets to the collection Checks the type of the widget. The widget. Checks the widget wrapping type and horizontal origin. The widget. Checks the wrapping type and horizontal origin. The text wrapping style. The horizontal origin. Check whether Frame content intersect with previous items,if it intersect then enable Dynamic relayout. Get the Frame Y position. Get the bottom position of the previous item. Return the previous line bottom, by skipping lines which preserved below to the floating item. Checks whether the para is last item of the frame. checs whether the para and table is in same frame. Updates the LW bounds. The child context. Checks whether need to consider the right pad. Owner paragraph GEt the previous text body item index. Check whether current paragraph is frame or not. Determine whether the layouted widget bottom position is need to be updated or not Checks whether widget is renderable item or non renderable item Check whether the element owner is Section or not Add Frame Bounds into the text box bounds collection Update the paragraph bounds into frame bounds. Get the first frame item. Check whether floating item already added to floating item collection or not. Updates the frame bounds. The paragraph. Finds whether the Atleast frame height should be used to frame paragraph. Paragrapg Layouted Widget Last Line Layouted Widget Updates the frame bounds. The table. Updates the horizontal alignment. The x alginment. Updates the vertical alignment. The y alginment. Commits the keep with next. Gets the section of the given widget Remove the layouted widgets from the collection based upon keep with next. Decide whether Is last TOC paragraph layouted or not. Check whether the last Toc paragraph layouted or not. Check whether removed item has last TOC paragraph or not. Commits the with keep with nex for word2013 format. The splitted widget. The section. This method return whether to remove the widget or not. Removes the items from layouted widgets. The splitted widget. Determines the start row index. Gets the owner section. The entity. Determine whether current widget is need to commit Keep with next property. This Method Sets the Keep with Next property for Block content control and Checks if the entire block content control is true, else it returns false. Gets the widget container. The widget container. Gets the current child widget. The current child widget. Initializes a new instance of the class. The container. The lc operator. Layouted current child Updates X position of floating item (Behind or InfrontOf) for the case first inline widget not wraps based on floating item but wrapps if we consider the line height as content height. Decides whether we need to update floating item X position based on entire line wrap position. Decides whether current line intersecting bounds should be calculate or not. Update the intersecting floating item bounds to current line. Creates the next child context. Commits for not fitted. The child context. Moved the layouted line to next page when widowControl property is true. Remove a CommentsMarkups of not fitted line. Represents a current line widget. Check whether the previous item of splitted item to next page or not We have check that Wrapping floating item is fitted in that page. Layouter. Child context. Remove track changes balloons from the given Y position. Removes the hyphenated word in last line of the page, if it is hyphenated based on auto hyphenation. Updates the layouted widget bounds. layouted widget. Read a word from the last position of hyphenated line. check whether line have only non drawing items or not Check whether the line contains only mathematical items or not. The line widget. True if the line contains only mathematical items, otherwise false. To check this paragraph is end of page, when page layout contains more than one column Determine whether the splitted widget need to be reset based on WindowControl Update footnote widgets Determine whether is KeepLineTogether Determine whether the last paragraph is need to be layout in Next page Is need to layput the paragraph in this page returns true to move the paragraph to the next page, else false Determine whether the paragraph contains only bookmarks alone. Determine whether the item is splitted or not fitted item Commits for fitted. The child context. Commits for splitted. The child context. Updates the client area. Changes the childs alignment. Updates X position of track changes balloon. Update a X position of Comment balloon. Decides whether line contains only display type WMath. Gets a next valid widget. Represents a start index. Represents a layouted widget list. Retruns a next valid widget. Shift the layouted widgets in right to left direction Floating items collection Shift the layouted widgets in right to left direction (Old implementation) Floating items collection Updates the widgets x position. Reorders the child widgets of a line for RTL text. Check whether input WTextRange is having only one number non reversing character or not. Represent a LayoutedWidget of a WTextRange. Returns true, if input WTextRange is having only one NumberNonReversingCharacter; Otherwise false. To check whether the specified language reverse the number or not for slash character. Specify the language local id. Return true if the language id reverse the number for slash character. To check whether the specified language reverse the number or not for (‘#’,‘$’,‘%’,‘+’,‘-’) characters. Specify the language local id. Return true if the language id reverse the number for (‘#’,‘$’,‘%’,‘+’,‘-’) characters. Shift the widgets x position based on the list. Shift the RTL and Normal text in right to left direction Index of last RTL text Index of normal text True, if the line conatins normal text Shift the normal text in left to right direction Normal text index Shift the RTL text in left to right paragraph Index of RTL text True, if the line contains RTL text True, if the line contains normal text Shifts the X position of the widgets from start to end index start index end index Gets the last tab width. Paragraph format Tabs count Tab width Splits the line based on inter secting floting entity. The m_backup widget. The inter secting floatting item. The m_resultted widgt. Gets the first index of the inline item. Inters the secting floatting item. The rect. Updates sub width based on the Text wrap Updates the horizontal alignment. The x alginment. Checks the paragraph for TOC paragraph Does the layout after. Check whether need to update page number for TOC If paragraph doesn't have valid items before the page break then skip updating page number Decides whether text is empty or contains only white spaces. Determines whether the toc need not to be updated or not. The paragraph. The SWC. Gets the index of the valid para item. The paragraph. Updates the TOC page number. The para. Updates the TOC Heading stylecpage number. The para. Updates the TOC \c switch page number. The para. Gets or sets a value indicating whether this instance is first Text Body Item of current page. Represents the layout context for layouting text. Initializes a new instance of the class. The STR widget. The lc operator. While the paragraph inside the cell that contains the decimal tab, then it returns true otherwise false Whether determine decimal point is decimal tab point or not While the paragraph inside the cell that contains the decimal tab, we have to change and update the client area as same as that of the MS behavior Update the shifting distance of X and Y according the the horizontal and vertical alignment bounds of the leaf layouted widget that needs shifting paragraph item Layouts the specified widget. The rect. Checks whether the tab stop position needs to fit in the same line Current leaf widget's tab layout info Current tab position Owner paragraph Client area False if the tab stop positions before the current tab stop are greater than 0 and the current tab stop position is greater than the client active area. Else true. Finds whether the layouted widget is a floating item and its horizontal origin and vertical origin are page and margin. Finds the shift distance according to the horizontal or vertical origin Shifts the X or Y position according to the found shift distance paragraph item bounds of the leaf layouted widget that needs shifting Check the Floating item have horizontal origin as character Owner of the Leafwiget Finds the wrapped bounds. Checks whether widget should be fitted in current page due to line spacing values. Owner paragraph. Current widget height. Update the picture width and height based on the picture border lineWidth Determines whether the current floating item already layouted or not. The paragraph. Checks whether need to reset the client area The paragraph. Determines whether the dynamic relayouting occur or not. The paragraph. Determines whether the floating item exist in the floating item collections. i. Creates the layouted widget. The i. Sets the bounds for layouted widget. The text wrapping bounds. The distance from left. The distance from top. The distance from right. The distance from bottom. Layout the GroupShape container Layout a custom child shape. Represent a logical DOM entity. Represent a owner entity layoutedwidget. Layout the child shape Layout the child group shape Calculates the rotation of child shape. Shape's rotation Shape's width Shape's height Shape's left Shape's top Shape's width scale. Shape's height scale. Calculates the sum of rotation angle for the nested child shape. Shape's rotation Layouted Widget List of the group shape's bounds List of the group shape's rotations List of the group shape's horizontal flips List of the group shape's vertical flips Set horizontal and vertical flips to render the child shapes. Shape's rotation child shape Widget Get Horizontal flip count. Group Shape. Flip count. Flip count. Get Vertical flip count. Group Shape. Flip count. Flip count. Checked whether any of the parent group shape contains Horizontal flip. Group Shape. True if the group shape contains flipH. Checked whether any of the parent group shape contains Vertical flip. Group Shape. True if the group shape contains flipV. Creates the from points array. The points. The rectangle. Updates the textbox bounds based on the rotation value. Update the text box rendering/Drawing bounds based on the auto fit properties Text box Shape with rectangle type Text body layouted widtet Text body owner Widget Text direction Update horizontal text bounds based on auto fit properties. Decides height should resized or not Decides width should resized or not text body internal margin layouted bounds Update vertical text bounds based on auto fit properties. Decides height should resized or not Decides width should resized or not text body internal margin layouted bounds Update the text box X and Y positions based on modified width and height Width Adjusted by Auto fit Height Adjusted by Auto fit Text body layouted widget Update text box content layouting bounds based on the auto fit properties. Text box Shape with rectangle type Text body Layouting bounds Text direction Check any of paragraph in text body has more than one line. Text box text body items return true when paragraph have more than one line otherwise false. Update the Text box items bounds based on paragraph alignment Text body text box drawing width Width which used for layouting Shift the X position based on paragraph alignment Paragraph layouted widget Difference between layouting width and current text box drawing width Get current line maximum width Paragraph layouted widget Get Current TextRange of the leafWidget Update Tab Width. The rect. The size. Update the client area width if exceeds tab position exceeds the client area width Clients the area right. The paragraph. The rect right. Get Left Margin of the Page Get Right Margin of the Page Update xPosition of the LeafWidget which have Previous Tab justification is Decimal Determines whether leaf widget is need to be splitted size rect true if leaf widget need to be splitted, set to true. Checks whether the paragraph item should fit in the same page based on atlease and exactly line spacing. owner paragraph Size of the paragraph item Determine whether the section break paragraph contains only floating items. The paragraph to check. The leaf widget to check. True if the paragraph contains only floating items. False otherwise. Determine whether need to fit item of the last paragraph Determine whether need to fit the last paragraph of the page in same page. trueif the last paragraph of the page is not fitted in same page;Otherwisefalse To identify current picture is OleObject. trueif the current picture is OleObject;Otherwisefalse Determines whether text contains line break characters. true if text contains line break characters; otherwise, false. Determines whether the specified leaf widget is to be clipped or not. The size. true if the specified leaf widget is to be clipped; otherwise, false. Determine whether the paragraph Item is need to Fit Get's Left Indent of the paragraph Determines whether Picture Fit size true if Picture Fit, set to true. Handled a behavior for floating item fitted logic, which is depends on a next sibling Vertical Origin Horizontal Origin ParagraphItem Return True, if the next siblings width is higher than client area;Else false. Gets the line spacing value. The line spacing rule. Determines whether the picture is fit picture in section. Width of the column. Height of the pic. Height of the page. The top margin. The size. Width of the client active area. Determines whether the picture is fit picture in Textbox. The top margin. The size. Height of the pic. Determines whether the picture is fit picture in table. Width of the cell. The cell top margin. The top margin. Height of the pic. The size. Determines whether the picture is fit picture in headerfooter. Height of the pic. Height of the page. The top margin. The size. Width of the column. Width of the client active area. Determines whether [is floating item fit] [the specified ent]. The ent. The size. The owner paragraph. The para item. Height of the page. The top margin. if set to true [is picture fit]. Determines whether the shape placed on the bottom of the paragraph. Owner paragraph of the floating item Size of the floating item Paragraph's layoutinfo Get the Rotation angle of floating item. Get the empty TextRange height Get Base Entity. The entity. Determines whether TextRange Fit in ClientActiveArea size true if TextRange Fit in ClientActiveArea, set to true. Determine whether the text range is need to fit true if previous tab position is greater than the ClientActiveArea, set to true. Try to fits the word by using extra width obtained for Word 2013 Justification alignment. Fits the next word and change the state accordingly. Fits the widget even the size exceeds. Do Word 2013 Justification inter word spacing sclaing and try to fit the next word. Gets the next widget text. Check whether text contains white space to find the single Word width. Find the next complete word width by checking the split widgets and its next siblings. It contains the values leading space of text. Adds the leading spaces into LineSpaceWidths collection and measure its width. Updates the space widths of current widget into LineSpaceWidths collection. Layout for Word The rect size Determines whether to skip splitting the text by character based on the script type. Specifies the current text range Specifies the owner of the current text range True if the text should not be split by character, false otherwise. We have calculate the previous space width in that TextRange. Text having space. Spacing width Get table border spacing value Word by word layouting for Unicode text Check whether the text need to splitted by word Get Text Whether the LeafWidget is WTextRange or SplitStringWidget Check whether the text need to splitted by word Get width to fit text in current line Get Next TextRanges width Get Next TextRanges width Determine Whether the Nextsibling Textrange size is need to measure Determine Whether the Nextsibling Textrange size is need to measure Determine whether the text contain CJK begin characters Get the valid inline next sibling for a Vertical Orgin Below Line behavior Represent the current paragraph item Return a widget of valid next sibling Get Next text range Determines whether leaf widget is in cell true if leaf widget is in cell, set to true. Determines whether next sibling of leaf widget is text range. true if next sibling of leaf widget is text range, set to true. Split by Word SplitLeafWidget Size Determines whether text is need to be splitted size rect true if text need to be splitted, set to true. Determines whether text is need to be splitted true if text need to be splitted, set to true. Get OwnerParagraph of the LeafWidget Checks the wrapping style for wrapping. The text wrapping style. Determines whether the leafWidget based on the wrapping element. The owner para. The layouter. Determines whether the paragraph mark move to right side of the intersecting of floating item. The owner para. The text wrapping bounds. Determines whether the leafWidget based on the wrapping element for square, tight and through. The layouter. Index of the wrap owner. Index of the wrap item. The text wrapping style. The text wrapping bounds. check wherther the paragraph line spacing is exceed the text height. TextRange Height. TextWrapping Y position. Client area. True for Wrap the text; false for skip the wrapping. Determines whether the leafWidget based on the wrapping element for top and bottom wrapping type. The layouter. Index of the wrap owner. Index of the wrap item. The text wrapping style. The text wrapping bounds. Determines whether the floating entity is layout in cell based on the top and bottom wrapping type and Word compatibility. Determines whether the floating entity is layout in cell except the behind and infront wrapping style. Determines whether the floating item owner paragraph is not fitted in the same page. The text wrapping style. The floating entity. The layouter. The floating widget. The paragraph layout info. returns true if floating item owner paragraph is not fitted in the same page. otherwise false Is need to intermediate the leaf widget based on the floating item. Width of the remaining client. The text wrapping style. The layouter. Type of the text wrapping. The rect. The size. The paragraph layout information. Check whether there is a floating item at the left Current layout area Minimum width to fit text Text wrapping bounds of the floating item Check whether line break is intersect on floating item. Current leafwidget Wrapping style of floating item Bounds of floating item Bounds of current leafwidget Size of line break Owner paragraph of line break Remove the distance from text value from the floating item text wrapping bounds. Adjust Client Area for Text Wrapping leaf widget Size The rect Checks whether current floating item layout on exiting floating item's top or not. Checks whether current floating item layout on exiting floating item's top based on line or not. Checks whether current floating item layout on exiting floating item's top based on bottom edge extent or not. Checks whether the break element need to wrap or not. To get the minimum width required to fit a widget to side of table. Get the Maximum width of a Right side cell border. Need To Wrap the InFrontOfText or Behind wrapping style FloatingItems Leaf widget Return True, if we need to wrap the floating item; else false. Check if the current text range is the first text range in the paragraph. Skips the empty textrange wrapping. Returns true, if the empty text range is valid for layouting. Otherwise returns false. Updates the para first line horizontal positions. The paragraph information. The widget. The x. The width. Denotes bookmark have size. Represents size of bookmark. Returns true, if bookmark start or bookmark end have width or height. Otherwise returns false. To identify the text fit below or above the textbox/shape Floating item wrapping bounds Current leafwidget Y position Floating entity truewhen text fit below, otherwise false Gets the top margin value for floating table. The paragraph. The floating entity. The y position. Adjusts the client area based on exceeded tab. The leaf widget. The size. The rect. The left indent. The paragraph. Get Minium width of the word Check whether the leafwidget owner is textbox or not Getting PageField size Does the layout after. Update the EQ field code size when it's widht exceeds the client area width. Graphic object for EQ field. Character format of EQ field. Retruns updated size of the EQ field. Fits the widget. The size. The widget. Gets the floatting item position. The indent x. The indent y. The size. Get the cell layout info Owner paragraph. Return the owner cell layout info. Gets the considered line spacing value while calculating the paragraph Y position. Represents the owner paragraph of the floating item. Retruns a spacing value, considered line spacing value while calculating the paragraph Y position. Get the bounding box position of the rotated image. Determines whether [is paragraph containing line break] [the specified paragraph]. The paragraph. Checks whether layout in cell property is true and object should be fit within the container height. If set to , then ; otherwise, . If set to , then ; otherwise, . Checks whether layout in cell property is true and object should be fit within the container height. The para item. if set to true [is word2013]. Get vertical position of the picture Get Horizontal position of the picture Update Width of the LeafWidget Determines whether the cell bounds need to add the left area bounds. The text wrapping style. Splits up widget. The split leaf widget. Gets the leaf widget. The leaf widget. Represents the layout context for tables. The minimum width. Initializes a new instance of the class. The split widget. The lc operator. Initializes a new instance of the class. The table. The lc operator. Get the base entity Determine whether the entity is in section or headerfooter The entity to check. The parent base entity, which is either a section or headerfooter. Layouts the specified widget. The rect. Clears the layouted vertical merge start widget from m_verticallyMergeStartLW collection. Determines whether the layouted floating table in text body items. Determines whether the layouted floating table in Block content control. Indicates the layouted widget of block content control. Determines whether the table is needed to relayout. Table original client area before wrapping. Determines Whether the row need to be move to the floating item bottom position. Determines whether the table in TextBox or Shape Represents table entity Determines whether the layouted floating table in tablacell. Check whether current floating item of frame contains a table or not. Represent a floating item object of frame. Returns true, if it contains a table; Otherwise false. Gets the layouted floatting table. If footnote preserved in the the adjacent cell this layouting will perform Checks After zero cell has Footnote and returns the bool Value Removes the Footnote already layouted for the current table Checks whether the floating table need to move to next page or not. Updates the table LW bounds. gets the owner tbale fot the flaoting entity. The entity. Determines whether to skip splitting table or not. True if splitting table need to skip. Split the row when it exceeds the page margin bottom for Word 2013 Update KeepWithNext property set for the Table Update absolute table position Adjust Client Area for Text Wrapping Size The rect Measures the height of the table when its height based on the content. Height of the table Adjusts the text wrapping bounds based on distance from text values when floating table intersects with another floating item. Adjusts the text wrapping bounds based on distance from text values. Checks whether the table intersects with floating item. Determine whether the table needs to move to the bottom of the floating item or not. Checks whether the table intersects with floating item of top and bottom wrapping style. Checks whether to adjusts the tight and through bounds. Check table move to next page or not Get the First row width Checks whether the current row is not fitted based on floating items. Get the First row maximum cell width Creates the row layouted widget. Update the cell's border, padding, margins. The row. Layouts the row. The row widget. Layouts the row. The row widget. Gets the exactly type row of current table. The row need to layout in that page If true, try to not fit in that page, else fit the row in that page. To ensure the first pargraph inside the cell is having page break before property Checks the footnote in row is splitted. The child context. Creates the row layout area. The row. The bottom pad. Gets the cells maximum top and bottom padding. The row. The maximum top pading. The maximum bottom padding. The maximum top margin. The maximum bottom margin. Updates the cells maximum top and bottom padding. The row. The maximum top pading. The maximum bottom pading. Updates the cells bottom padding and margin. The row. The maximum bottom pading. The maximum bottom margin. Commits the row. Checks whether there is a nested table in a row and that table has wrapping bounds bottom. True if the nested table has wrapping bounds bottom; else return false Check whether current row vertical merged cell layouted or not Updates the vertically merged cell. The row lw. if set to true [is next row not fitted]. To check the row height type is exactly or not Entity has a exactly row height type If the row has exactly height type, return True; else return false Update the FootNote Widgets bounds and its order based on footnote ID. Count of footnote widgets added by vertical merge cells. Gets the foot note Id of current foot note. Text body Checks whether current text body is WFootNote text body or not. Updates the splitted vertical merge cell. The lc. The merge start lw. The row information. The child lw. The row lw. Index of the current. if set to true [is next row not fitted]. Gets the vertical merge start lw. The vertical merge end lw. Updates the vertical text cell lw. Updates the splitted cells. Retreive first pagragraph present in the first cell of the current row paragraph widget of first cell Retreive pagragraphs present in the cells. paragraph widget of cells Determines whether the given widget is Table widget or not. The widget. Determine whether the splitted cells are not empty Determine Whether the row need to be splitted across pages. Checks whether all the layouted rows having Keep with Next property or not. Checks whether the current cell horizontally merged with next cells till last column of the row. Calculate the right pad value Right pad value Updates the row layouted widget bounds. Check whether we need to layout the header row or not. Current table. Row index Return False; If we need to layout the header row; Else true. Check whether header row should layout or not. Check whether current page first item is inline picture or not. Is splitted widget container has picture or not. Decides whether current row any of cell has picture as first item or not. If multiple cell has pictures then consider the large picture. Get the cell's first paragraph first item if it picture. Get the picture from paragraph. Layouts the header rows header row Update Header Row Widget Determines whether [is in frame] [the specified table]. The table. Updates the height of the cell. The column. Updates the Y position of cell widget child items based on cell vertical alignment Current layouted cell widget Cell widget layout info Updates the Y position of cell widget child items based on cell vertical alignment The cell lw. Calculate the displacement value based on cell vertical alignment Current cell textbody widget Current cell height Set to true when the cell child items bottom greter than cell bottom Remaining space value displacement value To identify whether cell is having shape related items or not. Current cell widget Finds the maximum bottom of floatting item. The child. Creates the table client area. The rect. Does the layout cell. The child context. The cell area. Check whether the owner row of current cell is same as owner row of floating item Checks the foot note in text body. The text body. Checks the foot note in paragraph. The paragraph. Creates the next cell context. Commits the cell context. The child context. Marks as splitted. The child context. Marks as breaked. The child context. Marks as not fitted. The child context. Commits the keep with next. Determine whether current row widget is need to commit with keeepWithNext property Retrun true if a layouted rows first table paragraph contains keeplines together property true, otherwise returns false. Retrun true if previous row has vertical merge continue cell, otherwise returns false. Marks as fitted. The child context. Updates the client area. Checks whether table is clipped or not, based on their owner. Get the footnote textbody height Gets the width of the row. Current table cell owner row. Gets the cell client area. if set to true [hor merge start]. Gets the maximum left indent of the row. Gets the width of the cell. Row index Column index Gets the Height of the cell. Row index Column index Gets the width of the merged cell. Updates the LW bounds. Corrects the table client area. The rect. Checks whether the need to update the inline RTL table X position. The table layout info. Left indent of the table. The rect. Gets the Horizontal alignment from table hierarchy Get Minimum right padding of the table. Get Right padding of the cell Gets or sets a value indicating whether this instance is first Text Body Item of current page. Gets the table layout info. The table layout info. Gets the table widget. The table widget. Gets the index of the curr row. The index of the curr row. Gets the left pad for table. The left pad. Represents the layout context for layouting Math equations. Initializes a new instance of the class. Represent the instance as Represents the Represents the isForceFitLayout Layouts the WMath widget. Represent the bounds of client active area Return the of instance Create layoutarea based on margin values. Do alignement for Math Layouted. Layouts the OfficeMathFunctions collection Represent the clientArea for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Represent whether current layouting is nested layouting or not. Find the text difference based on the base character. Represent the Equation Text. Represent the base character. Represent the characterFormat. Represent the equation bounds. Represent the difference position. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathLimit Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathBox Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathFraction Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathNArray Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathAcccent Get the equation text. Represent the equation. Return the equation text. Get the layouted widget for the character Represent the characterFormat Represent the character Represent the clientActiveArea Represent it is N-array character Return the layoutedStringWidget of the given string. Get the Updated bound for N-Array equation. Represent the N-Array layouted widget. Represent the N-Array. Represent the N-array bounds. Get the updated bounds. Represent the Subsuperscript Represent the Leftscript widget Represent the Rightscript widget Represent the layouted script. return the updated bounds of the script childwidget. Gets the control character property from a IOfficeMathFunction. Represent the IOfficeMathFunction to retrive. Retruns the ControlProperties of IOfficeMathFunction Update a current bounds with modified bounds Represent a current bounds Represent a modified bounds Get the Next characters from next math elements. Replace the normal text with Mathematical alphanumeric symbol unicode based on Math style type. Determines whether spacing should be skipped after an operator. The character preceding the operator. The operator character. The character following the operator. True if spacing should be skipped after the operator; otherwise, false. Determines if it is necessary to skip the space character based on the next character's value. Reference to the next character. Index of the character whose next character is to be retrieved. The text containing the character. Current index in the text. The text range associated with the character. True if it is necessary to skip the space character, false otherwise. Retrieves the next character relative to the specified character index in the given text. Reference to the next character. Index of the character whose next character is to be retrieved. The text containing the character. Current index in the text. The text range associated with the character. Retrieves the previous character relative to the specified character index in the given text. Reference to the previous character. Index of the character whose previous character is to be retrieved. The text containing the character. Current index in the text. The text range associated with the character. Adjusts the base value to get the character with style properly. The character value. The base value to adjust. The adjusted base value. Find the given character value is operator or not. Find the Given character is Greek character or not. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathRunElement Checks whether current math function layouting is nested or not. Return true, if its nested math function layouting. Checks whether current math function is nested function of specified function type. Represent the function type, which is nested parent. Returns true, if current math function have nested parent. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathRadical Shifts the X and Y position of LayoutedLineWidget array. Represent the LayoutedLineWidget array to shift. Represent the X position value to shift. Represent the Y position value to shift. Generate a radical lines. Represent the radical switch. Represent the bounds of the radical equation. Hold the radical symbol width. Generate hook portion of radical symbol. Inner elmenet bounds of the radical equation. Represent the points of radical downward line. Thickness of the line to generate Height of the hook to generate. Represent the radical symbol font. Generates top horizontal line of radical symbol. Inner elmenet bounds of the radical equation. Represent the points of radical upward line. Thickness of the line to generate Generates downward line of radical symbol. Inner elmenet bounds of the radical equation. Represent the points of radical upward line. Thickness of the line to generate Height of the hook to generate. Represent the radical symbol font. Generates upward line of radical symbol. Inner elmenet bounds of the radical equation. Represent the radical symbol font. Thickness of the line to generate Get the another length from the known angles. Opposite side of angle1. One of the angle, whose opposite side is known value. Another angle, whose opposite side need to calculate Returns calculated width from height and angles. Converts degrees into radian. Represents an angle in degree Returns radian value of inputed degree value. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of IOfficeMathPhantom Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathFraction Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Return the layouted widget of OfficeMathDelimiter Check whether current character is stretchable or not. Specify the character to check. Returns true if input character is stretchable. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Represent whether current layouting is nested layouting or not. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Represent whether current layouting is nested layouting or not. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathBaseCollection to layout Represent whether current layouting is nested layouting or not. Layouts the Shift the Cell widget vertically. Shift the cell widget Horizontally. Layout the bar line. Layout the border box lines with respect to Math equation. Layouts the Represent the bounds for layouting Represent the layouted widget of owner OfficeMath Represent the IOfficeMathEquationArray to layout Represent whether current layouting is nested layouting or not. Represent whether equation array has fraction as parent or not. Return the layouted widget of IOfficeMathEquationArray Gets the exact row spacing value for the specified spacing rule with input row spacing value. Represent the input spacing value. Specify the control character font. Specify the spacing rule to find the row spacing. Reduces the font size of an OfficeMath. Represent the OfficeMath entity to reduce the font size. Represent the font size ratio to multiply. Align the LayoutedMathWidget vertically. Represent the layoutedMathWidget to align vertically. Align the OfficeMathWidget vertically. Represent the officeMathWidget to align vertically. Gets the maximum bottom value of layouted OfficeMathWidget. Represent the officeMathWidget. Gets the maximum bottom value of layouted MathWidget. Represent the MathWidget. Gets the vertical center point of a layouted office math widget. Represent the layouted office math widget to find. Returns the vertical center point of an LayoutedOMathWidget. Layouts the collection Represent the bounds for layouting Represent the layouted widget of owner WMath Represent the IOfficeMaths to layout Layouts the entity. Represent the bounds for layouting Represent the IOfficeMath to layout Represent whether current layouting is nested layouting or not. Create layouted widget for the Represent the location of widget Represent the IOfficeMath instance Return the layouted widget of OfficeMath Create layouted widget for the Represent the location of widget Return the of instance Transform the input point to given angle with specified length. Represent the input point to transform. Represent the length. Represent the angle to transform. Gets the WMath widget of . Read-only The instance of the current MathLayoutContext. Gets the current Word Document instance. Gets the original size of a WMath container. Gets the call stack of math layouting context. Summary description for LeafEmtyWidget. Initializes a new instance of the class. The size. Measures the specified graphics. The graphics. Draw range to graphics. Initializing LayoutInfo value to null Initializing LayoutInfo value to null Gets layout info. Summary description for SplitTableWidget. Initializes a new instance of the class. The table widget. The row number. Initializes a new instance of the class. The table widget. The row number. The row number. Initializes a new instance of the class. The table widget. The row number. The column number. Draw range to graphics. Initializing LayoutInfo value to null Gets the table widget. The table widget. Gets the start row number. The start row number. Gets the start column number. The start column number. Gets the splitted cells. The splitted cells. Gets layout info. Summary description for SplitWidgetContainer. Initializes a new instance of the class. The container. Initializes a new instance of the class. The container. The current child. Index of the first. Initializing LayoutInfo value to null Initializing LayoutInfo value to null Gets the real widget container. The real widget container. Gets layout info. Gets count of child widgets. Gets child widget by index. Get child widgets Initializes a new instance of the class. The STR widget. The text. Gets the text. Initializing LayoutInfo value to null Splits the size of the by. The graphics. The offset. The clientWidth. Measures the specified graphics. The graphics. Splits the by offset. The graphics. The offset. The STR widget. The splitted text. Implemented alternative method to improve the performance Gets or sets a value indicating whether the trail spaces wrapped or not. true if this instance is trail spaces wrapped; otherwise, false. Gets and sets the Splitted Text Gets the real string widget. The real string widget. Gets layout info. Utility class for working with strings. Whitespace symbol. Whitespace symbol. Hyphen symbol. Default RegEx checks object's options. Pattern for WhiteSpace. Array of spaces. Whitespace regex. Text data. Current position. Initializes a new instance of the class. The text. Returns number of symbols occurred in the text. Text data. Symbol to be searched. Number of symbols occurred in the text. Returns number of symbols occurred in the text. Text data. Array of symbols to be searched. Number of symbols occurred in the text. Reads line of the text. Text line. Reads line of the text. Text line. reads a word from the text. A word from the data. Peeks a word from the text. A word from the data. Reads char form the data. Char symbol. Reads count of the symbols. Number of symbols. String text. Reads data till the symbol. Specified symbol. If true - to read the symbol. The data read. Peeks char form the data. Char symbol. Closes a reader. Reads text to the end. Reads text to the end. Indicates whether user specified token is whitespace symbols or not. Token to check. True if token is whitespace; False otherwise. Indicates whether user specified token is whitespace symbols or not. Token to check. True if token is whitespace; False otherwise. Indicates whether user specified token is tab symbols or not. Token to check. True if token is whitespace; False otherwise. Calculates number of the whitespace symbols at the start or at the end of the line. String line. If true - check start of the line, end of the line otherwise. Number of the whitespace symbols at the start or at the end of the line. To check the text is Chinese unicode character Checks whether array contains a symbol. Array of symbols. Char symbol. True - if comtains, False otherwise. Gets value indicating whether there is and of the data. Gets text length. Gets current position. Class for splitting text. Initializes a new instance of the class. Splits the specified text. The text. The graphics. The font. The format. The size. Does the split. Copies to result. The result. The line result. The lines. The num inserted. Finalizes final result. Final result. Lines array. Calculates height of the line. Height of the line. Splits line. Text line. Line indent. Gets dictionary for the corresponding language code from the hyphenator class. Splits a Word based on auto hyphenation of particular language. Maximaum available width to fit the text. Possible hyphenated Words in the particular language Adds line to line result. Line resut. Array of the lines. Text line. Line width. Line break type. Trims whitespaces at the line. Line info. Indicates whether the line is the first in the text. Trimed line info. Calculates width of the line. String line. Width of the line. Returns line indent for the line. If true - the line is the first in the text. Line indent for the line. Returns wrap type. Returns wrap type. Represents the result. Layouted lines. The text wasn't lay outed. Actual layouted text bounds. Height of the line. Gets value that indicates whether any text was layouted. Gets number of the lines layouted. Contains information about the line. Line text. Width of the text. Breaking type of the line. The position of first symbol The position of last symbol Disabled default constructor. Initializes a new instance of the class. The first pos. The last pos. Checks the specified length. The length. Extends the specified STR split info. The STR split info. Gets the split first part. The position. Gets the split second part. The position. Gets the substring. The text. Gets the first position. The first position. Gets the last position. The last position. Gets the length. The length. Represents the methods and properties that can be working with hyphenation dictionaries. Initializing the hyphenator for event handling. Initializing the hyphenator to load the dictionary file. Loads the dictionary file. Returns maximum value in the list. Hyphenate the text based on the patterns Gets the postion of the each pattern Creates the hyphenated mask levels Hypenates the masked string. Gets the alternate dictionary for the missed language code in the dictionary. Occurs during Word to PDF/Image conversion to adds the alternate dictionary when a specified dictionary doesn�t exist in the collection. This event is supported for Word to PDF/Image conversion alone. Gets or sets patterns for the language dictionary Gets or sets hyphenation object using dictionary. Represents the method that handles Adding of dictionary event. Occurs during Word to PDF/Image conversion to add dictionary when a specified language dictionary doesn�t exist in the collection. Represents the language code. Represents the dictionary stream. Initializes a new instance of class for the specified document with original (missing) language code, and alternate language code. Name of the original (missing) language code. Name of the alternate language code. Gets the original language code. Read Only. The string that specifies the original language code. Helper class, used for getting font ascent/descent Initializes a new instance of the class. Gets the ascent. The ascent. Gets the descent. The descent. Implements a Rectangle like behavior. Gets or sets the left. The left. Gets or sets the top. The top. Gets or sets the right. The right. Gets or sets the bottom. The bottom. Known to us measure units. Specifies 1/75 inch as the unit of measure. Specifies the document unit (1/300 inch) as the unit of measure. Specifies the inch as the unit of measure. Specifies the millimeter as the unit of measure. Specifies the centimeter as the unit of measure. Specifies a device pixel as the unit of measure. Specifies a printers point (1/72 inch) as the unit of measure. Specifies the English Metric Units as the unit of measure Class allow to convert differ metrics units. Convert is based on Graphics object DPI settings that is why for differ graphics settings must be created new instance. For example: printers often has 300 and greater dpi resolution, for compare default display screen dpi is 96. Standart picture DPI. Matrix for conversations between different numeric systems Prevent class creation Create Units convert class based on specified Graphics units Graphics for measuring Converts value, stored in "from" units, to value in "to" units Value to convert Indicates units to convert from Indicates units to convert to Value stored in "to" units Converts value, stored in "from" units, to pixels Value to convert Indicates units to convert from Value stored in pixels Converts value, stored in "from" units, to pixels Value to convert Indicates units to convert from Value stored in pixels Convert rectangle location and size to Pixels from specified measure units source rectangle source rectangle measure units Rectangle with Pixels Convert point from specified measure units to pixels source point for convert measure units point in pixels coordinates Convert size from specified measure units to pixels source size measure units size in pixels Converts value, stored in pixels, to value in "to" units Value to convert Indicates units to convert to Value stored in "to" units Converts value, stored in pixels, to value in "to" units Value to convert Indicates units to convert to Value stored in "to" units Convert rectangle in Pixels into rectangle with specified measure units source rectangle in pixels units convert to units output Rectangle in specified units Convert rectangle from pixels to specified units point in pixels units convert to units output Point in specified units Convert Size in pixels to size in specified measure units source size convert to units output size in specified measure units Convert Size in pixels to size in specified measure units source size convert to units output size in specified measure units Converts to pixels. The value. From. The dpi. Converts to pixels. The value. From. The dpi. Converts from pixels. The value. To. The dpi. Converts from pixels. The value. To. The dpi. Convert Size in pixels to size in specified measure units source size convert to units The dpi. output size in specified measure units Gets the proporsion. The dpi. Close this instance. Update proportions matrix according to Graphics settings reference to graphics Get Empty graphics created on Bitmap Gets an instance of units converter. Represents state information of LayoutContext object Unknown state, set by itialization of LayoutContext Cann't returned to parent context Current context contains at last one child. Layouting process on current level not finished. Cann't returned to parent context Current context contains at last one child. Last widget ( or child context ) was splitted. Wrap string based on TextWrapBounds Current context contains at last one child. Layouting process finished. Current context contains at last one child. Layouting process breaked. Layoutted content need to relayout. Layouting process. DynamicRelayout. Left tab. Centered tab. Right tab. Decimal tab. Bar. No leader. Dotted leader. Hyphenated leader. Single line leader. Heavy line leader. Break type of the line. Unknown type line. The line has new line symbol. layout break. The line is the first in the paragraph. The line is the last in the paragraph. Summary description for StreamReadError. Default exception message. Default constructor. Summary description for StreamReadError. Default exception message. Default constructor. Summary description for StreamReadError. Default exception message. Default constructor. Initializes a new instance of the class. The inner exc. Throws Exception when document appears to be corrupted and impossible. Throws Exception when document appears to be corrupted and impossible. Throws Exception when document appears to be corrupted and impossible. Converts the WordDocument Section properties into ODF Section properties Updates the text, that cannot be represented in Xml as defined by XML 1.0 specification. Checks for the valid xml character. Update the shape id. Adds the image relation. The image collection. The image record. Get the next relationship ID returns the next relationship ID Reset the relationship id counter Get the picture owner. Get the base entity Loads the header footer contents Gets the HeaderFooter content Gets the list level text alignment Converts the WPageSetup to PageLayout properties The Page setup The Page layout The Master page Implemented alternative method to improve the performance Gets/Sets the value to denote the writer is writing header footer contents Summary description for AnnotationReferenceDescriptor. Index into GrpXstAtnOwners Unused Unused when not -1, this tag identifies the annotation bookmark that locates the range of CPs in the main document which this annotation references. Summary description for BinaryTable. Base class for all records in Word document. Number of bits in byte. Number of bits in short. Number of bits in int. Initializes a new instance of the class. Initializes a new instance of the class. The data. Initializes a new instance of the class. The arr data. The i offset. Initializes a new instance of the class. The arr data. The i offset. The i count. Initializes a new instance of the class. The stream. The i count. Returns value of the single bit from byte. Byte to get bit value from. Bit index. Value of the single bit from byte. Returns value of the single bit from byte. Int16 to get bit value from. Bit index. Value of the single bit from byte. Returns value of the single bit from byte. Byte to get bit value from. Bit index. Value of the single bit from byte. Gets the bits by mask. The value. The bit mask. The i start bit. Gets the bits by mask. The value. The bit mask. The i start bit. Sets the bit. The i value. The bit pos. if set to true [value]. Sets value with all bits that correspond to the specified mask to zero to the same values as in value. Variable that bits of which will be set. Bit mask. Value from which bit values will be taken. Value after set operation. Sets the bits by mask. The destination. The bit mask. The i start bit. The value. Sets value with all bits that correspond to the specified mask to zero to the same values as in value. Variable that bits of which will be set. Bit mask. Value from which bit values will be taken. Value after set operation. Gets the bit. The UI options. The bit pos. Sets one bit in specified Int32. Int32 to set bit. Bit position in the byte Value of bit If bitPos is less than zero or more than 7 Value after Reads UInt16 value from the stream. Stream to read value from. Read value. Reads UInt32 value from the stream. Stream to read value from. Read value. Reads UInt16 value from the stream. Stream to read value from. Read value. Reads UInt32 value from the stream. Stream to read value from. Read value. Gets UInt16 value from the array. Array of bytes to get value from. Offset of the UInt16 value. UInt16 value read from array. Gets UInt16 value from the array and moves position. Array of bytes to get value from. Offset of the UInt16 value. UInt16 value read from array. Reads the string. The stream. Writes the string. The stream. The STR. Gets string from array of bytes. Array with string data. Offset to the string data. String that was extracted from the array. Reads the string. The arr data. The i offset. The us count. Gets the zero terminated string. The arr data. The i offset. The i end pos. Toes the zero terminated array. The sting. Writes the U int16. The arr data. The us value. The i offset. Writes the U int32. The arr data. The uint value. The i offset. Copy array of bytes to target array and changes iOffset parameter. Reads the bytes. The stream. The i. Parses record. Data to parse. Parses record. Data to parse. Offset in the data array to the records data. Parses the specified arr data. The arr data. The i offset. The i count. Parses the specified stream. The stream. The i count. Saves the specified arr data. The arr data. The i offset. Saves the specified stream. The stream. Closes this instance. Gets the length. The length. Gets the underlying structure. The underlying structure. Array of file positions (n+1). Array of talbe entries (n). Default constructor. Closes this instance. Parses the specified data. The data. The offset. Length. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Returns array of character positions. Read-only. Returns array of binary table entries. Read-only. Returns number of bytes needed to store record in a stream or in an array. Read-only. Summary description for BookmarkFirstDescriptor. Default constructor. Saves the specified stream. The stream. The fib. The end character. Determines whether specified bookmark covers a group of table cells. Index of the bookmark. true if [is column group] returns true; otherwise, false. Sets specified bookmark covers a group of table cells. Index of the bookmark. Gets the start index of the cell which is covered by the bookmark. Index of the bookmark. Sets the start index of the cell bookmark. Index of the bookmark. The position. Gets the end index of the cell which is covered by the bookmark. Index of the bookmark. Sets the end index of the cell bookmark. Index of the bookmark. The position. Closes this instance. Writes the BKF. The stream. The fib. The end character. Writes the BKL. The stream. The fib. The end character. Summary description for Bookmark. Initializes a new instance of the class. The name. The start pos. The end pos. if set to true [is cell group]. Start index of the cell. End index of the cell. Clones current BookmarkInfo object. Determines whether specified bookmark covers a group of table cells . Gets the start index of the cell which is covered by the bookmark. Gets the end index of the cell which is covered by the bookmark. Bookmark index in the collection of bookmarks. Summary description for BookmarkNameRecord. Default constructor. Initializes a new instance of the class. Closes this instance. Gets the length of the bookmark names. The length of the bookmark names. Summary description for BRC. width of a single line in 1/8 pt, max of 32 pt. border type code: color code :5 1F00 width of space to maintain between border and text within border. Must be 0 when BRC is a substructure of TC. Stored in points. :1 2000 when 1, border is drawn with shadow. Must be 0 when BRC is a substructure of the TC Parse byte array to brc structure Parse byte array to brc structure Compares the border properties The BorderCode instance to compare True if properties are same, else false Gets the border code text for Word comparison Gets the ignorable properties Width of a Line Border type code Width of space to maintain between border and text within border when true, border is drawn with shadow Summary description for BreakDescriptor. except in textbox BKD, index to PGD in plfpgd that describes the page this break is on. number of cp's considered for this break; note that the CP's described by cpDepend in this break reside in the next BKD Option flags. Default constructor Constructor with table stream parametr table stream Fill class fields Write break descriptor structure to stream Index to PGD in plfpgd. Number of cp's considered for this break. Options Get/set table break option. Get/set column brake option. Get/set Marked option. Get/set fUnk option in textbox BKD, when == 1 indicates cpLim of this textbox is not valid. Get/set text overflows the end of this textbox option Bit index for IsTableBreak flag. Bit index for IsColumnBreak flag. Bit index for IsMarked flag. Bit index for IsLimitValid flag. Size of the record in bytes. Underlying structure. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. MemoryConverter to convert array of bytes into structure. Creates new record from stream. Stream with record's data. Number of bytes to parse. MemoryConverter to convert array of bytes into structure. Except in textbox BKD, index to PGD in plfpgd that describes the page this break is on (ipgd). in textbox BKD, Number of cp's considered for this break; note that the CP's described by cpDepend in this break reside in the next BKD. Option flags. Read-only. ??? Indicates whether this is table break. Indicates whether this is a table break. Used temporarily while word is running. In textbox BKD, when == True indicates cpLim of this textbox is not valid. In textbox BKD, when == True indicates that text overflows the end of this textbox. Returns underlying structure. Read-only. Returns number of bytes needed to store record in a stream or in an array. Read-only. Summary description for BinaryTable. Array of file positions (n+1). Array of talbe entries (n). Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. MemoryConverter to convert array of bytes into structure. Creates new record from stream. Stream with record's data. Number of bytes to parse. MemoryConverter to convert array of bytes into structure. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Parses record. Stream with record's data. Number of bytes to parse. Returns array of character positions. Read-only. Returns array of binary table entries. Read-only. Summary description for CharacterProperty. Initializing constructor Determines whether the specified option has options. The option. if the specified option has options, set to true. Sets the name of the font. Name of the font. The option. Adds the SPRM. The option. if set to true [value]. Adds the SPRM. The option. The value. Adds the SPRM. The option. The value. Adds the SPRM. The option. The value. Adds the SPRM. The option. The value. Clones internal chpx. Removes the SPRM. The option. Determines whether this instance has Single Property Modifier Record Array. if this instance has Single Property Modifier Record Array, set to true. Gets the new (added when track changes property is on) Single Property Modifier Record. The option. Gets the index of the new (changed) character properties. Converts color to word color format Returns a that represents the current . A that represents the current . Closes this instance. Gets Sprm array Gets CharacterPropertyException. Gets/Sets the Complex script property Gets/sets Bold property Gets/sets Italic property Gets/sets Italic property Gets/sets Italic property Gets/sets Strike property Gets/sets DoubleStrtike property Gets/sets Underline property Gets/sets Font name property Gets/sets Font name property Gets/sets Font name property Gets/sets Font name property Gets/sets Font name property Gets/sets FontAscii property Gets/sets FontFarEast property Gets/sets Non FontFarEast property Gets/sets Non FontFarEast property Gets/sets FontSize property Gets/sets FontSizeHP property Gets/sets FontColor property Gets/sets Extended FontColor property Gets/sets Extended FontColor property Gets/sets BackGround color property Gets/sets Sub/Super/Non script property Gets/sets Clear property Gets the sprm byte value and set sprm byte value to the corresponding sprm Gets/sets Picture Location Gets/sets Outline property Gets/sets Shadow property Gets/sets Emboss property Gets/sets Emboss property (Complex). Gets/sets Engrave property Gets/sets Engrave property ( Complex ) Gets/sets Hidden property Gets/sets SpecVanish property Gets/sets SmallCaps property Gets/sets AllCapitalized property Gets/sets AllCapitalized property ( Complex ). Gets/sets Font Position( raised/lowered ) property Gets/sets Font Spacing property Gets/sets Font Scaling property Gets/sets Font Kern property Gets/sets Font Shading property Gets/sets Font Shading property Gets/sets Border property Gets/sets coping of sprms or not Gets/sets Bold property Gets/sets Bold property Gets or sets a value indicating whether no proof. if it is no proof, set to true. Gets a value indicating whether this instance is inserted change. true if this instance is inserted change; otherwise, false. Gets a value indicating whether this instance is deleted change. true if this instance is deleted change; otherwise, false. Defines whether formatting was changed. Gets or sets the index of the list pictture. The index of the list pictture. Gets or sets a value indicating whether [list has image]. true if [list has image]; otherwise, false. Gets/sets Bold property Gets/sets Italic property Gets/sets Bold property Gets/sets FontSizeHP property Gets or sets the language\locale identifier ASCII for older Word version. The language\locale identifier ASCII. Gets or sets the language\locale identifier for ASCII characters in later Word version. The language\locale identifier for ASCII characters. Gets or sets the language\locale identifier for far east characters in older Word version. The language\locale identifier for far east characters. Gets or sets the language\locale identifier for far east characters in later Word version. The language\locale identifier for far east characters. Gets or sets the language\locale identifier for bi-directional characters. The language\locale identifier for bi-directional characters. Summary description for FKPForCharacterProperties = CharPropertiesPage. Size of the FC (File Character position). Each FC is the limit FC of a run of exception text. Consists of all of the CHPXs stored in FKP concatenated end to end. Each CHPX is prefixed with a count of bytes which records its length. Default constructor. Closes this instance. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. checks whether the Chpx at the current index is already parsed. (already added to offset array) Current Index Each FC is the limit FC of a run of exception text. Count of runs. Summary description for CharPropertyException (CHPX). Count of bytes of following data in CHPX. A list of the sprms (Single PRoperty modifier) that encode the differences between CHP (CHaracter property) for a run of text and the CHP generated by the paragraph and character styles that tag the run. Default constructor. Default constructor. Parses the specified data. The data. The offset. The count. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Determines whether this instance has SPRMS. true if this instance has SPRMS; otherwise, false. Closes this instance. Returns a value indicating whether this instance is equal to the character property exception passed as argument. chpx Check whether the sprm passed in the arguments are equal. sprm prevSprm sprm Compare type A list of the sprms (Single PRoperty modifier) that encode the differences between CHP (CHaracter property) for a run of text and the CHP generated by the paragraph and character styles that tag the run. Returns number of property modifiers. Read-only. Summary description for CharPosTable. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. MemoryConverter to convert array of bytes into structure. Creates new record from stream. Stream with record's data. Number of bytes to parse. MemoryConverter to convert array of bytes into structure. Closes this instance. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. MemoryConverter to convert array of bytes into structure. Gets text positions. Read-only. Summary description for ColumnArray. Default distance between coumns in twips Closes this instance. Reads the column from the sprms. Summary description for ColumnDescriptor. Interface which represents data structures. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Gets the size of the structure. The length. Reads the int16. The data array. The offset. Reads the int32. The data array. The offset. Reads the int64. The data array. The offset. Reads the int16. The data array. The offset. Reads the int32. The data array. The offset. Reads the array of bytes. The data array. The length. The offset. Saves the specified int16 value in the data array. The arr data. The offset. Saves the specified uint16 value in the data array. The arr data. The offset. Saves the specified int32 value in the data array. The arr data. The offset. Saves the specified int64 value in the data array. The destination. The offset. The value. Saves the specified uint32 value in the data array. The arr data. The offset. Saves the bytes byte array. The destination array. The offset. The bytes. Copies the memory. The destination. The source. The length. Summary description for DOPStructure. Maximum length of the password. Default password hash value. Initializes a new instance of the class. The stream. The DOPDescriptor start. Length of the dop. if set to true document is template. Update date time values with reference to built in document properties. Built in document properties Sets the document protection. The type. The password. Parses the date time. Date and Time (internal date format) (DTTM) field | type | size | bitfield | comment mint | U16 | :6 | 003F | minutes (0-59) hr | U16 | :5 | 07C0 | hours (0-23) dom | U16 | :5 | F800 | days of month (1-31) mon | U16 | :4 | 000F | months (1-12) yr | U16 | :9 | 1FF0 | years (1900-2411)-1900 wdy | U16 | :3 | E000 | weekday Weekday: Sunday=0, Monday=1, Tuesday=2, Wednesday=3, Thursday=4, Friday=5, Saturday=6 The date time. Sets the date time. The dt. Converts the day of week to integer. The DayOfWeek member. Returns hash value for the password string. Password to hash. Hash value for the password string. Converts character to 15 bits sequence Character to convert. Converts bits array to UInt16 value. Array to convert. Converted UInt16 value. Rotates (cyclic shift) bits in the array specified number of times Array to rotate Number of times to rotate Rotated array. Gets the dop95. The dop95. Gets the dop97. The dop97. Gets the dop2000. The dop2000. Gets the dop2002. The dop2002. Gets the dop2003. The dop2003. Gets the dop2007. The dop2007. Gets the copts60. The copts60. Gets the protection key. The protection key. Gets or sets the width of the default tab. The width of the default tab. Specifies the maximum amount of white space, in twips, allowed at the end of the line before attempting to hyphenate the next word. Specifies the maximum number of consecutive lines that can end in a hyphenated word before ignoring automatic hyphenation rules for a line. Gets or sets a value indicating whether [spell all done]. true if [spell all done]; otherwise, false. Gets or sets a value indicating whether [spell clean]. true if [spell clean]; otherwise, false. Gets or sets a value indicating whether [spell hide errors]. true if [spell hide errors]; otherwise, false. Gets or sets a value indicating whether [grammar hide errors]. true if [gram hide errors]; otherwise, false. Gets or sets a value indicating whether [label document]. true if [label document]; otherwise, false. Specifies the capital letters are hyphenated in a given document true if [hyph capitals]; otherwise, false. When 1, Word will hyphenate newly typed text as a background task true if [automatic hyphen]; otherwise, false. Gets or sets a value indicating whether [form no fields]. true if [form no fields]; otherwise, false. This property MUST be false, if ProtEnabled is false. when 1, Word will merge styles from its template true if [link styles]; otherwise, false. Gets or sets a value indicating whether [revision marking]. true if [rev marking]; otherwise, false. Gets or sets a value indicating whether [exact c words]. true if [exact c words]; otherwise, false. Gets or sets a value indicating whether [page hidden]. true if [pag hidden]; otherwise, false. Gets or sets a value indicating whether [page results]. true if [pag results]; otherwise, false. Gets or sets a value indicating whether [lock atn]. true if [lock atn]; otherwise, false. Gets a value indicating whether to mirror page margins. true if than mirror margins; otherwise, false. Gets or sets a value indicating whether [word97 compat]. true if [word97 compat]; otherwise, false. Gets or sets a value indicating whether [prot enabled]. true if [prot enabled]; otherwise, false. Gets or sets a value indicating whether the selection was within a display form field, when the document was saved last time. true if the selection was within a display form field (check box or list box), when the document was saved last time; otherwise, false. This property MUST be false, if protection type is other than AllowOnlyFormFields. Gets or sets a value indicating whether [rm view]. true if [rm view]; otherwise, false. Gets or sets a value indicating whether [rm print]. true if [rm print]; otherwise, false. Gets or sets a value indicating whether [lock vba proj]. true if [lock vba proj]; otherwise, false. Gets or sets a value indicating whether [lock rev]. true if [lock rev]; otherwise, false. Gets or sets a value indicating whether [embed fonts]. true if [embed fonts]; otherwise, false. Specifies whether to apply shading on form fields. true if form field shading is applied; otherwise, false. Gets or sets the a value indicating whether the gutter is at top of the document. True if the gutter is at top; otherwise, false. Specifies the structure of Dop95. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets the copts80. The copts80. Specifies the structure of Dop97. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets the adt. The adt. Gets the dop typography. The dop typography. Gets the dogrid. The dogrid. Gets or sets the LVL dop. The LVL dop. Gets or sets a value indicating whether [gram all done]. true if [gram all done]; otherwise, false. Gets or sets a value indicating whether [gram all clean]. true if [gram all clean]; otherwise, false. Gets or sets a value indicating whether [subset fonts]. true if [subset fonts]; otherwise, false. Gets or sets a value indicating whether [HTML doc]. true if [HTML doc]; otherwise, false. Gets or sets a value indicating whether [disk LVC invalid]. true if [disk LVC invalid]; otherwise, false. Gets or sets a value indicating whether [snap border]. true if [snap border]; otherwise, false. Gets or sets a value indicating whether [include header]. true if [include header]; otherwise, false. Gets or sets a value indicating whether [include footer]. true if [include footer]; otherwise, false. Gets the asumyi. The asumyi. Gets or sets the C ch WS. The C ch WS. Gets or sets the C ch WS with subdocs. The C ch WS with subdocs. Gets or sets the GRF doc events. The GRF doc events. Gets or sets a value indicating whether [virus prompted]. true if [virus prompted]; otherwise, false. Gets or sets a value indicating whether [virus load safe]. true if [virus load safe]; otherwise, false. Gets or sets the key virus session30. The key virus session30. Gets or sets the cp max list cache main doc. The cp max list cache main doc. Gets or sets the ilfo last bullet main. The ilfo last bullet main. Gets or sets the ilfo last number main. The ilfo last number main. Gets or sets the CDBC. The CDBC. Gets or sets the CDBC with subdocs. The CDBC with subdocs. Gets or sets the NFC FTN ref. The NFC FTN ref. Gets or sets the NFC edn ref. The NFC edn ref. Gets or sets the HPS zoom font pag. The HPS zoom font pag. Gets or sets the dyw disp pag. The dyw disp pag. Specifies the structure of Dop2000. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets the ilvl last bullet main. The ilvl last bullet main. Gets or sets the ilvl last number main. The ilvl last number main. Gets or sets the type of the istd click para. The type of the istd click para. Gets or sets a value indicating whether [LAD all done]. true if [LAD all done]; otherwise, false. Gets or sets a value indicating whether [envelope vis]. true if [envelope vis]; otherwise, false. Gets or sets a value indicating whether [maybe tentative list in doc]. true if [maybe tentative list in doc]; otherwise, false. Gets or sets a value indicating whether [maybe fit text]. true if [maybe fit text]; otherwise, false. Gets or sets a value indicating whether [FCC all done]. true if [FCC all done]; otherwise, false. Gets or sets a value indicating whether [rely on CS s_ web opt]. true if [rely on CS s_ web opt]; otherwise, false. Gets or sets a value indicating whether [rely on VM l_ web opt]. true if [rely on VM l_ web opt]; otherwise, false. Gets or sets a value indicating whether [allow PN g_ web opt]. true if [allow PN g_ web opt]; otherwise, false. Gets or sets the screen size_ web opt. The screen size_ web opt. Gets or sets a value indicating whether [organize in folder_ web opt]. true if [organize in folder_ web opt]; otherwise, false. Gets or sets a value indicating whether [use long file names_ web opt]. true if [use long file names_ web opt]; otherwise, false. Gets or sets the pixels per inch_ web opt. The pixels per inch_ web opt. Gets or sets a value indicating whether [web options init]. true if [web options init]; otherwise, false. Gets or sets a value indicating whether [maybe FEL]. true if [maybe FEL]; otherwise, false. Gets or sets a value indicating whether [char line units]. true if [char line units]; otherwise, false. Gets the copts. The copts. Gets or sets the ver compat pre10. The ver compat pre10. Gets or sets a value indicating whether not to display page boundaries (doNotDisplayPageBoundaries - Open xml format property). true if [no marg PGVW saved]; otherwise, false. Gets or sets a value indicating whether [bullet proofed]. true if [bullet proofed]; otherwise, false. Gets or sets a value indicating whether [save uim]. true if [save uim]; otherwise, false. Gets or sets a value indicating whether [filter privacy]. true if [filter privacy]; otherwise, false. Gets or sets a value indicating whether [seen repairs]. true if [seen repairs]; otherwise, false. Gets or sets a value indicating whether this instance has XML. true if this instance has XML; otherwise, false. Gets or sets a value indicating whether [validate XML]. true if [validate XML]; otherwise, false. Gets or sets a value indicating whether [save invalid XML]. true if [save invalid XML]; otherwise, false. Gets or sets a value indicating whether [show XML errors]. true if [show XML errors]; otherwise, false. Gets or sets a value indicating whether [always merge empty namespace]. true if [always merge empty namespace]; otherwise, false. Specifies the structure of Dop2002. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets a value indicating whether [do not embed system font]. true if [do not embed system font]; otherwise, false. Gets or sets a value indicating whether [word compat]. true if [word compat]; otherwise, false. Gets or sets a value indicating whether [live recover]. true if [live recover]; otherwise, false. Gets or sets a value indicating whether [embed factoids]. true if [embed factoids]; otherwise, false. Gets or sets a value indicating whether [factoid XML]. true if [factoid XML]; otherwise, false. Gets or sets a value indicating whether [factoid all done]. true if [factoid all done]; otherwise, false. Gets or sets a value indicating whether [folio print]. true if [folio print]; otherwise, false. Gets or sets a value indicating whether [reverse folio]. true if [reverse folio]; otherwise, false. Gets or sets the text line ending. The text line ending. Gets or sets a value indicating whether [hide FCC]. true if [hide FCC]; otherwise, false. Gets or sets a value indicating whether [acetate show markup]. true if [acetate show markup]; otherwise, false. Gets or sets a value indicating whether [acetate show atn]. true if [acetate show atn]; otherwise, false. Gets or sets a value indicating whether [acetate show ins del]. true if [acetate show ins del]; otherwise, false. Gets or sets a value indicating whether [acetate show props]. true if [acetate show props]; otherwise, false. Gets or sets the istd table DFLT. The istd table DFLT. Gets or sets the ver compat. The ver compat. Gets or sets the GRF FMT filter. The GRF FMT filter. Gets or sets the I folio pages. The I folio pages. Gets or sets the CPG text. The CPG text. Gets or sets the cp min RM text. The cp min RM text. Gets or sets the cp min RM FTN. The cp min RM FTN. Gets or sets the cp min RM HDD. The cp min RM HDD. Gets or sets the cp min RM atn. The cp min RM atn. Gets or sets the cp min RM edn. The cp min RM edn. Gets or sets the cp min rm TXBX. The cp min rm TXBX. Gets or sets the cp min rm HDR TXBX. The cp min rm HDR TXBX. Specifies the structure of Dop2003. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets a value indicating whether [treat lock atn as read only]. true if [treat lock atn as read only]; otherwise, false. Gets or sets a value indicating whether [style lock]. true if [style lock]; otherwise, false. Gets or sets a value indicating whether [auto FMT override]. true if [auto FMT override]; otherwise, false. Gets or sets a value indicating whether [remove word ML]. true if [remove word ML]; otherwise, false. Gets or sets a value indicating whether [apply custom X form]. true if [apply custom X form]; otherwise, false. Gets or sets a value indicating whether [style lock enforced]. true if [style lock enforced]; otherwise, false. Gets or sets a value indicating whether [fake lock atn]. true if [fake lock atn]; otherwise, false. Gets or sets a value indicating whether [ignore mixed content]. true if [ignore mixed content]; otherwise, false. Gets or sets a value indicating whether [show placeholder text]. true if [show placeholder text]; otherwise, false. Gets or sets a value indicating whether [word97 doc]. true if [word97 doc]; otherwise, false. Gets or sets a value indicating whether [style lock theme]. true if [style lock theme]; otherwise, false. Gets or sets a value indicating whether [style lock QF set]. true if [style lock QF set]; otherwise, false. Gets or sets a value indicating whether [reading mode ink lock down]. true if [reading mode ink lock down]; otherwise, false. Gets or sets a value indicating whether [acetate show ink atn]. true if [acetate show ink atn]; otherwise, false. Gets or sets a value indicating whether [filter DTTM]. true if [filter DTTM]; otherwise, false. Gets or sets a value indicating whether [enforce doc prot]. true if [enforce doc prot]; otherwise, false. Gets or sets the doc prot cur. The doc prot cur. Gets or sets a value indicating whether to display background objects (displayBackgroundShape - Open xml property). true if display background objects; otherwise, false. Gets or sets the dxa page lock. The dxa page lock. Gets or sets the dya page lock. The dya page lock. Gets or sets the PCT font lock. The PCT font lock. Gets or sets the grfitbid. The grfitbid. Gets or sets the ilfo mac at cleanup. The ilfo mac at cleanup. Specifies the structure of Dop2007. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets a value indicating whether [RM track formatting]. true if [RM track formatting]; otherwise, false. Gets or sets a value indicating whether [RM track moves]. true if [RM track moves]; otherwise, false. Gets or sets the SSM. The SSM. Gets or sets a value indicating whether [reading mode ink lock down actual page]. true if [reading mode ink lock down actual page]; otherwise, false. Gets or sets a value indicating whether [auto compress pictures]. true if [auto compress pictures]; otherwise, false. Gets the dop math. The dop math. Specifies the structure of Asumyi. Initializes a new instance of the class. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets a value indicating whether this is valid. true if valid; otherwise, false. Gets or sets a value indicating whether this is view. true if view; otherwise, false. Gets or sets the view by. The view by. Gets or sets a value indicating whether [update props]. true if [update props]; otherwise, false. Gets or sets the W DLG level. The W DLG level. Gets or sets the L highest level. The L highest level. Gets or sets the L current level. The L current level. Specifies the structure of Dogrid. Initializes a new instance of the class. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets the xa grid. The xa grid. Gets or sets the ya grid. The ya grid. Gets or sets the dxa grid. The dxa grid. Gets or sets the dya grid. The dya grid. Gets or sets the dy grid display. The dy grid display. Gets or sets the dx grid display. The dx grid display. Gets or sets a value indicating whether [follow margins]. true if [follow margins]; otherwise, false. Specifies the structure of DopTypography. Initializes a new instance of the class. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets a value indicating whether [kerning punct]. true if [kerning punct]; otherwise, false. Gets or sets the justification. The justification. Gets or sets the level of kinsoku. The level of kinsoku. Gets or sets a value indicating whether this is print2on1. true if print2on1; otherwise, false. Gets or sets the custom ksu. The custom ksu. Gets or sets a value indicating whether [japanese use level2]. true if [japanese use level2]; otherwise, false. Gets or sets the CCH following punct. The CCH following punct. Gets or sets the CCH leading punct. The CCH leading punct. Gets or sets the RGXCH F punct. The RGXCH F punct. Gets or sets the RGXCH L punct. The RGXCH L punct. Specifies the structure of DopMth. Initializes a new instance of the class. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets the MTHBRK. The MTHBRK. Gets or sets the MTHBRK sub. The MTHBRK sub. Gets or sets the MTHBPJC. The MTHBPJC. Gets or sets a value indicating whether [math small frac]. true if [math small frac]; otherwise, false. Gets or sets a value indicating whether [math int lim und ovr]. true if [math int lim und ovr]; otherwise, false. Gets or sets a value indicating whether [math nary lim und ovr]. true if [math nary lim und ovr]; otherwise, false. Gets or sets a value indicating whether [math wrap align left]. true if [math wrap align left]; otherwise, false. Gets or sets a value indicating whether [math use disp defaults]. true if [math use disp defaults]; otherwise, false. Gets or sets the FTC math. The FTC math. Gets or sets the dxa left margin. The dxa left margin. Gets or sets the dxa right margin. The dxa right margin. Gets or sets the dxa indent wrapped. The dxa indent wrapped. Specifies the structure of Copts. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets the copts80. The copts80. Gets or sets a value indicating whether [sp layout like W w8]. true if [sp layout like W w8]; otherwise, false. Gets or sets a value indicating whether [FTN layout like W w8]. true if [FTN layout like W w8]; otherwise, false. Gets or sets a value indicating whether [dont use HTML paragraph auto spacing]. true if [dont use HTML paragraph auto spacing]; otherwise, false. Gets or sets a value indicating whether [dont adjust line height in table]. true if [dont adjust line height in table]; otherwise, false. Gets or sets a value indicating whether [forget last tab align]. true if [forget last tab align]; otherwise, false. Gets or sets a value indicating whether [use autospace for full width alpha]. true if [use autospace for full width alpha]; otherwise, false. Gets or sets a value indicating whether [align tables row by row]. true if [align tables row by row]; otherwise, false. Gets or sets a value indicating whether [layout raw table width]. true if [layout raw table width]; otherwise, false. Gets or sets a value indicating whether [layout table rows apart]. true if [layout table rows apart]; otherwise, false. Gets or sets a value indicating whether [use word97 line breaking rules]. true if [use word97 line breaking rules]; otherwise, false. Gets or sets a value indicating whether [dont break wrapped tables]. true if [dont break wrapped tables]; otherwise, false. Gets or sets a value indicating whether [dont snap to grid in cell]. true if [dont snap to grid in cell]; otherwise, false. Gets or sets a value indicating whether [dont allow field end select]. true if [dont allow field end select]; otherwise, false. Gets or sets a value indicating whether [apply breaking rules]. true if [apply breaking rules]; otherwise, false. Gets or sets a value indicating whether [dont wrap text with punct]. true if [dont wrap text with punct]; otherwise, false. Gets or sets a value indicating whether [dont use asian break rules]. true if [dont use asian break rules]; otherwise, false. Gets or sets a value indicating whether [use word2002 table style rules]. true if [use word2002 table style rules]; otherwise, false. Gets or sets a value indicating whether [grow auto fit]. true if [grow auto fit]; otherwise, false. Gets or sets a value indicating whether [use normal style for list].Consider only in word 2007 and later versions true if [use normal style for list]; otherwise, false. Gets or sets a value indicating whether [dont use indent as numbering tab stop].Consider only in word 2007 and later versions true if [dont use indent as numbering tab stop]; otherwise, false. Gets or sets a value indicating whether [FE line break11].Consider only in word 2007 and later versions true if [FE line break11]; otherwise, false. Gets or sets a value indicating whether [allow space of same style in table].Consider only in word 2007 and later versions true if [allow space of same style in table]; otherwise, false. Gets or sets a value indicating whether [W W11 indent rules].Consider only in word 2007 and later versions true if [W W11 indent rules]; otherwise, false. Gets or sets a value indicating whether [dont autofit constrained tables].Consider only in word 2007 and later versions true if [dont autofit constrained tables]; otherwise, false. Gets or sets a value indicating whether [autofit like W W11].Consider only in word 2007 and later versions true if [autofit like W W11]; otherwise, false. Gets or sets a value indicating whether [underline tab in num list].Consider only in word 2007 and later versions true if [underline tab in num list]; otherwise, false. Gets or sets a value indicating whether [hangul width like W W11].Consider only in word 2007 and later versions true if [hangul width like W W11]; otherwise, false. Gets or sets a value indicating whether [split pg break and para mark].Consider only in word 2007 and later versions true if [split pg break and para mark]; otherwise, false. Gets or sets a value indicating whether [dont vert align cell with sp].Consider only in word 2007 and later versions true if [dont vert align cell with sp]; otherwise, false. Gets or sets a value indicating whether [dont break constrained forced tables].Consider only in word 2007 and later versions true if [dont break constrained forced tables]; otherwise, false. Gets or sets a value indicating whether [dont vert align in TXBX].Consider only in word 2007 and later versions true if [dont vert align in TXBX]; otherwise, false. Gets or sets a value indicating whether [word11 kerning pairs].Consider only in word 2007 and later versions true if [word11 kerning pairs]; otherwise, false. Gets or sets a value indicating whether [cached col balance].Consider only in word 2007 and later versions true if [cached col balance]; otherwise, false. Specifies the structure of Copts80. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets the copts60. The copts60. Gets or sets a value indicating whether [suppress top spacing mac5]. true if [suppress top spacing mac5]; otherwise, false. Gets or sets a value indicating whether [trunc dxa expand]. true if [trunc dxa expand]; otherwise, false. Gets or sets a value indicating whether [print body before HDR]. true if [print body before HDR]; otherwise, false. Gets or sets a value indicating whether [no ext leading]. true if [no ext leading]; otherwise, false. Gets or sets a value indicating whether [dont make space for UL]. true if [dont make space for UL]; otherwise, false. Gets or sets a value indicating whether [MW small caps]. true if [MW small caps]; otherwise, false. Gets or sets a value indicating whether [F2PT ext leading only]. true if [F2PT ext leading only]; otherwise, false. Gets or sets a value indicating whether [trunc font height]. true if [trunc font height]; otherwise, false. Gets or sets a value indicating whether [sub on size]. true if [sub on size]; otherwise, false. Gets or sets a value indicating whether [line wrap like word6]. true if [line wrap like word6]; otherwise, false. Gets or sets a value indicating whether [W w6 border rules]. true if [W w6 border rules]; otherwise, false. Gets or sets a value indicating whether [exact on top]. true if [exact on top]; otherwise, false. Gets or sets a value indicating whether [extra after]. true if [extra after]; otherwise, false. Gets or sets a value indicating whether [WP space]. true if [WP space]; otherwise, false. Gets or sets a value indicating whether [WP just]. true if [WP just]; otherwise, false. Gets or sets a value indicating whether [print met]. true if [print met]; otherwise, false. Specifies the structure of Copts60. Initializes a new instance of the class. The dop base. Parses the specified stream. The stream. Writes the specified stream. The stream. Gets or sets a value indicating whether [no tab for ind]. true if [no tab for ind]; otherwise, false. Gets or sets a value indicating whether [no space raise lower]. true if [no space raise lower]; otherwise, false. Gets or sets a value indicating whether [suppress sp bf after pg BRK]. true if [suppress sp bf after pg BRK]; otherwise, false. Gets or sets a value indicating whether [wrap trail spaces]. true if [wrap trail spaces]; otherwise, false. Gets or sets a value indicating whether [map print text color]. true if [map print text color]; otherwise, false. Gets or sets a value indicating whether [no column balance]. true if [no column balance]; otherwise, false. Gets or sets a value indicating whether [conv mail merge esc]. true if [conv mail merge esc]; otherwise, false. Gets or sets a value indicating whether [suppress top spacing]. true if [suppress top spacing]; otherwise, false. Gets or sets a value indicating whether [orig word table rules]. true if [orig word table rules]; otherwise, false. Gets or sets a value indicating whether [show breaks in frames]. true if [show breaks in frames]; otherwise, false. Gets or sets a value indicating whether [swap borders facing PGS]. true if [swap borders facing PGS]; otherwise, false. Gets or sets a value indicating whether [leave backslash alone]. true if [leave backslash alone]; otherwise, false. Gets or sets a value indicating whether [exp sh RTN]. true if [exp sh RTN]; otherwise, false. Gets or sets a value indicating whether [DNT UL TRL SPC]. true if [DNT UL TRL SPC]; otherwise, false. Gets or sets a value indicating whether [DNT BLN sb db wid]. true if [DNT BLN sb db wid]; otherwise, false. Summary description for FieldDescriptor. Clone field Write FieldDescriptor to stream Gets or sets a value indicating whether field result is locked or not. True if the field result should not be recalculated; otherwise, false. Summary description for Fields. Default constructor Gets fields for subdocument. Writes the specified stream. The stream. The end position. The sub document. Closes this instance. Writes the fields for sub document. The st list. The stream. The end position. Summary description for FieldTypeDefiner. Gets the type STR table. The type STR table. Font family name record. Note that just as for a pascal-style string, the first byte in the FFN records the total number of bytes not counting the count byte itself. The names of the fonts correspond to the ftc codes in the CHP structure. For example, the first font name listed corresponds is the name for ftc = 0 Maximal length of string that represent font names. Bits masks and offsets for FFNBaseStructure.Options property. FFN base structure. The font name. The alternative font name. Default constructor. Exstract record data from specified byte array. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Save record data in array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Closes this instance. Underlying structure ( used in BaseWordRecord for fast copy data to special structure ) Length of ffn minus 1. Length of record. Gets or sets pitch request. Check whether the subsetted attribute is present Gets or sets TrueType flag for font. Gets or sets font family id. Gets or sets base weight of font. Get/set font signature of Unicode Subset Bitfields 0 Get/set font signature of Unicode Subset Bitfields 1 Get/set font signature of Unicode Subset Bitfields 2 Get/set font signature of Unicode Subset Bitfields 3 Get/set font signature of Code Page Bitfields 0 Get/set font signature of Code Page Bitfields 1 Gets or sets character set identifier. Gets or sets font name. Summary font name and alternate font name length can not be large 65 bytes. Gets/Sets alternative font name. Gets/Sets Embed fonts stream (.odttf files) Summary description for FontFamilyNameTable. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Closes this instance. Array of FontFamilyRecord objects. Summary description for FormField. Gets field type. Summary description for LineSpacingDescriptor. Initializes a new instance of the class. The lsid. if it is hybrid, set to true. if it is simple list, set to true. Closes this instance. Gets ListLevels object Gets/sets list name True if restart heading True if it is simplelist Gets a value indicating whether this instance is hybrid multilevel. if this instance is hybrid multilevel, set to true. Gets/sets list identifier. Closes this instance. Gets arraylist of ListFormatOverrride levels Gets/sets list identifier. Initializes a new instance of the class. Initializes a new instance of the class. Default list id Strings for bulleted lists Reads lists' names Writes lists' names Closes this instance. Gets ListFormatOverrides object Gets ListFormats object Reads list's character or paragraph properties. Initializes a new instance of the class. Summary description for ListFormat. Key = override list style name, value = override list index. Key = list style name, value = list index. Closes this instance. Update the ParagraphPropertyException for current Writer ListProperties Continue current list Applies the list. The list data. The list format. The style sheet. if it is apply to pap, set to true. Summary description for ParagraphPropertyException. Style id. Default constructor. Creates new record from stream. Stream with record's data. Number of bytes to parse. if set to true [is huge papx]. Closes this instance. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Saves the specified stream. The stream. Number of bytes in the written data. Returns object with cloned members Gets or sets a value indicating whether [m_is huge papx]. true if [m_is huge papx]; otherwise, false. Gets / sets StyleId. A list of the sprms (Single PRoperty modifier) that encode the differences between CHP (CHaracter property) for a run of text and the CHP generated by the paragraph and character styles that tag the run. Returns number of property modifiers. Read-only. Default constructor. Default constructor. Extracts structure from the array of bytes. Array of bytes with structure's data. Offset to the structure's data start. Offset after structure's data end. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. The PHE is a substructure of the PAP and the PAPX FKP and is also stored in the PLCFPHE. Index of the bit of spare flag. Index of the bit of validness bit. Index of the bit for IsDifferentLines property. Index of byte for lines count property. Mask for NextRowHint property. Start bit for NextRowHint property. Size of the record in bytes. Underlying structure. Default constructor. Initializes a new instance of the class. The arr data. Initializes a new instance of the class. The stream. Parses the specified data array. The data array. The offset. Saves the structure. The destination data array. The offset. Reserved (fSpare). Indicates whether this structure is valid (fUnk). If this property is set to True then total height of paragraph is known but lines in paragraph have different heights (fDiffLines). When fDiffLines is 0 is number of lines in paragraph (clMac). Width of lines in paragraph (dxaCol). when IsDiffLines is 0, is height of every line in paragraph in pixels when IsDiffLines is 1, is the total height in pixels of the paragraph If the PHE is stored in a PAP whose fTtp field is set (non-zero), height of table row (dymLine / dymHeight / dymTableHeight). If not == 0, used as a hint when finding the next row (dcpTtpNext). Gets underlying structure. Read-only. Summary description for FKPForCharacterProperties = ParagraphPropertiesPage. Size of the FC (File Character position). Each FC is the limit FC of a run of exception text. An array of the BX data structure. The ith BX entry in the array describes the paragraph beginneing at fkp.rgfc[ i ]. Consists of all of the CHPXs stored in FKP concatenated end to end. Each CHPX is prefixed with a count of bytes which records its length. Closes this instance. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Each FC is the limit FC of a run of exception text. An array of the BX data structure. The ith BX entry in the array describes the paragraph beginneing at fkp.rgfc[ i ]. Count of runs. Summary description for PICF. Clones current PictureDescriptor. Compare the properties of PICF True, if all the properties matches, else false Gets the PICF text for Word comparison Gets the border top. The border top. Gets the border left. The border left. Gets the border right. The border right. Gets the border bottom. The border bottom. Size of the record in bytes. Underlying structure. Default constructor. Parses record. Data to parse. Parses record. Data to parse. Offset in the data array to the records data. when 1, means that piece contains no end of paragraph marks. used internally by Word used internally by Word file offset of beginning of piece. The size of the ith piece can be determined by subtracting rgcp[i] of the containing plcfpcd from its rgcp[i+1]. contains either a single sprm or else an index number of the grpprl which contains the sprms that modify the properties of the piece. Returns underlying structure. Read-only. Summary description for BinaryTable. Array of file positions (n+1). Array of talbe entries (n). Default constructor. Closes this instance. Returns array of character positions. Read-only. Returns array of binary table entries. Read-only. Summary description for PosStructReader. Summary description for ReferencePositionTable. Locations of footnote references within the main text address space. Reference numbers. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. Creates new record from stream. Stream with record's data. Number of bytes to parse. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. MemoryConverter to convert array of bytes into structure. Gets locations of footnote references within the main text address space. Read-only. Gets reference numbers. Read-only. Summary description for SectionDescriptor. Size of the record. Underlying structure. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. MemoryConverter to convert array of bytes into structure. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. used internally by Word (fn). used internally by Word (fnMpr). File offset in main stream to beginning of SEPX stored for section. If sed.fcSepx == 0xFFFFFFFF, the section properties for the section are equal to the standard SEP (see SEP definition). Points to offset in FC space of main stream where the Macintosh Print Record for a document created on a Mac will be stored. Returns underlying class or structure. Summary description for SectionExceptionsTable. The boundaries (character positions) of sections in the Word document. 1-to-1 correspondence to the array of CPs. Each SED stores the beginning FC of the SEPX that records the properties for a section. If the FC stored in a SED is -1, the section properties of the section are exactly equal to the standard section properties. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. MemoryConverter to convert array of bytes into structure. Closes this instance. Parses the specified data. The data. The offset. The count. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. The boundaries (character positions) of sections in the Word document. 1-to-1 correspondence to the array of CPs. Each SED stores the beginning FC of the SEPX that records the properties for a section. If the FC stored in a SED is -1, the section properties of the section are exactly equal to the standard section properties. Number of elements in the collection. Summary description for SectionProperties. Default constructor Initializing constructor Returns object with cloned members Copy paragraph properties or not Gets/sets the space between the header and the top of the page. Gets/sets the space between the footer and the bottom of the page. Gets/sets whether a title page is to be displayed Gets / sets break code Gets / sets text direction Gets/sets the distance between the bottom edge of the page and the bottom boundary of the text. Gets/sets the distance between the top edge of the page and the top boundary of the text. Gets/sets the distance between the left edge of the page and the left boundary of the text. Gets/sets the distance between the right edge of the page and the right boundary of the text. Orientation of pages in that section. Set page size firstly! Set to 0 - when portrait, 2 - when landscape Gets/sets the height of the page in twips. Gets/sets the width of the page in twips. Gets/sets the bin in which the first page of the section will be printed Gets/sets the bin in which the other pages of the section will be printed Vertical justification code 0 top justified 1 centered 2 fully justified vertically 3 bottom justified Gets/sets the size of the page gutter. Gets / sets whether section contains right-to-left text. Gets or sets the value page start at. The page start at. Gets or sets a value indicating whether to restart page. if page restart, set to true. Gets or sets the line pitch. The line pitch. Gets or sets the type of the pitch. The type of the pitch. Gets or sets a value indicating whether to draw lines between columns. if draw lines between columns, set to true. Gets or sets a value indicating whether [form protect]. true if [form protect]; otherwise, false. Gets or sets a value indicating sprmSWall if draw lines between columns, set to true. Gets or sets a value indicating [Chapter numbering seprator in page number]. Chapter Page Separator Gets or sets a value indicating [Chapter numbering level in page number]. Chapter Heading Level Gets / sets endnote numbering format Gets / sets footnote numbering format Gets / sets the restart index for endnote Gets / sets the restart index for footnotes Gets / sets footnote position in the document Gets / sets the initial footnote number Gets / sets the initial endnote number Summary description for SectionPropertyException. List of sprms that encodes the differences between the properties of a section and Word's default section properties. Default constructor. Creates instance and sets the default section properties If true, loads the default section properties. Creates instance and gets data from the stream. Stream with new instance data. MemoryConverter for structures convertions. Closes this instance. Extracts instance from the stream. Stream with data. MemoryConverter for structures convertions. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Number of property modifiers. Gets / sets break code Gets / sets columns count Summary description for ShadingDescriptor. Initializing constructor Default constructor Clones the ShadingDescriptor instance. Returns non-parsed structure as short value Returns non-parsed structure as short value Gets/sets foreground color Gets/sets background color Gets/sets pattern Summary description for SinglePropertyModifierArray. List of single property modifiers. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. MemoryConverter to convert array of bytes into structure. Creates new record from stream. Stream with record's data. Number of bytes to parse. MemoryConverter to convert array of bytes into structure. Remove modifier from collection Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Check the duplicate sprm in single propety modifier array collection Current single property modifier array record Determines whether sprm is correct. The Single Property Modifier Record. true if sprm is correct; otherwise, false. Checks for valid Character Property sprm true if sprm is correct; otherwise, false. Checks for valid paragraph Property sprm true if sprm is correct; otherwise, false. Checks for valid Table Property sprm true if sprm is correct; otherwise, false. Checks for valid Section Property sprm true if sprm is correct; otherwise, false. Checks for valid Picture Property sprm true if sprm is correct; otherwise, false. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Removes all modifiers from the collection. Adds new modifier to the collection. Modifier to add. Sort Sprms based on Unique ID Check whether the Sprms contain TrackChanges SPRMs Adds new modifier to the collection. Modifier to add. Adds new modifier to the collection. Modifier to add. Returns true if sprm present Clones this instance. Closes this instance. Gets the sprm by index. Index of the SPRM. Contains the specified option. The option. Returns corresponding sprm if it Options Gets the new (added when track changes property is on) Single Property Modifier Record. The option. Gets the index of the new (changed) paragraph properties. Gets the old sprm from the sprms collection List of single property modifiers. Read-only. Indexer by sprm options. Returns number of elements in the array. Read-only. Parent collection. Summary description for SprmRecord. 0-8 bits. Start bit for unique id bit mask. Bit index for special handling value. Mask for type of sprm. Mask for operand size. Start non-zero bit in operand size mask. Mask for ushort value. Header options of the sprm. Length of the operand. Sprm length. Extracts SPRM structure from array of bytes. Array of bytes that contains SPRM. Offset of SPRM in the array of bytes. Offset in arrBuffer after SPRM. Extracts SPRM structure from stream. Stream with sprm data. MemoryConverter to convert memory block into structure. Saves record into array of bytes. Array of bytes to save record into. Offset in the array. Number of bytes in the written data. Converts WordSprmOperandSize to number of bytes needed to be read from stream. Size of the operand. Number of bytes needed to be read from stream. Unique identifier within sgc group. Indicates whether sprm needs special handling. Type of sprm. Size of the operand. Size of the operand in bytes. Header options of the sprm. Header options of the sprm. Summary description for Spacings. Clone cell spacing Summary description for StringTableRecord. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. MemoryConverter to convert array of bytes into structure. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. Creates new record from stream. Stream with record's data. Number of bytes to parse. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Summary description for BinTableEntry. Record size in bytes. Binary table entry value. Parses the specified data array. The arr data. The i offset. Saves the structure to data array. The arr data. The i offset. Binary table entry value. Summary description for BookmarkFirstStructure. Saves bookmark positions. Saves bookmark properties. Summary description for Border Structure. width of a single line in 1/8 pt, max of 32 pt. border type code: color code :5 1F00 width of space to maintain between border and text within border. Must be 0 when BRC is a substructure of TC. Stored in points. :1 2000 when 1, border is drawn with shadow. Must be 0 when BRC is a substructure of the TC Initializes a new instance of the class. The arr. The i offset. Initializes a new instance of the class. Clones the BorderStructure instance. Parse byte array to BorderCode structure Saves the specified arr. The arr. The i offset. Width of a Line Border type code Width of space to maintain between border and text within border when true, border is drawn with shadow Gets or sets the color of the line. The color of the line. Gets a value indicating whether this instance is clear. if this instance is clear, set to true. Gets the size of the structure. The length. BreaK Descriptor (BKD). except in textbox BKD, index to PGD in plfpgd that describes the page this break is on. in textbox BKD, number of cp's considered for this break; note that the CP's described by cpDepend in this break reside in the next BKD Option flags. Parse the data strucure Bytes with data Offset Saves the specified arr. The arr. The offset. Gets the size of the structure. The length. Summary description for BXStructure. Size of the record. Word offset of the PAPX (PAragraph Property eXception ) recorded for the paragraph corresponding to the BX. PHE structure which stores the current paragraph height for the paragraph corresponding to the BX. Default constructor. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves the specified writer. The writer. Word offset of the PAPX (PAragraph Property eXception ) recorded for the paragraph corresponding to the BX. Gets the size of the structure. The length. Base structure for FontFamilyNameRecord. Total length of FFN - 1. [ FieldOffset( 0 ) ] Option flags. 2bits - pitch request 1bit - when 1, font is a TrueType font 1bit - reserved 3bits - font family id 1bit - reserved [ FieldOffset( 1 ) ] Base weight of font. [ FieldOffset( 2 ) ] Character set identifier. [ FieldOffset( 4 ) ] Index into ffn.szFfn to the name of the alternate font. [ FieldOffset( 5 ) ] "Magic" data. { 0x2, 0x2, 0x6, 0x3, 0x5, 0x4, 0x5, 0x2, 0x3, 0x4 } "Magic" data. m_FONTSIGNATURE[ 0 ] = 0x87; m_FONTSIGNATURE[ 1 ] = 0x7a; ... m_FONTSIGNATURE[ 3 ] = 0x20; ... m_FONTSIGNATURE[ 7 ] = 0x80; m_FONTSIGNATURE[ 8 ] = 0x8; ... m_FONTSIGNATURE[ 16 ] = 0xff; m_FONTSIGNATURE[ 17 ] = 0x1; Closes this instance. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Total length of FFN - 1. Option flags. 2bits - pitch request 1bit - when 1, font is a TrueType font 1bit - reserved 3bits - font family id 1bit - reserved Base weight of font. Character set identifier. Index into ffn.szFfn to the name of the alternate font. Length of record. The length. Formatted disK Page - 512 bytes Size of the record. Page data. Count of elements in the array. Default constructor. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Closes this instance. Page data. Count of elements. Gets the size of the structure. The length. Summary description for ParagraphHeightStructure. Options. Width of lines in paragraph. when IsDiffLines is 0, is height of every line in paragraph in pixels when IsDiffLines is 1, is the total height in pixels of the paragraph If the PHE is stored in a PAP whose fTtp field is set (non-zero), height of table row Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Options file offset of beginning of piece. The size of the ith piece can be determined by subtracting rgcp[i] of the containing plcfpcd from its rgcp[i+1]. contains either a single Single Property Modifier Record or else an index number of the grpprl which contains the sprms that modify the properties of the piece. Parse the data strucure Bytes with data Offset Saves the data structure. Destination data array The offset. Options. File offset of beginning of piece.The size of the ith piece can be determined by subtracting rgcp[i] of the containing plcfpcd from its rgcp[i+1]. Contains either a single Single Property Modifier Record or else an index number of the grpprl which contains the sprms that modify the properties of the piece. Summary description for PropertyModifierStructure. Bit index for IsComplex value. Size of the record in bytes; Options. Saves structure to specified data array. The array with data. The offset. Summary description for SectionDescriptorStructure. used internally by Word (fn). file offset in main stream to beginning of SEPX stored for section. If sed.fcSepx == 0xFFFFFFFF, the section properties for the section are equal to the standard SEP (see SEP definition). used internally by Word (fnMpr). Points to offset in FC space of main stream where the Macintosh Print Record for a document created on a Mac will be stored. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. used internally by Word (fn). used internally by Word (fnMpr). file offset in main stream to beginning of SEPX stored for section. If sed.fcSepx == 0xFFFFFFFF, the section properties for the section are equal to the standard SEP (see SEP definition). Points to offset in FC space of main stream where the Macintosh Print Record for a document created on a Mac will be stored. Gets the size of the structure. The length. Base part of StyleDefinition. Number of bytes in the record. Option flags. Option flags. Option flags. Offset to end of upx's, start of upe's (bchUpe). Option flags. Option flags (contain info about links) Resets all fields. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Invariant style identifier. Spare field for any temporary use, always reset back to zero! PHEs of all text with this style are wrong. Indicates whether UPEs have been generated. std has been mass-copied; if unused at save time, style should be deleted. Style type code. Base style. Number of UPXs (and UPEs). Next style. Auto redefine style when appropriate Indicates whether style is hidden from UI. Gets or sets the link style id. The link style id. Indicates whether style is hidden from UI. Indicates whether style is hidden from UI. Indicates whether style is hidden from UI. STSHI: STyleSHeet Information, as stored in a file Note that new fields can be added to the STSHI without invalidating the file format, because it is stored preceded by it's length. When reading a STSHI from an older version, new fields will be zero. Bit index for StdStyleNamesWritten property. Count of styles in stylesheet (cstd). Length of STD Base as stored in a file. Option flags. Max sti known when this file was written (StiMaxWhenSaved). This indicates the last built-in style known to the version of Word that saved this file. How many fixed-index istds are there? Current version of built-in stylenames (nVerBuiltInNamesWhenSaved). ftc used by StandardChpStsh for this document (rgftcStandardChpStsh). Represents the sprmCFtcBi for default document formatting Parse the data strucure Bytes with data Offset Saves the specifies structure. The arr data. The offset. Count of styles in stylesheet (cstd). Length of STD Base as stored in a file (cbSTDBaseInFile). Indicates whether built-in stylenames are stored. Max sti known when this file was written. How many fixed-index istds are there? Current version of built-in stylenames (nVerBuiltInNamesWhenSaved). ftc used by StandardChpStsh for this document. Read-only. Gets and sets the default Bidi font Summary description for _Constants. Size of the File Character position. Number of bytes in single word value. Number of bytes in single int value. Number of bytes in formatted disk page. Number of bytes in single long value. To prevent creating instances of this class constructor was made private. Base part of StyleDefinition. Base part of the style definition. Names of the styles Names of the aliases styles (comma separated). Closes this instance. Extract record's fields from stream. Stream with record's data. Number of bytes that belongs the record. MemoryConverter to convert array of bytes into structure. Style sheet info. Saves record into stream. Stream to save record into. Number of bytes in the written data. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. MemoryConverter to convert array of bytes into structure. Creates new record from stream. Stream with record's data. Number of bytes that belongs the record. MemoryConverter to convert array of bytes into structure. Style sheet info. Parses UPX part of the variable part. Returns even number based on specified number. Invariant style identifier. Spare field for any temporary use, always reset back to zero! PHEs of all text with this style are wrong. Indicates whether UPEs have been generated. std has been mass-copied; if unused at save time, style should be deleted. Style type code. Base style. Number of UPXs (and UPEs). Next style. Auto redefine style when appropriate Indicates whether style is hidden from UI. Names of the style Name of the Aliases Style Names (comma separated). Returns array of Universal Property Exceptions. Read-only. Returns array of Property Exceptions. Read-only. Returns array of Property Exceptions. Read-only. Underlying structure. Gets or sets the link style id. The link style id. Gets or sets a value indicating whether this instance is primary style. true if this instance is primary style; otherwise, false. Gets or sets a value indicating whether this instance is priority. true if this instance is priority; otherwise, false. Gets or sets a value indicating whether this instance is semi hidden. true if this instance is semi hidden; otherwise, false. STSHI: STyleSHeet Information, as stored in a file Note that new fields can be added to the STSHI without invalidating the file format, because it is stored preceded by it's length. When reading a STSHI from an older version, new fields will be zero. Bit index for StdStyleNamesWritten property. Underlying structure. Initializes a new instance of the class. Length of the i STD base. Creates new record from array of bytes, using specified memory provider. Data to parse. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. Creates new record from stream. Stream with record's data. Number of bytes to parse. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Closes this instance. Count of styles in stylesheet (cstd). Length of STD Base as stored in a file (cbSTDBaseInFile). Indicates whether built-in stylenames are stored. Max sti known when this file was written. How many fixed-index istds are there? Current version of built-in stylenames (nVerBuiltInNamesWhenSaved). ftc used by StandardChpStsh for this document. Read-only. Underlying structure. Gets and sets the default bidi font name Summary description for SymbolDescriptor. Summary description for TabDescriptor. Initializes a new instance of the class. The justification. The leader. Saves this instance. Gets or sets the justification. The justification. Gets or sets the tab leader. The tab leader. Summary description for TableBorders. Initializes this instance. Summary description for TabsDescriptor. Initializes a new instance of the class. Saves the specified SPRMS. The SPRMS. The SPRM option. Gets or sets the tab count. The tab count. Gets or sets the tab positions. The tab positions. Gets or sets the tab delete positions. The tab delete positions. Gets or sets the descriptors. The descriptors. Summary description for TextBoxDescriptor. when not fReusable count of textboxes in story chain. if fReusable, counts the number of reusable textboxes follow this one in the linked list. this textbox is not currently in use. Reserved Shape Identifier for first Office Shape in textbox chain. Count of textboxes in story chain The number of reusable textboxes follow this one Is current textbox reusable Shape Identifier for first Office Shape Summary description for UniversalPropertyException. Internal data. Default constructor. Creates new record from array of bytes, using specified memory provider. Data to parse. Offset to the class data. Number of bytes for the new record. MemoryConverter to convert array of bytes into structure. Closes this instance. Parses record. Data to parse. Offset in the data array to the records data. Number of bytes to parse. Returns internal data array. Read-only. The properties types Paragraph properties = 1, Character Properties = 2, Picture Properties = 3, Section Properties = 4, Table Properties = 5, Size of the operand for sprm (Single PRoperty Modifier). 1 byte, operand affects 1 bit. Size of the operand, 1 byte. Size of the operand, 2 bytes Size of the operand, 4 bytes. Size of the operand, TwoBytes2. Size of the operand, TwoBytes3. Variable length - following byte is size of operand. Size of the operand, 3 bytes. Specifies the WordSprmOptionType. The SPRM p istd The SPRM p istd permute The SPRM p inc level The SPRM p jc The SPRM pf side by side The SPRM pf keep The SPRM pf keep follow The SPRM pf page break before The SPRM p BRCL The SPRM p BRCP The SPRM p ilvl The SPRM p ilfo The SPRM pf no line numb The SPRM p CHG tabs papx The SPRM p dxa right The SPRM p dxa left The SPRM p nest The SPRM p dxa left1 The SPRM p dya line The SPRM p dya before The SPRM p dya after The SPRM p CHG tabs The SPRM pf in table The SPRM pf TTP The SPRM p dxa abs The SPRM p dya abs The SPRM p dxa width The SPRM p pc The SPRM p BRC top10 The SPRM p BRC left10 The SPRM p BRC bottom10 The SPRM p BRC right10 The SPRM p BRC between10 The SPRM p BRC bar10 The SPRM p dxa from text10 The SPRM p wr The SPRM p BRC top The SPRM p BRC left The SPRM p BRC bottom The SPRM p BRC right The SPRM p BRC between The SPRM p BRC bar The SPRM p BRC top new The SPRM p BRC left new The SPRM p BRC bottom new The SPRM p BRC right new The SPRM pf no automatic hyph The SPRM pw height abs The SPRM p DCS The SPRM p SHD The SPRM p dya from text The SPRM p dxa from text The SPRM pf locked The SPRM pf widow control The SPRM p ruler The SPRM pf kinsoku The SPRM pf word wrap The SPRM pf overflow punct The SPRM pf top line punct The SPRM pf automatic space de The SPRM pf automatic space dn The SPRM pw align font The SPRM p frame text flow The SPRM pi snap base line The SPRM p anld The SPRM p property r mark The SPRM p out level The SPRM pf bi di The SPRM pf number rm ins The SPRM p cr lf The SPRM p number rm The SPRM p huge papx The SPRM p huge papx2 The SPRM pf use pgsu settings The SPRM pf adjust right The SPRM CFR mark delete The SPRM CFR mark The SPRM cf field vanish The SPRM c pic location The SPRM c ibst r mark The SPRM c DTTM r mark The SPRM cf data The SPRM c idsl r mark The SPRM c CHS The SPRM c symbol The SPRM cf ole2 The SPRM c identifier character type The SPRM c highlight The SPRM c object location The SPRM cf FTC asci symb The SPRM c istd The SPRM c istd permute The SPRM c default The SPRM c plain The SPRM c KCD The SPRM cf bold The SPRM cf italic The SPRM cf strike The SPRM cf outline The SPRM cf shadow The SPRM cf small caps The SPRM cf caps The SPRM cf vanish The SPRM c FTC default The SPRM c kul The SPRM c size position The SPRM c dxa space The SPRM c lid The SPRM c icon The SPRM c icoe The SPRM c HPS The SPRM c HPS inc The SPRM c HPS position The SPRM c HPS position adj The SPRM c majority The SPRM c iss The SPRM c HPS new50 The SPRM c HPS inc1 The SPRM c HPS kern The SPRM c majority50 The SPRM c HPS mul The SPRM c ysri The SPRM c rg FTC0 The SPRM c rg FTC1 The SPRM c rg FTC2 The SPRM c character scale The SPRM CFD strike The SPRM cf imprint The SPRM cf spec The SPRM cf object The SPRM c property r mark The SPRM cf emboss The SPRM c SFX text The SPRM cf bi di The SPRM cf diac color The SPRM cf bold bi The SPRM cf italic bi The SPRM c FTC bi The SPRM c lid bi The SPRM c icon bi The SPRM c HPS bi The SPRM c disp field r mark The SPRM c ibst r mark delete The SPRM c DTTM r mark delete The SPRM c BRC The SPRM c SHD The SPRM c idsl r mark delete The SPRM cf use pgsu settings The SPRM c CPG The SPRM c rg lid0 The SPRM c rg lid1 The SPRM c idct hint The SPRM pic BRCL The SPRM pic scale The SPRM pic BRC top The SPRM pic BRC left The SPRM pic BRC bottom The SPRM pic BRC right The SPRM SCNS PGN The SPRM si heading PGN The SPRM s olst anm The SPRM s dxa col width The SPRM s dxa col spacing The SPRM sf evenly spaced The SPRM sf protected The SPRM s dm bin first The SPRM s dm bin other The SPRM s BKC The SPRM sf title page The SPRM s ccolumns Footnote/Endnotes Sprms The SPRM s NFC edn reference The SPRM sn FTN The SPRM sn edn The SPRM s FPC The SPRM s RNC FTN The SPRM s RNC edn The SPRM s dxa columns The SPRM sf automatic PGN The SPRM s NFC PGN The SPRM s dya PGN The SPRM s dxa PGN The SPRM sf PGN restart The SPRM sf endnote The SPRM s LNC The SPRM s GPRF ihdt The SPRM sn LNN mod The SPRM s dxa LNN The SPRM s dya HDR top The SPRM s dya HDR bottom The SPRM sl between The SPRM s VJC The SPRM s LNN minimum The SPRM s PGN start The SPRM sb orientation The SPRM sb customize The SPRM s xa page The SPRM s ya page The SPRM s dxa left The SPRM s dxa right The SPRM s dya top The SPRM s dya bottom The SPRM s dza gutter The SPRM s dm paper req The SPRM s property r mark The SPRM sf bi di The SPRM sf facing col The SPRM SFRTL gutter The SPRM s BRC top The SPRM s BRC left The SPRM s BRC bottom The SPRM s BRC right The SPRM s PGB property The SPRM s DXT character space The SPRM s dya line pitch The SPRM s CLM The SPRM s text flow The SPRM t jc The SPRM t dxa left The SPRM t dxa gap half The SPRM tf cant split The SPRM tf cant split90 The SPRM t table header The SPRM t table borders The SPRM t definition table10 The SPRM t dya row height The SPRM t definition table The SPRM t definition table SHD The SPRM t TLP The SPRM tf bi di The SPRM THTML props The SPRM t set BRC The SPRM t insert The SPRM t delete The SPRM t dxa col The SPRM t merge The SPRM t split The SPRM t set BRC10 The SPRM t set SHD The SPRM t set SHD odd The SPRM t text flow The SPRM t diag line The SPRM t vert merge The SPRM t vert align The SPRM t cell f hide mark The SPRM p time stamp The SPRM c SHD new The SPRM p SHD new The SPRM t table borders new The SPRM t cell margins The SPRM t table cell margins The SPRM none The SPRM unknown1 The SPRM unknown2 The SPRM c rg lid3 The SPRM c rg lid3 2 The SPRM p sub table cell end The SPRM p sub table row end The SPRM t top border color The SPRM t left border color The SPRM t bottom border color The SPRM t right border color The SPRM t cell spacing The SPRM t automatic resize cells The SPRM s BRC bottom new The SPRM s BRC left new The SPRM s BRC right new The SPRM s BRC top new The SPRM p dxa left1 bi The SPRM p table props The SPRM t istd The SPRM t nesting level The SPRM table unknown1 The SPRM table unknown2 The SPRM t preferred width The SPRM t width before The SPRM t width after The SPRM t width indent The SPRM c underline color The SPRM cf no proof The SPRM p jc bi The SPRM p dxa left bi The SPRM p dxa right bi The SPRM pf before automatic The SPRM pf after automatic The SPRM t property r mark The SPRM t position code The SPRM t frame left The SPRM t frame top The SPRM t from text bottom The SPRM t from text left The SPRM t from text right The SPRM t from text top The SPRM t cell SHD new The SPRM t cell SHD new2 The SPRM t cell SHD new2 dup The SPRM t cell SHD new3 The SPRM t cell SHD new3 dup The SPRM t cell SHD new dup The SPRM t table SHD The SPRM pf no allow overlap The SPRM p dyl before The SPRM p dyl after The SPRM p undocumented6465 The SPRM p undocumented6654 The SPRM p undocumented C653 The SPRM p undocumented C66 c The SPRM c LBC CRJ The SPRM c undocumented2 a86 The SPRM c pbi has image The SPRM c undocumented6815 The SPRM c undocumented6816 The SPRM c undocumented6817 The SPRM c pbi image index The SPRM cf web hidden newly added The SPRM c undocumented revision problem The SPRM c undocumented1 The SPRM c undocumented2 The SPRM c undocumented3 The SPRM c undocumented4 The SPRM c undocumented5 The SPRM c undocumented6 The SPRM c undocumented7 The SPRM c undocumented8 The SPRM t cell BRC type The SPRM c property r mark1 The SPRM c wall The SPRM p wall The SPRM p property r mark90 The SPRM t wall The SPRM pf cont spacing The SPRM s wall The SPRM p DXC left The SPRM p DXC left1 The SPRM p DXC right The SPRM tf no allow overlap Specifies word complex block type. Specifies Type as Sprms. Specifies Type as PieceTable. Style type. Specifies Paragraph style. Specifies character style. Specifies Table style. Specifies List style. Paragraph justification code. Left justification. Center justification. Right justification. LeftAndRight justification. Word Sprm Options. Footnote/Endnotes Sprms newly added Summary description for annotations. Summary description for SubDocumentRW. Text position table. Referense position table. Initializes a new instance of the class. The stream. The fib. Initializes a new instance of the class. Determines whether the specified reference has reference. The reference. true if the specified reference has reference; otherwise, false. Determines whether the required reference position is in between the given start and end position Start position End position Text length True if the Reference position of next Foonote/Endnote in between the start and end position otherwise false Determines whether the specified position has position. The position. true if the specified position has position; otherwise, false. Reads. The stream. The fib. Writes. The stream. The fib. Adds the text position. The position. Gets the text position. The index. Closes this instance. Reads the descriptors. Writes the descriptors. Reads the descriptors. The length. The size. Adds the reference position. The position. Inits this instance. Reads the text positions. Reads the text positions. The count. Writes the text positions base. Writes the text positions. Writes the reference positions. The end pos. Reads the descriptor. The reader. The pos. The pos next. Gets the count. The count. Annotation owners. Initializes a new instance of the class. Initializes a new instance of the class. Reads. The stream. The fib. Writes. The stream. The fib. Adds the descriptor. The annotation descriptor. The pos. The bookmark start. The bookmark end. Adds the descriptor. The annotation descriptor. The pos. Adds the GXAO. The gxao. Gets the descriptor. The index. Gets the user. Index of the atn. Gets the bookmark start. The index. Gets the bookmark end. The index. Gets the position. The index. Reads the GXAO. The pos. The length. Writes the GXAO. Closes this instance. Inits this instance. Reads the text positions. Reads the descriptors. Reads the descriptor. The reader. The position. The next positiopn. Writes the descriptors. Writes the text positions. Closes this instance. Summary description for BaseProps. Summary description for FileShapeAddress. Gets / sets shape horizontal alignment. Gets / sets shape vertical alignment. Summary description for BitmapBLIP. Summary description for Blip. The secondary, or data, UID - should always be set optional based on the above check raster bits of the blip Summary description for BstoreContainer. Closes this instance. Summary description for Shapes. Table stream Sorted list with FileShapeAddress structures Sorted list with TexBoxStory structures Sorted list with textbox BreakDescriptors Last text position for textbox in Main Last text position for textbox in Header Initializes a new instance of the class. Initialize MainDocTxBxs and MainDocTxBxBKDs, or HfDocTxBxBKDs and HfDocTxBxs Get textbox text positions (needed in Reader) Get ShapeObject's identificator from TextboxStoryDescriptor collection. Subdocument type. ShapeObject entry. Closes this instance. Read TextBoxes table stream position Read TextBox breakdescriptors Get positions for each type of artobjects structure type structure length Write FSPA Write textbox fib data Write break descriptors Write data to stream End position for FSPA Write data to stream End position for FSPA Gets the index of the by. The col. The index. Gets the key. The col. The index. Sorted list of textboxes Sorted list of textbox descriptors Sorted list of header/footer's textboxes Sorted list of header/footer's textboxe descriptors Get count of the structures Base class for all Container classes Summary description for BaseContainer. Clone current record. Closes this instance. Removes the container by spid. The base container. The spid. Synchronize identificators in escher container. The auto shape collection. The textbox shape id. The pict shape id. The text id. Index of the text col. Gets shape container's identificator. Clones the relations to. The doc. Remove Ole from BaseContainer. Syncronize Txid in OPT container. The option record. The text id. Synchronize MsofbtSp. The shape record. The auto shape collection. The textbox shape id. The pict shape id. Index in the text collection. Closes this instance. Summary description for ContainerCollection. Writes the specified stream. The stream. Reads the specified stream. The stream. The length. Summary description for Escher. Collection which is used for fast container's search. Background container. Initializes a new instance of the class. The table stream. The doc stream. The DGG info offset. Length of the DGG info. Get shape order index Get shape type of BaseEscherRecord Clone container in escher. Destination document Wordsubdocument( main or header/footer) Spid of container, which will be cloned Result container spid Remove OLE from escher. Remove container with data from BStoreContainer by PID. Remove container with data from BStoreContainer by PID. Get background container. Checks the existance of container with such pib and checks if Blip != null The pib. Create and fill MsofbtGeneral (textboxes only) Initialize FIDCL for textboxes Get the number of shaped in DgContainer. Fill m_containers hash table Closes this instance. Get all containers that have spids. Gets background container. File Blip Store Entry. The ID clusters are used internally for the translation of shape ids (SPIDs) to shape handles (MSOHSPs). Summary description for FOPTEBase. Summary description for FOPTEBid. Gets the FOPTbid text for Word comparison Summary description for FOPTEComplex. BLIP Store Entry Record msofbtBSE Each BLIP in the BStore is serialized to a File BLIP Store Entry (FBSE) record. The instance field encodes the type of the blip. A fixed size header contains the rest of the common information about the BLIP. If the cbName field in the FBSE is nonzero, a null-terminated Unicode string is written immediately after the FBSE in the file. Determines whether the specified image format is metafile. The image format. true if the specified image format is metafile; otherwise, false. Determines whether the specified image format is bitmap. The image format. true if the specified image format is bitmap; otherwise, false. Compare the properties of two bse Gets the MsofbtBSE text for Word comparison Gets or sets the value indicating whether the picture is in shape field The BStore container is just an array of Blip Store Entry (BSE) records. Each shape stores indices into the array for the BLIPs they use. BLIPs are used not only for inserted pictures, but also for the textured and pictures fills of the shape. Host-specific data. Summary description for MsofbtUnknown. Initializes a new instance of the class. Closes this instance. Summary description for MsofbtClientData. the text in the textbox, in a host-defined format. Drawing Record msofbtDg The drawing record is very simple, with just a count and MSOSPID seed. The attentive reader may expect to find the size of the drawing recorded here, but that information is stored elsewhere by the host application. Drawing Container msofbtDgContainer The drawing container contains all per-slide/sheet types of information, including the shapes themselves. With a few exceptions, shapes are stored hierarchically according to how they've been grouped (through use of the Draw/Group command). For normal shapes, there is a special parent group shape called the patriarch that contains all of the top-level shapes (which in turn may contain other shapes). The patriarch is always the first msofbtSpgrContainer in the drawing container. A few kinds of shapes are stored separately from the patriarch. The background shape, if there is one, is saved in its own msofbtSpContainer after the patriarch and its children. Additionally, if undo information is being saved and there are deleted shapes that could be brought back via Undo, the deleted shapes are saved. Note that there is no patriarch for the deleted shapes, so the top-level deleted shapes are saved separately into the drawing container. (Deleted groups still contain their children, though.) The drawing group record is a variable length record consisting of a fixed part followed by an array. Summary description for MsofbtDggContainer. Bitmap Blips Those blips have one of the following signatures: msobiJPEG, msobiPNG, or msobiDIB. They have the same UID header as described in the Metafile Blip case. The data after the header is just a single BYTE "tag" value and is followed by the compressed data of the bitmap in the relevant format (JFIF or PNG, bytes as would be stored in a file). For the msobiDIB format, the data is in the standard DIB format as a BITMAPINFO ER, BITMAPCORE ER or BITMAPV4 ER followed by the color map (DIB_RGB_COLORS) and the bits. This data is not compressed (the format is used for very small DIB bitmaps only). Summary description for _Blip. Determines whether this instance has uid2. true if this instance has uid2; otherwise, false. Gets or sets the uid2. The uid2. Gets a value indicating whether this instance is has .dib format. true if this instance has .dib format; otherwise, false. Number of used colors. Size of header. Size of each color definition in the palette. Signature, must be 4D42 hex for .bmp header. Reserved data. Initializes a new instance of the class. Initializes a new instance of the class. The image record. if set to true [is bitmap]. The doc. Closes this instance. Dib file is a .BMP file without .BMP header. This function adds BMP header. Metafile/PICT Blips Those blips have one of the following signatures: msobiEMF, msobiWMF, or msobiPICT. They are normally stored in a compressed format using the LZ compression algorithm in the format used by GNU Zip deflate/inflate with a 32k window. The format is zlib format . The only metafile compression version number currently defined identifies this format and is analogous to the PNG compression type value in the PNG file format. The filter values (MSOBLIPFILTER) define pre-filtering of metafile data to give better compression. Currently no pre-filtering is done (it is likely that filtering on a per-record basis will give substantially better compression in the future). However, if there is an exception due to out-of-memory or out-of-disk space when saving those blips, the compression operation is skipped and the blips are then saved in a non-compressed format- in this case the compressed bits are simply the original metafile data.. When the blips are loaded back in memory, a check is performed based on a "compression status" flag (MSOBLIPCOMPRESSION) that follows the blip header encoded as follows: Closes this instance. Default Property Table Record msofbtOPT This describes the default properties of newly created shapes. Only the properties that differ from the per-property defaults are saved. The format of the record is the same as that of the property table in a shape; a discussion of that format is in the Shape Properties section . Closes this instance. Get uint property value by key Sets the property value. The key. The value. Get complex value by key. Compare the properties of two shape options Gets the MsofbtOPT text for word comaparison Gets the line properties. The line properties. Gets the wrap polygon vertices. The wrap polygon vertices. Gets or sets the layout in table cell. The layout in table cell. Gets/sets a value indicating whether allow in table cell. true if allow in table cell; otherwise, false. Gets or sets a value indicating whether this textbox can overlap other textboxes. true if allow the textbox to overlap other textboxes; otherwise, false. Gets or sets a value indicating whether this is Visible. true if hidden; otherwise, false. Gets or sets the distance from bottom. The distance from bottom. Gets or sets the distance from left. The distance from left. Gets or sets the distance from right. The distance from right. Gets or sets the distance from top. The distance from top. Gets or sets the rotation. The Rotation The rotation Changes the behavior of a shape by restricting direct manipulation. The f lock rotation The f lock aspect ratio The f lock position The f lock against select The f lock cropping The f lock vertices The f lock text The f lock adjust handles The f lock against grouping How text fits in a shape. Text is host-dependent, so some hosts may ignore some of these properties. The l txid The dx text left The dy text top The dx text right The dy text bottom The wrap text The scale text The anchor text The TXFL text flow The cdir font The HSP next The txdir The f select text The f automatic text margin The f rotate text The f fit shape to text The f fit text to shape Effect text of the shape - this is what the WordArt tools use, and is separate from the attached text present in ordinary textboxes. Theoretically, a shape could have both (a WordArt with attached text), but this is not currently allowed by the UI. Note that font information is provided here. The default text size is in points, the text effect geometry interfaces require the device size of a point to interpret this. The default point size is a 16.16 fixed-point number. A text effect is present if the fGText boolean is set and either the gtextUNICODE (UNICODE) or gtextRTF (RTF) is present, the UNICODE string takes precedence, however it cannot include any additional font information (unlike the RTF). The gtext unicode The gtext RTF The gtext align The gtext size The gtext spacing The gtext font The gtext f reverse rows The f gtext The gtext f vertical The gtext f kern The gtext f tight The gtext f stretch The gtext f shrink fit The gtext f best fit The gtext f normalize The gtext f dx measure The gtext f bold The gtext f italic The gtext f underline The gtext f shadow The gtext f smallcaps The gtext f strikethrough How a BLIP fits into a shape. This includes cropping information as well as picture display modifications such as brightness and contrast. The crop from top The crop from bottom The crop from left The crop from right The pib The pib name The pib flags The picture transparent The picture contrast The picture brightness The picture gamma The picture identifier The picture double cr mod The picture fill cr mod The picture line cr mod The pib print The pib print name The pib print flags The f no hit test picture The picture gray The picture bi level The picture active The geometry of the shape. Typically, these properties reside in a shape type definition, and so are not written to the file. However, freeform shapes drawing using the polygon tools set the pVertices and pSegmentInfo properties to define their geometries. The geo left The geo top The geo right The geo bottom The shape path The p vertices The p segment information The adjust value The adjust2 value The adjust3 value The adjust4 value The adjust5 value The adjust6 value The adjust7 value The adjust8 value The adjust9 value The adjust10 value The f shadow ok The f3 dok The f line ok The f gtext ok The f fill shade shape ok The f fill ok Two main colors are defined - a foreground color and a background color. Different fillTypes use these values differently. In addition to the foreground and background any number of shade colors can be defined. Each shade color is associated with a "position" which says how far into the shade the color appears � colors must be given in position order. The fill type The fill color The fill opacity The fill back color The fill back opacity The fill cr mod The fill blip The fill blip name The fill blip flags The fill width The fill height The fill angle The fill focus The fill to left The fill to top The fill to right The fill to bottom The fill rect left The fill rect top The fill rect right The fill rect bottom The fill dztype The fill shade preset The fill shade colors The fill origin x The fill origin y The fill shape origin x The fill shape origin y The fill shade type The f filled The f hit test fill The fill shape The fill use rect The f no fill hit test Lines are centered about the infinitely thin proto-line along which they are drawn. Complex dash effects are supported only for simple lines (e.g. changing the end cap) - defaults should be used for other line styles. The line width is in EMUs; a line width of zero should not be used - there is no logical interpretation on a high-resolution printer. The line color The line opacity The line back color The line cr mod The line type The line fill blip The line fill blip name The line fill blip flags The line fill width The line fill height The line fill dztype The line width The line miter limit The line style The line dashing The line dash style The line start arrowhead The line end arrowhead The line start arrow width The line start arrow length The line end arrow width The line end arrow length The line join style The line end cap style The line color ext The reserved474 The line color ext mod The reserved476 The line back color ext The reserved478 The line back color ext mod The reserved480 The reserved481 The reserved482 The line style boolean properties Specifies the FOPTELeftLineStyle The line left color The line left opacity The line left back color The line left cr mod The line left type The line left fill blip The line left fill blip name The line left fill blip flags The line left fill width The line left fill height The line left fill dztype The line left width The line left miter limit The line left style The line left dashing The line left dash style The line left start arrowhead The line left end arrowhead The line left start arrow width The line left start arrow length The line left end arrow width The line left end arrow length The line left join style The line left end cap style The line left color ext The reserved1370 The line left color ext mod The reserved1372 The line left back color ext The reserved1374 The line left back color ext mod The reserved1376 The reserved1377 The reserved1378 The left line style boolean properties Specifies the FOPTETopLineStyle The line top color The line top opacity The line top back color The line top cr mod The line top type The line top fill blip The line top fill blip name The line top fill blip flags The line top fill width The line top fill height The line top fill dztype The line top width The line top miter limit The line top style The line top dashing The line top dash style The line top start arrowhead The line top end arrowhead The line top start arrow width The line top start arrow length The line top end arrow width The line top end arrow length The line top join style The line top end cap style The line top color ext The reserved1434 The line top color ext mod The reserved1436 The line top back color ext The reserved1438 The line top back color ext mod The reserved1440 The reserved1441 The reserved1442 The top line style boolean properties Specifies the FOPTERightLineStyle The line right color The line right opacity The line right back color The line right cr mod The line right type The line right fill blip The line right fill blip name The line right fill blip flags The line right fill width The line right fill height The line right fill dztype The line right width The line right miter limit The line right style The line right dashing The line right dash style The line right start arrowhead The line right end arrowhead The line right start arrow width The line right start arrow length The line right end arrow width The line right end arrow length The line right join style The line right end cap style The line right color ext The reserved1498 The line right color ext mod The reserved1500 The line right back color ext The reserved1502 The line right back color ext mod The reserved1504 The reserved1505 The reserved1506 The right line style boolean properties Specifies the FOPTEBottomLineStyle The line bottom color The line bottom opacity The line bottom back color The line bottom cr mod The line bottom type The line bottom fill blip The line bottom fill blip name The line bottom fill blip flags The line bottom fill width The line bottom fill height The line bottom fill dztype The line bottom width The line bottom miter limit The line bottom style The line bottom dashing The line bottom dash style The line bottom start arrowhead The line bottom end arrowhead The line bottom start arrow width The line bottom start arrow length The line bottom end arrow width The line bottom end arrow length The line bottom join style The line bottom end cap style The line bottom color ext The reserved1562 The line bottom color ext mod The reserved1564 The line bottom back color ext The reserved1566 The line bottom back color ext mod The reserved1568 The reserved1569 The reserved1570 The bottom line style boolean properties The interpretation of the transform properties depends on the type of shadow: msoshadowOffset, msoshadowDouble: Only the offset is used. It is interpreted as an absolute offset expressed in EMUs. The default corresponds to 1/36" in both X and Y (2 or 3 pixels on screen depending on monitor resolution). The offset is relative to the drawing axes (as msoshadowDrawing below, not msoshadowRich) so a shadow offset to the bottom right of the drawing is still offset (by the same amount) to the bottom right if the shape is rotated. The "double" case causes two shadows to be drawn, the first (lower) at the second offset and in the shadowHighlightColor. If the second offset is 0,0 it defaults to being the inverse of the first. msoshadowRich: The offsets and transformation properties are in absolute units measured relative to the shape on the drawing - the shadow moves with the shape, but anisotropic scaling of the shape changes the proportions of the shadow, not its angles. Compare with the following where such scaling scales the shadow in proportion too, thus changes the angle between (e.g.) a vertical line in the shape and it's shadow. msoshadowShape: The offsets and transformation properties are relative to the shape; 1.0 corresponds to the shape width/height as appropriate. The shadow is cast relative to the shape then scaled with the shape, so it moves with the shape. The units are simple numbers (ratios of the G unit space effectively). This transformation type is unnatural in real world terms, but behaves nicely in geometric terms. The offset elements of the property set are treated as fixed-point 16.16 values. msoshadowDrawing: A rich shadow cast onto a plane in drawing space. The transform is applied to the drawing coordinates of the shape and is thus expressed in EMUs. This shadow type enables creation of shadows from multiple objects, however the shadows may overlap higher (different) objects if the shadow plane and shape drawing planes overlap on the screen. The shadowWeight parameter is used as in the perspective property set to apply addiitonal scaling to the perspective parameters - these are divided by the weight. Shadow transformations are independent of the perspective transformation applied to a shape - either hte perspective transformation or the shadow transformation is used as appropriate. The shadow type The shadow color The shadow highlight The shadow cr mod The shadow opacity The shadow offset x The shadow offset y The shadow second offset x The shadow second offset y The shadow scale x to x The shadow scale y to x The shadow scale x to y The shadow scale y to y The shadow perspective x The shadow perspective y The shadow weight The shadow origin x The shadow origin y The f shadow The fshadow obscured Perspective Style This is just a 2D transformation matrix (3x3). Specifying peculiar values will cause the shape to render completely outside its geometry - normally clients will constrain the values to get reasonable results. The transformation may be applied at various times as the geometry is processed, this affects the behavior of the perspective which results in the same way as the corresponding shadow perspective types. The perspective type The perspective offset x The perspective offset y The perspective scale x to x The perspective scale y to x The perspective scale x to y The perspective scale y to y The perspective perspective x The perspective perspective y The perspective weight The perspective origin x The perspective origin y The f perspective 3D Object Material properties of a 3D object. A 3D effect overrides the fill and line effects and corresponding colors. Extrusion depths are always specified in absolute units. The c3 d specular amt The c3 d diffuse amt The c3 d shininess The c3 d edge thickness The c3 d extrude forward The c3 d extrude backward The c3 d extrude plane The c3 d extrusion color The c3 d cr mod The f3 d The FC3 d metallic The FC3 d use extrusion color The FC3 d light face 3D Style Properties of a 3D view; note that distances are in drawing units. The c3 dy rotation angle The c3 dx rotation angle The c3 d rotation axis x The c3 d rotation axis y The c3 d rotation axis z The c3 d rotation angle The c3 d rotation center x The c3 d rotation center y The c3 d rotation center z The c3 d render mode The c3 d tolerance The c3 dx viewpoint The c3 dy viewpoint The c3 dz viewpoint The c3 d origin x The c3 d origin y The c3 d skew angle The c3 d skew amount The c3 d ambient intensity The c3 d key x The c3 d key y The c3 d key z The c3 d key intensity The c3 d fill x The c3 d fill y The c3 d fill z The c3 d fill intensity The FC3 d constrain rotation The FC3 d rotation center automatic The FC3 d parallel The FC3 d key harsh The FC3 d fill harsh Shape Miscellaneous properties of a single shape which do not apply to group shapes. The HSP master The cxstyle The b w mode The b w mode pure bw The b w mode bw The f OLE icon The f prefer relative resize The f lock shape type The f delete attached object The f background Callout Properties of a callout shape. The spcot The dxy callout gap The spcoa The spcod The dxy callout drop specified The dxy callout length specified The f callout The f callout accent bar The f callout text border The f callout minus x The f callout minus y The f callout drop automatic The f callout length specified Group Shape Miscellaneous shape properties that can apply to group shapes. The wz name The wz description The pihl shape The p wrap polygon vertices The dx wrap dist left The dy wrap dist top The dx wrap dist right The dy wrap dist bottom The lid regroup The unused906 The wz tooltip The wz script The posh The posrelh The posv The posrelv The PCT hr The align hr The dx height hr The dx width hr The wz script ext attribute The script language The wz script language attribute The border top color The border left color The border bottom color The border right color The table properties The table row properties The wz web bot The metro BLOB The DHGT The f edited wrap The f behind document The f on double click notify The f is button The f one d The f hidden The f print Count of bytes written. Summary description for MsofbtSecondaryFOPT - OfficeArtSecondaryFOPT. Initializes a new instance of the class. Closes this instance. Get uint property value by key Get complex value by key. Counts the instance value. Gets or sets the properties. The properties. Summary description for MsofbtTertiaryFOPT - OfficeArtTertiaryFOPT. Initializes a new instance of the class. Clone current record. Closes this instance. Get uint property value by key Sets the property value. The key. The value. Get complex value by key. Counts the instance value. Compare the properties of two shape positions Gets the MsofbtTertiaryFOPT text for Word comparison Gets the line properties. The line properties. Gets the wrap polygon vertices. The wrap polygon vertices. Gets or sets the properties. The properties. Gets or sets the X align. The X align. Gets or sets the X rel to. The X rel to. Gets or sets the Y align. The Y align. Gets or sets the Y rel to. The Y rel to. Gets or sets the layout in table cell. The layout in table cell. Gets or sets the unknown1. The unknown1. Gets or sets the unknown2. The unknown2. Gets/sets a value indicating whether allow in table cell. true if allow in table cell; otherwise, false. Gets or sets a value indicating whether this textbox can overlap other textboxes. true if allow the textbox to overlap other textboxes; otherwise, false. Gets or sets a value indicating whether this is Visible. true if hidden; otherwise, false. Summary description for LineStyleBooleanProperties Initializes a new instance of the class. The prop. Compare the properties of two lineproperties Gets the LineStyleBooleanProperties for Word comparison Gets a value indicating whether this instance has defined. true if this instance has defined; otherwise, false. Gets or sets a value indicating whether [pen align inset]. true if [pen align inset]; otherwise, false. Gets or sets a value indicating whether [usef line opaque back color]. true if [usef line opaque back color]; otherwise, false. Gets or sets a value indicating whether [usef inset pen]. true if [usef inset pen]; otherwise, false. Gets or sets a value indicating whether [usef inset pen OK]. true if [usef inset pen OK]; otherwise, false. Gets or sets a value indicating whether [usef arrowheads OK]. true if [usef arrowheads OK]; otherwise, false. Gets or sets a value indicating whether [usef line]. true if [usef line]; otherwise, false. Gets or sets a value indicating whether [usef hit test line]. true if [usef hit test line]; otherwise, false. Gets or sets a value indicating whether [usef line fill shape]. true if [usef line fill shape]; otherwise, false. Gets or sets a value indicating whether [usef no line draw dash]. true if [usef no line draw dash]; otherwise, false. Gets or sets a value indicating whether [line opaque back color]. true if [line opaque back color]; otherwise, false. Gets or sets a value indicating whether [inset pen]. true if [inset pen]; otherwise, false. Gets or sets a value indicating whether [inset pen OK]. true if [inset pen OK]; otherwise, false. Gets or sets a value indicating whether [arrowheads OK]. true if [arrowheads OK]; otherwise, false. Gets or sets a value indicating whether this is line. true if line; otherwise, false. Gets or sets a value indicating whether [hit test line]. true if [hit test line]; otherwise, false. Gets or sets a value indicating whether [line fill shape]. true if [line fill shape]; otherwise, false. Gets or sets a value indicating whether [no line draw dash]. true if [no line draw dash]; otherwise, false. Wrap Polygon Vertices class Initializes a new instance of the class. The prop. Compare the properties of two wrap polygon vertices Gets the WrapPolygonVertices text for Word comparison Reads the array data. Gets or sets the coords. The coords. Gets or sets the number of array elements that are contained in this record. The n elems. Gets or sets the maximum number of array elements that this record can contain. The n elems alloc. Gets or sets the size, in bytes, of each element in the data array. The cb elem. Solver Container msofbtSolverContainer Rules give special behaviors to shapes. Rules can govern a single shape, like in the case of a callout shape, or multiple shapes, as in the case of connectors. Each drawing can have a list of rules associated with it. The instance field of the record header contains the shape type; the record itself contains the shape ID and a group of persistent flags. Compare the properties of two Shape Gets the MsofbtSp text for Word comparison Shape Container msofbtSpContainer A shape is the elemental object that composes a drawing. All graphical figures on a drawing are shapes. Each shape has a list of properties, which is stored in an array. Constant value. Specifies Word Picture watermark. Specifies Power plus water mark object. Specifies NotAllowInCell Get uint property value by key Get complex property value. Defines if document has any background effects. true if [is filled background] [the specified back container]; otherwise, false. Gets the type of the background fill. Gets the type of the background. Gets the background image or image bytes. The escher. Gets the background image bytes. The escher. Gets the color of the background. if set to true [returns picture background color]. Get shading style for gradient. Type of the fill. Gets the shading variant. The shading style. Create and init SpContainer of msosptRectangle shape type Creates the background container. The document. The background. Updates the fill gradient. The gradient. Updates the fill picture. Index of the fill blip. The background. Updates the fill color of the container. The color. Apply Picture properties to the Shape Position Creates the inline image container. The picture. Creates the textbox container. The TXBX format. Determines whether the specified image format is bitmap. The image format. true if the specified image format is bitmap; otherwise, false. Determines whether this image format is bitmap for partial trust mode. The image format. Checks the options container(fixed the problem of picture preservation for documents generated by old version of DocIO ). Clones the relations to. The doc. Compare the properties of two Shape container Gets the MsofbtSpContainer text for Word comparison Writes the textbox options. The textbox format. sets the crop value Sets the rotation Value Set user defined textbox option. List of container's FOPTEs User defined option value Option's FOPTE key Set user defined boolean textbox property. Shape options Option's FOPTE key Bit mask for option Option's bit in bitfield Options value FopteBid's default value Gets the opacity. The opacity. Noes the background. Get shading variant for "FromCorner" shading style. Add fillAngle fopte to gradient container. Adds focus fopte to gradient container. Add fillType fopte to gradient container. Defines if current shape container is watermark. Group Shape Record msofbtSpgr This record is present only in group shapes (not shapes in groups, shapes that are groups). The group shape record defines the coordinate system of the shape, which the anchors of the child shape are expressed in. All other information is stored in the shape records that follow. typedef struct _FSPGR { RECT rcgBounds; } FSPGR; Boundary of metafile drawing commands Group Container msofbtSpgrContainer A group is a collection of other shapes. The contained shapes are placed in the coordinate system of the group. The group container contains a variable number of shapes (msofbtSpContainer) and other groups (msofbtSpgrContainer, for nested groups). The group itself is a shape, and always appears as the first msofbtSpContainer in the group container. Summary description for PictureShape. Summary description for ShapeBase. Removes the reference of the used resources. Get shape Constructor Get PictureShape's image Get PictureShapes properties Summary description for TextBoxShape. Get TextBoxShape's properties Summary description for ShapeType. Accent Callouts. Action Buttons. Bent Connectors. Border Callouts. Callouts. Curved connectors. Curved Arrows. Ellipse shapes. FlowChart shapes. Image shape Leftsided shapes. Seal shape WordArt objects. Summary description for ShapeDocType. Possible values for the orientation of a shape. Possible types of background fill. Fill with a solid color. Fill with a pattern (bitmap). A texture (pattern with its own color map). Center a picture in the shape. Shade from start to end points. Shade from bounding rectangle to end point. Shade from shape outline to end point. Similar to msofillShade, but the fillAngle is additionally scaled by the aspect ratio of the shape. If shape is square, it is the same as Shade. Special type - shade to title --- for PP Use the background fill color/pattern MSOSHADETYPE � how to interpret the colors in a shaded fill. Interpolate without correction between RGBs. Apply gamma correction to colors. Apply a sigma transfer function to position. Add a flat band at the start of the shade. This is a one color shade A parameter for the band or sigma function can be stored in the top 16 bits of the value - this is a proportion of *each* band of the shade to make flat (or the approximate equal value for a sigma function). NOTE: the parameter is not used for the sigma function, instead a built in value is used. This value should not be changed from the default! Common Header The common record header is an 8-byte structure defined in msodr.h as follows: typedef struct MSOFBH { struct { ULONG ver : 4; ULONG inst: 12; ULONG fbt : 16; }; ULONG cbLength; } MSOFBH; Summary description for _FBSE. Required type on Win32 Required type on Mac Identifier of blip currently unused Blip size in stream Reference count on the blip How this blip is used (MSOBLIPUSAGE) length of the blip name for the future for the future Summary description for FOPTE. Property ID value is a blip ID � only valid if fComplex is FALSE complex property, value is lenght Value Member initializing constructor Summary description for FSP. shape ID Shape ID This shape is a group shape Not a top-level shape This is the topmost group shape The shape has been deleted The shape is an OLE object Shape has a hspMaster property Shape is flipped horizontally Shape is flipped vertically Connector type of shape Shape has an anchor of some kind Background shape Shape has a shape type property Summary description for ImageWriter Sets the picture size Closes this instance. Get imagewriter's data stream Summary description for ImageReader. Interface for reading images from word file. Gets image as bitmap. Gets image width. Gets image height Unparsed data; Data stream position Initialize class members and parse image from stream Update un parsed data Gets image name Gets/sets image width Gets/sets image height Gets bitmap Gets inline shape's container. Gets the alternative text. The alternative text. Gets or sets the name. The name. Get unparsed data Summary description for MetafileBlip. Cache of saved size (size of m_pvBits) MSOBLIPCOMPRESSION Compressed bits of metafile Size of metafile in EMUs Boundary of metafile drawing commands always msofilterNone Closes this instance. Summary description for MSOFBH. Version Record instance Record type Length of record Defoult .ctor Length of compObject stream This MUST be a CompObjHeader structure. This MUST be a LengthPrefixedAnsiString structure that contains a display name of the linked object or embedded object This MUST be a ClipboardFormatOrAnsiString structure that contains the Clipboard Format of the linked object or embedded object. If the MarkerOrLength field of the ClipboardFormatOrAnsiString structure contains a value other than 0x00000000, 0xffffffff, or 0xfffffffe, the value MUST NOT be greater than 0x00000190. Otherwise the CompObjStream structure is invalid If present, this MUST be a LengthPrefixedAnsiString structure. If the Length field of the LengthPrefixedAnsiString contains a value of 0 or a value that is greater than 0x00000028, the remaining fields of the structure starting with the String field of the LengthPrefixedAnsiString MUST be ignored on processing. If this field is present and is NOT set to 0x71B239F4, the remaining fields of the structure MUST be ignored on processing This MUST be a LengthPrefixedUnicodeString structure that contains a display name of the linked object or embedded object. This MUST be a ClipboardFormatOrUnicodeString structure that contains a Clipboard Format of the linked object or embedded object. If the MarkerOrLength field of the ClipboardFormatOrUnicodeString structure contains a value other than 0x00000000, 0xffffffff, or 0xfffffffe, the value MUST NOT be more than 0x00000190. Otherwise, the CompObjStream structure is invalid This MUST be a LengthPrefixedUnicodeString. The String field of the LengthPrefixedUnicodeString can contain any arbitrary value and MUST be ignored on processing. Initializes a new instance of the class. The stream. Initializes a default instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves data to STG stream. The stream. Writes the zero byte array. The stream. Length of the byte. Writes the length prefixed string. The stream. The data. Gets the size of the structure. The length. Gets the type of the object. The type of the object. Gets the type of the object. The type of the object. This can be set to any arbitrary value and MUST be ignored on processing. This can be set to any arbitrary value and MUST be ignored on processing. This can be set to any arbitrary value and MUST be ignored on processing. Initializes a new instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves to STG stream. The stream. Gets the size of the structure. The length. Initializes a new instance of the class. The stream. Initializes a new instance of the class. The file path. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves the data to stream. The stream. Gets the size of the structure. The length. Initializes a new instance of the class. The stream. Initializes a default instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves the data to stream. The STG stream. Gets the size of the structure. The length. The ole stream name Initializes a new instance of the class. Parses the object pool. The object pool stream. Name of the OLE storage. Saves the specified stream. The stream. The OLE object. Saves the specified native data. The native data. The data path. The OLE object. Adds the oleobject to the collection Writes the native data. The native data. The data path. Type of the object. Writes the native data. The native data. Name of the stream. Writes the embedded drawing. The native data. Writes the native streams. The stream. Writes the "CompObj" stream. Type of the obj. Writes the "CompObj" stream. Type of the obj. The data path. Writes the "Ole" stream. Type of the link. Type of the obj. The data path. Writes the "ObjInfo" stream. Type of the link. Type of the obj. Writes the package. The native data. The data path. Clones this instance. Closes this instance. Sets the storage of the oleobject Gets or sets the GUID. The GUID. Gets the storage. The storage. Gets the type of the OLE object. The type of the OLE. Gets or sets a value indicating whether this item is cloned. true if cloned; otherwise, false. Class performs converting string to OleObjectType enum and vice versa. Converts the string to "OleObjectType" The OLE type STR. Converts the string to "OleObjectType" The OLE type STR. Gets the GUID for specified type of object. The type. Implemented alternative method to improve the performance Class specifies storage with sub storages and streams. Initializes a new instance of the class. Name of the storage. Parses the storages. The storage. Parses the streams. The storage. Writes to storage. The storage. Gets the byte array of the stream Compare storages Updates the GUID. The CMP file. The index. The storage name Clones this instance. Closes this instance. Gets or sets the name of the storage. The name of the storage. Gets the streams. The streams. Gets the storages. The storages. Gets/sets the occurrence of the OleObject This MUST be set to 0x00000001 or 0x00000002. If this field has a value of 1, the OLEStream structure MUST be for a linked object. If this field has a value of 0, then the OLEStream structure MUST be for an embedded object. This field contains an implementation-specific hint supplied by the application or by a higher-level protocol that creates the data structure. The hint MAY be ignored on processing of this data structure. This MUST be set to 0x00000000. Otherwise, the OLEStream structure is invalid. This MUST be set to the size, in bytes, of the ReservedMonikerStream field. If this field has a value 0x00000000, the ReservedMonikerStream field MUST NOT be present. This MUST be a MONIKERSTREAM structure that can contain any arbitrary value and MUST be ignored on processing. This MUST be set to the size, in bytes, of the RelativeSourceMonikerStream field. If this field has a value 0x00000000, the RelativeSourceMonikerStream field MUST NOT be present. This MUST be a MONIKERSTREAM structure that specifies the relative path to the linked object. This MUST be set to the size, in bytes, of the AbsoluteSourceMonikerStream field. This field MUST NOT contain the value 0x00000000. This MUST be a MONIKERSTREAM structure that specifies the full path to the linked object. This MUST be the LONG value -1 This MUST be the CLSID containing the object class GUID of the creating application. This MUST be a LengthPrefixedUnicodeString that can contain any arbitrary value and MUST be ignored on processing. This can contain any arbitrary value and MUST be ignored on processing. This MUST be a FILETIME that contains the time when the container application last updated the RemoteUpdateTime field. This MUST be a FILETIME that contains the time when the container application last checked the update time of the linked object. This MUST be a FILETIME that contains the time when the linked object was last updated. The type of the link; Path to linked file Initializes a new instance of the class. The stream. Initializes a default instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Saves to compound stream. The stream. Gets the size of the structure. The length. Path to file Initializes a new instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Gets the size of the structure. The length. Initializes a new instance of the class. Parse the data strucure Bytes with data Offset Saves the data structure. The destination array. The offset. Length Gets the size of the structure. The length. Summary description for PictureShapeProps. Gets/sets picture brightness. Get/set picture contrast. Get/set picture color Gets or sets the picture's alternative text. The alternative text. Gets or sets the name. The name. Summary description for Rect. Summary description for SPContainer. Default constructor Get/set value which defines if there is a line around textbox shape Get/set wrap text mode Gets or set a value indicating whether to resize the textbox based on the contents. Get/set line style for textbox Get/set textbox fill color Get/set line color. Get/set textbox line width Get/set line dashing for textbox Get/set TXID value; Gets or sets the left margin. The left margin. Gets or sets the right margin. The right margin. Gets or sets the top margin. The top margin. Gets or sets the bottom margin. The bottom margin. Summary description for MSOBlipType. Unknow Metafile header then compressed WMF Metafile header then compressed EMF Metafile header then compressed PICT One byte tag then PNG data One byte tag then JFIF data One byte tag then JPEG data One byte tag then DIB data Clients should set this bit GEL provided types... An error occured during loading An unknown blip type Windows Enhanced Metafile Windows Metafile Macintosh PICT JFIF PNG Windows DIB First client defined blip type Last client defined blip type Blip usage All non-texture fill blips get this. Since this is stored in a byte Blip Foptes Blip to display Blip file name Blip flags transparent color (none if ~0UL) Draw a dashed line if no line DocInfo contains stream component data blocks. Initializes a new instance of the class. The streams manager. Returns WordImageReader depending on the offset offset in Data stream of the current image Gets the fib. The fib. Gets the tables data. The tables data. Gets the FKP data. The FKP data. Gets the image writer. The image writer. Initializes a new instance of the class. Initializes this instance. Initializes the before reading the document. Reads the Fib records from the specified stream. The stream. Reads the Fib records from the decrypted stream. The stream. Reads the Fib records after 64 bytes - cslw from the specified stream. The stream. Validates the cbRgFcLcb. Validates the CSW new. Writes the Fib records to the specified stream. The stream. Writes the internal. The stream. Writes the after encryption. The stream. Updates the fcMac. Closes this instance. Gets the fib version determined in the Word document as per file format specifications. The fib version. Gets or sets an unsigned integer that specifies that this is a Word Binary File. This value MUST be 0xA5EC. The w ident. Gets or sets the unused value. This value is undefined and MUST be ignored. The BaseUnused. Gets or sets a LID that specifies the install language of the application that is producing the document. If nFib is 0x00D9 or greater, then any East Asian install lid or any install lid with a base language of Spanish, German or French MUST be recorded as lidAmerican. If the nFib is 0x0101 or greater, then any install lid with a base language of Vietnamese, Thai, or Hindi MUST be recorded as lidAmerican. The lid. Gets or sets an unsigned integer that specifies the offset in the WordDocument stream of the FIB for the document which contains all the AutoText items. If this value is 0, there are no AutoText items attached. Otherwise the FIB is found at file location pnNext�512. If fGlsy is 1 or fDot is 0, this value MUST be 0. If pnNext is not 0, each FIB MUST share the same values for FibRgFcLcb97.fcPlcBteChpx, FibRgFcLcb97.lcbPlcBteChpx, FibRgFcLcb97.fcPlcBtePapx, FibRgFcLcb97.lcbPlcBtePapx, and FibRgLw97.cbMac. The pn next. Gets or sets a value specifies whether this is a document template (1). true if this is a document template; otherwise, false. Gets or sets a value specifies whether this is a document that contains only AutoText items (see FibRgFcLcb97.fcSttbfGlsy, FibRgFcLcb97.fcPlcfGlsy and FibRgFcLcb97.fcSttbGlsyStyle). true if this is a document that contains only AutoText items; otherwise, false. Gets or sets a value specifies that the last save operation that was performed on this document was an incremental save operation. true if fComplex; otherwise, false. Gets or sets an unsigned integer. If nFib is less than 0x00D9, then cQuickSaves specifies the number of consecutive times this document was incrementally saved. If nFib is 0x00D9 or greater, then cQuickSaves MUST be 0xF. The c quick saves. Gets or sets a value specifies whether the document is encrypted or obfuscated as specified in Encryption and Obfuscation. true if the document is encrypted or obfuscated; otherwise, false. Gets or sets a value specifies the Table stream to which the FIB refers. When this value is set to 1, use 1Table; when this value is set to 0, use 0Table. true if the Table stream is 1Table; otherwise, false. Gets or sets a value specifies whether the document author recommended that the document be opened in read-only mode. true if the document to be opened in read-only mode; otherwise, false. Gets or sets a value specifies whether the document has a write-reservation password. true if the document has a write-reservation password; otherwise, false. Gets or sets a value indicating ext character. This value MUST be 1. true if ext character; otherwise, false. Gets or sets a value specifies whether to override the language information and font that are specified in the paragraph style at istd 0 (the normal style) with the defaults that are appropriate for the installation language of the application. true if load override; otherwise, false. Gets or sets a value specifies whether the installation language of the application that created the document was an East Asian language. true if far east; otherwise, false. Gets or sets a value specifies whether the document is obfuscated by using XOR obfuscation. If fEncrypted is 1, this bit specifies whether the document is obfuscated by using XOR obfuscation (section 2.2.6.1); otherwise, this bit MUST be ignored. true if the document is obfuscated by using XOR obfuscation; otherwise, false. Gets or sets the key. If fEncrypted is 1 and fObfuscation is 1, this value specifies the XOR obfuscation (section 2.2.6.1) password verifier. If fEncrypted is 1 and fObfuscation is 0, this value specifies the size of the EncryptionHeader that is stored at the beginning of the Table stream as described in Encryption and Obfuscation. Otherwise, this value MUST be 0. The l key. Gets or sets the envr. This value MUST be 0, and MUST be ignored. The envr. Gets or sets a value indicating whether mac. This value MUST be 0, and MUST be ignored. true if mac; otherwise, false. Gets or sets a value specifies whether to override the section properties for page size, orientation, and margins with the defaults that are appropriate for the installation language of the application. true if load override page; otherwise, false. Gets or sets a value indicating the reserved1. This value is undefined and MUST be ignored. true if reserved1; otherwise, false. Gets or sets a value indicating the reserved2. This value is undefined and MUST be ignored. true if reserved2; otherwise, false. Gets or sets the spare0. This value is undefined and MUST be ignored. The f spare0. Gets or sets a value indicating the reserved3. This value MUST be 0 and MUST be ignored. The reserved3. Gets or sets a value indicating the reserved4. This value MUST be 0 and MUST be ignored. The reserved4. Gets or sets a value indicating the reserved5. This value is undefined and MUST be ignored. The reserved5. Gets or sets a value indicating the reserved6. This value is undefined and MUST be ignored. The reserved6. Gets or sets an unsigned integer that specifies the count of 16-bit values corresponding to fibRgW that follow. MUST be 0x000E. The CSW. Gets or sets this value is undefined and MUST be ignored. The fib rg w reserved1. Gets or sets this value is undefined and MUST be ignored. The fib rg w reserved2. Gets or sets this value is undefined and MUST be ignored. The fib rg w reserved3. Gets or sets This value is undefined and MUST be ignored. The fib rg w reserved4. A LID whose meaning depends on the nFib value. Gets or sets the lid fe. The lid fe. Gets or sets an unsigned integer that specifies the count of 32-bit values corresponding to fibRgLw that follow. MUST be 0x0016. The CSLW. Specifies the count of bytes of those written to the WordDocument stream of the file that have any meaning. Gets or sets the cb mac. The cb mac. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved1. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved2. Specifies the count of CPs in the main document. Gets or sets the CCP text. The CCP text. Specifies the count of CPs in the footnote subdocument. Gets or sets the CCP FTN. The CCP FTN. Specifies the count of CPs in the header subdocument. Gets or sets the CCP HDD. The CCP HDD. Gets or sets this value MUST be zero and MUST be ignored. The rg lw reserved3. Specifies the count of CPs in the comment subdocument. Gets or sets the CCP atn. The CCP atn. Specifies the count of CPs in the endnote subdocument. Gets or sets the CCP edn. The CCP edn. Specifies the count of CPs in the textbox subdocument of the main document. Gets or sets the CCP TXBX. The CCP TXBX. Specifies the count of CPs in the textbox subdocument of the header. Gets or sets the CCP HDR TXBX. The CCP HDR TXBX. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved4. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved5. Gets or sets the rg lw reserved6. The rg lw reserved6. Gets or sets this value is undefined and MUST be ignored The rg lw reserved7. Gets or sets this value is undefined and MUST be ignored The rg lw reserved8. Gets or sets the rg lw reserved9. The rg lw reserved9. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved10. Gets or sets this value is undefined and MUST be ignored. The rg lw reserved11. Gets or sets this value MUST be zero and MUST be ignored. The rg lw reserved13. Gets or sets this value MUST be zero and MUST be ignored. The rg lw reserved14. Gets or sets an unsigned integer that specifies the count of 64-bit values corresponding to fibRgFcLcbBlob that follow. This MUST be one of the following values, depending on the value of nFib. Value of nFib cbRgFcLcb 0x00C1 0x005D 0x00D9 0x006C 0x0101 0x0088 0x010C 0x00A4 0x0112 0x00B7 The cb rg fc LCB. the fib rg fc LCB97 fc STSHF original. Gets or sets This value is undefined and MUST be ignored. The fib rg fc LCB97 fc STSHF original. Gets or sets This value is undefined and MUST be ignored. The fib rg fc LCB97 LCB STSHF original. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An STSH that specifies the style sheet for this document begins at this offset. The fc STSHF. Gets or sets An unsigned integer that specifies the size, in bytes, of the STSH that begins at offset fcStshf in the Table Stream. This MUST be a nonzero value. The LCB STSHF. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcffndRef begins at this offset and specifies the locations of footnote references in the Main Document, and whether those references use auto-numbering or custom symbols. If lcbPlcffndRef is zero, fcPlcffndRef is undefined and MUST be ignored. The fc PLCFFND reference. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcffndRef that begins at offset fcPlcffndRef in the Table Stream. The LCB PLCFFND reference. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcffndTxt begins at this offset and specifies the locations of each block of footnote text in the Footnote Document. If lcbPlcffndTxt is zero, fcPlcffndTxt is undefined and MUST be ignored. The fc PLCFFND text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcffndTxt that begins at offset fcPlcffndTxt in the Table Stream. The LCB PLCFFND text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfandRef begins at this offset and specifies the dates, user initials, and locations of comments in the Main Document. If lcbPlcfandRef is zero, fcPlcfandRef is undefined and MUST be ignored. The fc plcfand reference. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfandRef at offset fcPlcfandRef in the Table Stream. The LCB plcfand reference. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfandTxt begins at this offset and specifies the locations of comment text ranges in the Comment Document. If lcbPlcfandTxt is zero, fcPlcfandTxt is undefined, and MUST be ignored. The fc plcfand text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfandTxt at offset fcPlcfandTxt in the Table Stream. The LCB plcfand text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfSed begins at this offset and specifies the locations of property lists for each section in the Main Document. If lcbPlcfSed is zero, fcPlcfSed is undefined and MUST be ignored. The LCB plcfand text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfSed that begins at offset fcPlcfSed in the Table Stream. The LCB PLCF sed. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLC pad. Gets or sets This value MUST be zero, and MUST be ignored. The fc PLC pad. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plc at offset fcPlcfPhe in the Table Stream. The LCB PLCF phe. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbfGlsy that contains information about the AutoText items that are defined in this document begins at this offset. The fc STTBF glsy. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfGlsy at offset fcSttbfGlsy in the Table Stream. If base.fGlsy of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB STTBF glsy. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfGlsy that contains information about the AutoText items that are defined in this document begins at this offset. The fc PLCF glsy. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfGlsy at offset fcPlcfGlsy in the Table Stream. If base.fGlsy of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB PLCF glsy. Gets or sets An unsigned integer that specifies the offset in the Table Stream where a Plcfhdd begins. The Plcfhdd specifies the locations of each block of header/footer text in the WordDocument Stream. The fc PLCF HDD. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plcfhdd at offset fcPlcfHdd in the Table Stream. If there is no Plcfhdd, this value MUST be zero. A Plcfhdd MUST exist if FibRgLw97.ccpHdd indicates that there are characters in the Header Document The LCB PLCF HDD. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBteChpx begins at the offset. fcPlcfBteChpx MUST be greater than zero, and MUST be a valid offset in the Table Stream. The fc PLCF bte CHPX. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBteChpx at offset fcPlcfBteChpx in the Table Stream. lcbPlcfBteChpx MUST be greater than zero. The LCB PLCF bte CHPX. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBtePapx begins at the offset. fcPlcfBtePapx MUST be greater than zero, and MUST be a valid offset in the Table Stream. The fc PLCF bte papx. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBtePapx at offset fcPlcfBtePapx in the Table Stream. lcbPlcfBteChpx MUST be greater than zero. The LCB PLCF bte papx. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLCF sea. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF sea. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfFfn begins at this offset. This table specifies the fonts that are used in the document. If lcbSttbfFfn is 0, fcSttbfFfn is undefined and MUST be ignored. The fc STTBF FFN. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfFfn at offset fcSttbfFfn in the Table Stream. The LCB STTBF FFN. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Main Document. All CPs in this PlcFld MUST be greater than or equal to 0 and less than or equal to FibRgLw97.ccpText. If lcbPlcfFldMom is zero, fcPlcfFldMom is undefined and MUST be ignored. The fc PLCF field mom. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldMom in the Table Stream. The LCB PLCF field mom. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Header Document. All CPs in this PlcFld are relative to the starting position of the Header Document. The fc PLCF field HDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldHdr in the Table Stream. The LCB PLCF field HDR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Footnote Document. All CPs in this PlcFld are relative to the starting position of the Footnote Document. The fc PLCF field FTN. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldFtn in the Table Stream. The LCB PLCF field FTN. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Comment Document. All CPs in this PlcFld are relative to the starting position of the Comment Document. The fc PLCF field atn. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldAtn in the Table Stream. The LCB PLCF field atn. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLCF field MCR. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF field MCR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfBkmk that contains the names of the bookmarks (1) in the document begins at this offset. The fc STTBF BKMK. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfBkmk at offset fcSttbfBkmk. The LCB STTBF BKMK. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkf that contains information about the standard bookmarks (1) in the document begins at this offset. If lcbPlcfBkf is zero, fcPlcfBkf is undefined and MUST be ignored. The fc PLCF BKF. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkf at offset fcPlcfBkf. The LCB PLCF BKF. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkl that contains information about the standard bookmarks (1) in the document begins at this offset. The fc PLCF BKL. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkl at offset fcPlcfBkl. The LCB PLCF BKL. Gets or sets An unsigned integer that specifies the offset in the Table Stream of a Tcg that specifies command-related customizations. If lcbCmds is zero, fcCmds is undefined and MUST be ignored. The fc CMDS. Gets or sets An unsigned integer that specifies the size, in bytes, of the Tcg at offset fcCmds. The LCB CMDS. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused1. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused1. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc STTBF MCR. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF MCR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. The PrDrvr, which contains printer driver information (the names of drivers, port, and so on), begins at this offset. The fc pr DRVR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PrDrvr at offset fcPrDrvr. The LCB pr DRVR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. The PrEnvPort that is the print environment in portrait mode begins at this offset. If lcbPrEnvPort is zero, fcPrEnvPort is undefined and MUST be ignored. The fc pr env port. Gets or sets An unsigned integer that specifies the size, in bytes, of the PrEnvPort at offset fcPrEnvPort. The LCB pr env port. Gets or sets An unsigned integer that specifies an offset in the Table Stream. The PrEnvLand that is the print environment in landscape mode begins at this offset. If lcbPrEnvLand is zero, fcPrEnvLand is undefined and MUST be ignored. The fc pr env land. Gets or sets An unsigned integer that specifies the size, in bytes, of the PrEnvLand at offset fcPrEnvLand. The LCB pr env land. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Selsf begins at this offset and specifies the last selection that was made in the Main Document. If lcbWss is zero, fcWss is undefined and MUST be ignored. The fc WSS. Gets or sets An unsigned integer that specifies the size, in bytes, of the Selsf at offset fcWss. The LCB WSS. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Dop begins at this offset. The fc dop. Gets or sets An unsigned integer that specifies the size, in bytes, of the Dopat fcDop. This value MUST NOT be zero. The LCB dop. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfAssoc that contains strings that are associated with the document begins at this offset. The fc STTBF assoc. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfAssoc at offset fc SttbfAssoc. This value MUST NOT be zero. The LCB STTBF assoc. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Clx begins at this offset. The fc CLX. Gets or sets An unsigned integer that specifies the size, in bytes, of the Clx at offset fcClx in the Table Stream. This value MUST be greater than zero. The LCB CLX. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc PLCF PGD FTN. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF PGD FTN. Gets or sets This value is undefined and MUST be ignored. The fib rg fc LCB97 fc autosave source. Gets or sets This value MUST be zero and MUST be ignored. The LCB autosave source. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An array of XSTs begins at this offset. The value of cch for all XSTs in this array MUST be less than 56. The number of entries in this array is limited to 0x7FFF. The fc GRP XST atn owners. Gets or sets An unsigned integer that specifies the size, in bytes, of the XST array at offset fcGrpXstAtnOwners in the Table Stream. The LCB GRP XST atn owners. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfAtnBkmk that contains information about the annotation bookmarks in the document begins at this offset. The fc STTBF atn BKMK. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfAtnBkmk at offset fcSttbfAtnBkmk. The LCB STTBF atn BKMK. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused2. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused2. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused3. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused3. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfSpa begins at this offset. The PlcfSpa contains shape information for the Main Document. The fc PLC spa mom. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfSpa at offset fcPlcSpaMom. The LCB PLC spa mom. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfSpa begins at this offset. The PlcfSpa contains shape information for the Header Document. The fc PLC spa HDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfSpa at the offset fcPlcSpaHdr. The LCB PLC spa HDR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkf that contains information about annotation bookmarks in the document begins at this offset. If lcbPlcfAtnBkf is zero, fcPlcfAtnBkf is undefined and MUST be ignored. The LCB PLC spa HDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkf at offset fcPlcfAtnBkf. The LCB PLCF atn BKF. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkl that contains information about annotation bookmarks in the document begins at this offset. If lcbPlcfAtnBkl is zero, then fcPlcfAtnBkl is undefined and MUST be ignored. The fc PLCF atn BKL. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfBkl at offset fcPlcfAtnBkl. The LCB PLCF atn BKL. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Pms, which contains the current state of a print merge operation, begins at this offset. If lcbPms is zero, fcPms is undefined and MUST be ignored. The fc PMS. Gets or sets An unsigned integer which specifies the size, in bytes, of the Pms at offset fcPms. The LCB PMS. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc form field STTBS. Gets or sets This value MUST be zero, and MUST be ignored. The LCB form field STTBS. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfendRef that begins at this offset specifies the locations of endnote references in the Main Document and whether those references use auto-numbering or custom symbols. The fc plcfend reference. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfendRef that begins at offset fcPlcfendRef in the Table Stream. The LCB plcfend reference. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfendTxt begins at this offset and specifies the locations of each block of endnote text in the Endnote Document. If lcbPlcfendTxt is zero, fcPlcfendTxt is undefined and MUST be ignored. The fc plcfend text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfendTxt that begins at offset fcPlcfendTxt in the Table Stream. The LCB plcfend text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Endnote Document. The fc PLCF field edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldEdn in the Table Stream. The LCB PLCF field edn. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc unused4. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused4. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An OfficeArtContent that contains information about the drawings in the document begins at this offset. The fc DGG information. Gets or sets An unsigned integer that specifies the size, in bytes, of the OfficeArtContent at the offset fcDggInfo. If lcbDggInfo is zero, there MUST NOT be any drawings in the document. The LCB DGG information. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfRMark that contains the names of authors who have added revision marks or comments to the document begins at this offset. The fc STTBF r mark. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfRMark at the offset fcSttbfRMark. The LCB STTBF r mark. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfCaption that contains information about the captions that are defined in this document begins at this offset. The fc STTBF caption. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfCaption at offset fcSttbfCaption in the Table Stream. If base.fDot of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB STTBF caption. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbfAutoCaption that contains information about the AutoCaption strings defined in this document begins at this offset. The fc STTBF automatic caption. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfAutoCaption at offset fcSttbfAutoCaption in the Table Stream. If base.fDot of the Fib that contains this FibRgFcLcb97 is zero, this MUST be zero. The LCB STTBF automatic caption. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfWKB that contains information about all master documents and subdocuments begins at this offset. The fc PLCF WKB. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfWKB at offset fcPlcfWkb in the Table Stream. If lcbPlcfWkb is zero, fcPlcfWkb is undefined and MUST be ignored. The LCB PLCF WKB. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Plcfspl, which specifies the state of the spell checker for each text range, begins at this offset. If lcbPlcfSpl is zero, then fcPlcfSpl is undefined and MUST be ignored. The fc PLCF SPL. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plcfspl that begins at offset fcPlcfSpl in the Table Stream. The LCB PLCF SPL. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcftxbxTxt begins at this offset and specifies which ranges of text are contained in which textboxes. If lcbPlcftxbxTxt is zero, fcPlcftxbxTxt is undefined and MUST be ignored. The fc PLCFTXBX text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcftxbxTxt that begins at offset fcPlcftxbxTxt in the Table Stream. The LCB PLCFTXBX text. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcFld begins at this offset and specifies the locations of field characters in the Textbox Document. All CPs in this PlcFld are relative to the starting position of the Textbox Document. The fc PLCF field TXBX. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcfFldTxbx in the Table Stream. The LCB PLCF field TXBX. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfHdrtxbxTxt begins at this offset and specifies which ranges of text are contained in which header textboxes. The fc PLCF HDRTXBX text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfHdrtxbxTxt that begins at offset fcPlcfHdrtxbxTxt in the Table Stream. The LCB PLCF HDRTXBX text. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcffldHdrTxbx in the Table Stream. The fc PLCFFLD HDR TXBX. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcFld at offset fcPlcffldHdrTxbx in the Table Stream. The LCB PLCFFLD HDR TXBX. Gets or sets An unsigned integer that specifies an offset into the Table Stream. An StwUser that specifies the user-defined variables and VBAdigital signature (2), as specified by [MS-OSHARED] section 2.3.2, begins at this offset. The fc STW user. Gets or sets An unsigned integer that specifies the size, in bytes, of the StwUser at offset fcStwUser. The LCB STW user. Gets or sets An unsigned integer that specifies an offset into the Table Stream. A SttbTtmbd begins at this offset and specifies information about the TrueType fonts that are embedded in the document. If lcbSttbTtmbd is zero, fcSttbTtmbd is undefined and MUST be ignored. The fc STTB TTMBD. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbTtmbd at offset fcSttbTtmbd. The LCB STTB TTMBD. Gets or sets An unsigned integer that specifies the size, in bytes, of the RgCdb at offset fcCookieData in the Table Stream. The LCB cookie data. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated document page layout cache at offset fcPgdMotherOldOld in the Table Stream. The LCB PGD mother old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMotherOldOld in the Table Stream. The LCB BKD mother old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated footnote layout cache at offset fcPgdFtnOldOld in the Table Stream. The LCB PGD FTN old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated footnote text flow break cache at offset fcBkdFtnOldOld in the Table Stream. The LCB BKD FTN old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote layout cache at offset fcPgdEdnOldOld in the Table Stream. The LCB PGD edn old old. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote text flow break cache at offset fcBkdEdnOldOld in the Table Stream. The LCB BKD edn old old. Gets or sets this value is undefined and MUST be ignored. The fib rg fc LCB97 fc STTBF intl field. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF intl field. Gets or sets An unsigned integer that specifies the size, in bytes, of the RouteSlip at offset fcRouteSlip in the Table Stream. The LCB route slip. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbFnm that contains information about the external files that are referenced by this document begins at this offset. If lcbSttbFnm is zero, fcSttbFnm is undefined and MUST be ignored. The fc STTB FNM. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbFnm at the offset fcSttbFnm. The LCB STTB FNM. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlfLst that contains list formatting information begins at this offset. An array of LVLs is appended to the PlfLst. The fc PLF LST. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlfLst at the offset fcPlfLst. This does not include the size of the array of LVLs that are appended to the PlfLst. The LCB PLF LST. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlfLfo that contains list formatting override information begins at this offset. If lcbPlfLfo is zero, fcPlfLfo is undefined and MUST be ignored. The fc PLF lfo. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlfLfo at the offset fcPlfLfo. The LCB PLF lfo. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcftxbxBkd begins at this offset and specifies which ranges of text go inside which textboxes. The fc PLCF TXBX BKD. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcftxbxBkd that begins at offset fcPlcfTxbxBkd in the Table Stream. The LCB PLCF TXBX BKD. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfTxbxHdrBkd begins at this offset and specifies which ranges of text are contained inside which header textboxes. The fc PLCF TXBX HDR BKD. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfTxbxHdrBkd that begins at offset fcPlcfTxbxHdrBkd in the Table Stream. The LCB PLCF TXBX HDR BKD. Gets or sets An unsigned integer. If this is nonzero, version-specific undo information exists at offset fcDocUndoWord9 in the WordDocument Stream. The LCB document undo word9. Gets or sets An unsigned integer that specifies the size, in bytes, of the version-specific undo information at offset fcRgbUse in the WordDocument Stream. The LCB RGB use. Gets or sets An unsigned integer that specifies the size, in bytes, of the version-specific undo information at offset fcUsp in the WordDocument Stream. The LCB usp. Gets or sets An unsigned integer that specifies the size, in bytes, of the version-specific undo informatio at offset fcUskf in the Table Stream. The LCB uskf. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plc at offset fcPlcupcRgbUse in the Table Stream. The LCB plcupc RGB use. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plc at offset fcPlcupcUsp in the Table Stream. The LCB plcupc usp. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbGlsyStyle, which contains information about the styles that are used by the AutoText items which are defined in this document, begins at this offset. The fc STTB glsy style. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbGlsyStyle at offset fcSttbGlsyStyle in the Table Stream. If base.fGlsy of the Fib that contains this FibRgFcLcb97 is zero, this value MUST be zero. The LCB STTB glsy style. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlfGosl begins at the offset. If lcbPlgosl is zero, fcPlgosl is undefined and MUST be ignored. The fc plgosl. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlfGosl at offset fcPlgosl in the Table Stream. The LCB plgosl. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A RgxOcxInfo that specifies information about the OLE controls in the document begins at this offset. The fc plcocx. Gets or sets An unsigned integer that specifies the size, in bytes, of the RgxOcxInfo at the offset fcPlcocx. The LCB plcocx. Gets or sets The low-order part of a FILETIME structure, as specified by [MS-DTYP], that specifies when the document was last saved. The dw low date time. Gets or sets The high-order part of a FILETIME structure, as specified by [MS-DTYP], that specifies when the document was last saved. The dw high date time. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfAsumy begins at the offset. If lcbPlcfAsumy is zero, fcPlcfAsumy is undefined and MUST be ignored. The fc PLCF asumy. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfAsumy at offset fcPlcfAsumy in the Table Stream. The LCB PLCF asumy. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Plcfgram, which specifies the state of the grammar checker for each text range, begins at this offset. If lcbPlcfGram is zero, then fcPlcfGram is undefined and MUST be ignored. The fc PLCF gram. Gets or sets An unsigned integer that specifies the size, in bytes, of the Plcfgram that begins at offset fcPlcfGram in the Table Stream. The LCB PLCF gram. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbListNames, which specifies the LISTNUM field names of the lists in the document, begins at this offset. The fc STTB list names. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbListNames at the offset fcSttbListNames. The LCB STTB list names. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated, version-specific undo information at offset fcSttbfUssr in the Table Stream. The LCB STTBF ussr. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcfTch at offset fcPlcfTch. The LCB PLCF TCH. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An RmdThreading that specifies the data concerning the e-mail messages and their authors in this document begins at this offset. The fc RMD threading. Gets or sets An unsigned integer that specifies the size, in bytes, of the RmdThreading at the offset fcRmdThreading. This value MUST NOT be zero. The LCB RMD threading. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A double-byte character Unicode string that specifies the message identifier of the document begins at this offset. This value MUST be ignored. The fc mid. Gets or sets An unsigned integer that specifies the size, in bytes, of the double-byte character Unicode string at offset fcMid. This value MUST be ignored. The LCB mid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SttbRgtplc that specifies the styles of lists in the document begins at this offset. If lcbSttbRgtplc is zero, fcSttbRgtplc is undefined and MUST be ignored. The fc STTB RGTPLC. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbRgtplc at the offset fcSttbRgtplc. The LCB STTB RGTPLC. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An MsoEnvelopeCLSID, which specifies the envelope data as specified by [MS-OSHARED] section 2.3.8.1, begins at this offset. If lcbMsoEnvelope is zero, fcMsoEnvelope is undefined and MUST be ignored. The fc mso envelope. Gets or sets An unsigned integer that specifies the size, in bytes, of the MsoEnvelopeCLSID at the offset fcMsoEnvelope. The LCB mso envelope. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A Plcflad begins at this offset and specifies the language auto-detect state of each text range. If lcbPlcfLad is zero, fcPlcfLad is undefined and MUST be ignored. The fc PLCF lad. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcflad that begins at offset fcPlcfLad in the Table Stream. The LCB PLCF lad. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A variable-length array with elements of type Dofrh begins at that offset. The elements of this array are records that support the frame set and list style features. If lcbRgDofr is zero, fcRgDofr is undefined and MUST be ignored. The fc rg dofr. Gets or sets an unsigned integer that specifies the size, in bytes, of the array that begins at offset fcRgDofr in the Table Stream. The LCB rg dofr. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlfCosl begins at the offset. If lcbPlcosl is zero, fcPlcosl is undefined and MUST be ignored. The fc plcosl. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlfCosl at offset fcPlcosl in the Table Stream. The LCB plcosl. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfcookieOld at offset fcPlcfcookieOld in the Table Stream. The LCB PLCF cookie old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document page layout cache at offset fcPgdMotherOld in the Table Stream. The LCB PGD mother old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMotherOld in the Table Stream. The LCB BKD mother old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote layout cache at offset fcPgdFtnOld in the Table Stream. The LCB PGD FTN old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote text flow break cache at offset fcBkdFtnOld in the Table Stream. The LCB BKD FTN old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated endnote layout cache at offset fcPgdEdnOld in the Table Stream. The LCB PGD edn old. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated endnote text flow break cache at offset fcBkdEdnOld in the Table Stream. The LCB BKD edn old. Gets or sets the fc unused1. This value is undefined and MUST be ignored. The fc unused1. Gets or sets the LCB unused1.This value MUST be zero, and MUST be ignored The LCB unused1. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PGPArray begins at this offset. If lcbPlcfPgp is 0, fcPlcfPgp is undefined and MUST be ignored. The fc PLCF PGP. Gets or sets an unsigned integer that specifies the size, in bytes, of the PGPArray that is stored at offset fcPlcfPgp. The LCB PLCF PGP. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A Plcfuim begins at this offset. If lcbPlcfuim is zero, fcPlcfuim is undefined and MUST be ignored. The fc plcfuim. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcfuim at offset fcPlcfuim. The LCB plcfuim. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlfguidUim begins at this offset. If lcbPlfguidUim is zero, fcPlfguidUim is undefined and MUST be ignored. The fc plfguid uim. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlfguidUim at offset fcPlfguidUim. The LCB plfguid uim. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An AtrdExtra begins at this offset. If lcbAtrdExtra is zero, fcAtrdExtra is undefined and MUST be ignored. The fc atrd extra. Gets or sets an unsigned integer that specifies the size, in bytes, of the AtrdExtra at offset fcAtrdExtra in the Table Stream. The LCB atrd extra. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PLRSID begins at this offset. If lcbPlrsid is zero, fcPlrsid is undefined and MUST be ignored. The fc plrsid. Gets or sets an unsigned integer that specifies the size, in bytes, of the PLRSID at offset fcPlrsid in the Table Stream. The LCB plrsid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkFactoid containing information about smart tag bookmarks in the document begins at this offset. If lcbSttbfBkmkFactoid is zero, fcSttbfBkmkFactoid is undefined and MUST be ignored. The fc STTBF BKMK factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkFactoid at offset fcSttbfBkmkFactoid. The LCB STTBF BKMK factoid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkfd that contains information about the smart tag bookmarks in the document begins at this offset. If lcbPlcfBkfFactoid is zero, fcPlcfBkfFactoid is undefined and MUST be ignored. The fc PLCF BKF factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkfd at offset fcPlcfBkfFactoid. The LCB PLCF BKF factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcfcookie at offset fcPlcfcookie in the Table Stream. The LCB plcfcookie. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A Plcfbkld that contains information about the smart tag bookmarks in the document begins at this offset. If lcbPlcfBklFactoid is zero, fcPlcfBklFactoid is undefined and MUST be ignored. The fc PLCF BKL factoid. Gets or sets an unsigned integer that specifies the size, in bytes, of the Plcfbkld at offset fcPlcfBklFactoid. The LCB PLCF BKL factoid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A SmartTagData begins at this offset and specifies information about the smart tag recognizers that are used in this document. If lcbFactoidData is zero, fcFactoidData is undefined and MUST be ignored. The fc factoid data. Gets or sets an unsigned integer that specifies the size, in bytes, of the SmartTagData at offset fcFactoidData in the Table Stream. The LCB factoid data. Gets or sets An unsigned integer. If this value is nonzero, version-specific undo information exists at offset fcDocUndo in the WordDocument Stream. The LCB document undo. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkFcc that contains information about the format consistency-checker bookmarks in the document begins at this offset. If lcbSttbfBkmkFcc is zero, fcSttbfBkmkFcc is undefined and MUST be ignored. The fc STTBF BKMK FCC. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkFcc at offset fcSttbfBkmkFcc. The LCB STTBF BKMK FCC. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcfBkfd that contains information about format consistency-checker bookmarks in the document begins at this offset. If lcbPlcfBkfFcc is zero, fcPlcfBkfFcc is undefined and MUST be ignored. The fc PLCF BKF FCC. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkfd at offset fcPlcfBkfFcc. The LCB PLCF BKF FCC. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcfBkld that contains information about the format consistency-checker bookmarks in the document begins at this offset. If lcbPlcfBklFcc is zero, fcPlcfBklFcc is undefined and MUST be ignored. The fc PLCF BKL FCC. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkld at offset fcPlcfBklFcc. The LCB PLCF BKL FCC. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkBPRepairs that contains information about the repair bookmarks in the document begins at this offset. If lcbSttbfBkmkBPRepairs is zero, fcSttbfBkmkBPRepairs is undefined and MUST be ignored. The fc STTBFBKMK bp repairs. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkBPRepairs at offset fcSttbfBkmkBPRepairs. The LCB STTBFBKMK bp repairs. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcfBkf that contains information about the repair bookmarks in the document begins at this offset. If lcbPlcfBkfBPRepairs is zero, fcPlcfBkfBPRepairs is undefined and MUST be ignored. The fc PLCFBKF bp repairs. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkf at offset fcPlcfbkfBPRepairs. The LCB PLCFBKF bp repairs. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcfBkl that contains information about the repair bookmarks in the document begins at this offset. If lcbPlcfBklBPRepairs is zero, fcPlcfBklBPRepairs is undefined and MUST be ignored. The fc PLCFBKL bp repairs. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcfBkl at offset fcPlcfBklBPRepairs. The LCB PLCFBKL bp repairs. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A new Pms, which contains the current state of a print merge operation, begins at this offset. If lcbPmsNew is zero, fcPmsNew is undefined and MUST be ignored. The fc PMS new. Gets or sets an unsigned integer which specifies the size, in bytes, of the Pms at offset fcPmsNew. The LCB PMS new. Gets or sets an unsigned integer that specifies an offset in the Table Stream. Office Data Source Object (ODSO) data that is used to perform mail merge begins at this offset. The data is stored in an array of ODSOPropertyBase items. The ODSOPropertyBase items are of variable size and are stored contiguously. The complete set of properties that are contained in the array is determined by reading each ODSOPropertyBase, until a total of lcbODSO bytes of data are read. If lcbODSO is zero, fcODSO is undefined and MUST be ignored. The fc odso. Gets or sets an unsigned integer that specifies the size, in bytes, of the Office Data Source Object data at offset fcODSO in the Table Stream. The LCB odso. Gets or sets the fc unused2.This value is undefined and MUST be ignored. The fc unused2. Gets or sets the LCB unused2.This value MUST be zero, and MUST be ignored. The LCB unused2. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A Plcffactoid, which specifies the smart tag recognizer state of each text range, begins at this offset. If lcbPlcffactoid is zero, fcPlcffactoid is undefined and MUST be ignored. The fc plcffactoid. Gets or sets an unsigned integer that specifies the size, in bytes of the Plcffactoid that begins at offset fcPlcffactoid in the Table Stream. The LCB plcffactoid. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An Hplxsdr structure begins at this offset. This structure specifies information about XML schema definition references. The fc HPLXSDR. Gets or sets An unsigned integer that specifies the size, in bytes, of the Hplxsdr structure at the offset fcHplxsdr in the Table Stream. If lcbHplxsdr is zero, then fcHplxsdr is undefined and MUST be ignored. The LCB HPLXSDR. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkSdt that contains information about the structured document tag bookmarks in the document begins at this offset. If lcbSttbfBkmkSdt is zero, then fcSttbfBkmkSdt is undefined and MUST be ignored. The fc STTBF BKMK SDT. Gets or sets An unsigned integer that specifies the size, in bytes, of the SttbfBkmkSdt at offset fcSttbfBkmkSdt. The LCB STTBF BKMK SDT. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBkfd that contains information about the structured document tag bookmarks in the document begins at this offset. If lcbPlcfBkfSdt is zero, fcPlcfBkfSdt is undefined and MUST be ignored. The fc PLCF BKF SDT. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBkfd at offset fcPlcfBkfSdt. The LCB PLCF BKF SDT. Gets or sets An unsigned integer that specifies an offset in the Table Stream. A PlcBkld that contains information about the structured document tag bookmarks in the document begins at this offset. If lcbPlcfBklSdt is zero, fcPlcfBklSdt is undefined and MUST be ignored. The fc PLCF BKL SDT. Gets or sets An unsigned integer that specifies the size, in bytes, of the PlcBkld at offset fcPlcfBklSdt. The LCB PLCF BKL SDT. Gets or sets An unsigned integer that specifies an offset in the Table Stream. An array of 16-bit Unicode characters, which specifies the full path and file name of the XML Stylesheet to apply when saving this document in XML format, begins at this offset. If lcbCustomXForm is zero, fcCustomXForm is undefined and MUST be ignored. The fc custom x form. Gets or sets an unsigned integer that specifies the size, in bytes, of the array at offset fcCustomXForm in the Table Stream. This value MUST be less than or equal to 4168 and MUST be evenly divisible by two. The LCB custom x form. Gets or sets an unsigned integer that specifies an offset in the Table Stream. An SttbfBkmkProt that contains information about range-level protection bookmarks in the document begins at this offset. If lcbSttbfBkmkProt is zero, fcSttbfBkmkProt is undefined and MUST be ignored. The fc STTBF BKMK prot. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbfBkmkProt at offset fcSttbfBkmkProt. The LCB STTBF BKMK prot. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcBkf that contains information about range-level protection bookmarks in the document begins at this offset. If lcbPlcfBkfProt is zero, then fcPlcfBkfProt is undefined and MUST be ignored. The fc PLCF BKF prot. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcBkf at offset fcPlcfBkfProt. The LCB PLCF BKF prot. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A PlcBkl containing information about range-level protection bookmarks in the document begins at this offset. If lcbPlcfBklProt is zero, then fcPlcfBklProt is undefined and MUST be ignored. The fc PLCF BKL prot. Gets or sets an unsigned integer that specifies the size, in bytes, of the PlcBkl at offset fcPlcfBklProt. The LCB PLCF BKL prot. Gets or sets an unsigned integer that specifies an offset in the Table Stream. A SttbProtUser that specifies the usernames that are used for range-level protection begins at this offset. The fc STTB prot user. Gets or sets an unsigned integer that specifies the size, in bytes, of the SttbProtUser at the offset fcSttbProtUser. The LCB STTB prot user. Gets or sets this value MUST be zero, and MUST be ignored. The fc unused. Gets or sets this value MUST be zero, and MUST be ignored. The LCB unused. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document page layout cache at offset fcPgdMother in the Table Stream. The fc PGD mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMother in the Table Stream. The fc BKD mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document text flow break cache at offset fcBkdMother in the Table Stream. The LCB BKD mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated document author filter cache at offset fcAfdMother in the Table Stream. The LCB afd mother. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote layout cache at offset fcPgdFtn in the Table Stream. The LCB PGD FTN. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated footnote text flow break cache at offset fcBkdFtn in the Table Stream. The LCB BKD FTN. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated footnote author filter cache at offset fcAfdFtn in the Table Stream. The LCB afd FTN. Gets or sets an unsigned integer that specifies the size, in bytes, of the deprecated endnote layout cache at offset fcPgdEdn in the Table Stream. The LCB PGD edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote text flow break cache at offset fcBkdEdn in the Table Stream. The LCB BKD edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated endnote author filter cache at offset fcAfdEdn in the Table Stream. The LCB afd edn. Gets or sets An unsigned integer that specifies the size, in bytes, of the deprecated AFD structure at offset fcAfd in the Table Stream. The LCB afd. Gets or sets This value is undefined and MUST be ignored. The fc PLCFMTHD. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCFMTHD. Gets or sets This value is undefined and MUST be ignored. The fc STTBF BKMK move from. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF BKMK move from. Gets or sets This value is undefined and MUST be ignored The fc PLCF BKF move from. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKF move from. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKL move from. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKL move from. Gets or sets This value is undefined and MUST be ignored. The fc STTBF BKMK move to. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF BKMK move to. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKF move to. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKF move to. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKL move to. Gets or sets This value MUST be zero, and MUST be ignored. The LCB PLCF BKL move to. Gets or sets This value is undefined and MUST be ignored. The fc unused1. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused1. Gets or sets This value is undefined and MUST be ignored The fc unused2. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused2. Gets or sets This value is undefined and MUST be ignored. The fc unused3. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused3. Gets or sets This value is undefined and MUST be ignored. The fc STTBF BKMK arto. Gets or sets This value MUST be zero, and MUST be ignored. The LCB STTBF BKMK arto. Gets or sets This value is undefined and MUST be ignored. The fc PLCF BKF arto. Gets or sets This value MUST be zero, and MUST be ignored The LCB PLCF BKF arto. Gets or sets Undefined and MUST be ignored. The fc PLCF BKL arto. Gets or sets MUST be zero, and MUST be ignored. The LCB PLCF BKL arto. Gets or sets This value is undefined and MUST be ignored. The fc arto data. Gets or sets This value MUST be zero, and MUST be ignored. The LCB arto data. Gets or sets This value is undefined and MUST be ignored. The fc unused4. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused4. Gets or sets This value is undefined and MUST be ignored. The fc unused5. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused5. Gets or sets This value is undefined and MUST be ignored. The fc unused6. Gets or sets This value MUST be zero, and MUST be ignored. The LCB unused6. Gets or sets This value is undefined and MUST be ignored. The fc oss theme. Gets or sets This value is undefined and MUST be ignored. The fc color scheme mapping. Gets or sets an unsigned integer that specifies the count of 16-bit values corresponding to fibRgCswNew that follow. This MUST be one of the following values, depending on the value of nFib. Value of nFib cswNew 0x00C1 0 0x00D9 0x0002 0x0101 0x0002 0x010C 0x0002 0x0112 0x0005 The CSW new. Gets or sets an unsigned integer that specifies the version number of the file format that is used. This value MUST be one of the following. 0x00D9 0x0101 0x010C 0x0112 The n fib new. Gets or sets an unsigned integer that specifies the number of times that this document was incrementally saved since the last full save. This value MUST be between 0 and 0x000F, inclusively. The c quick saves new. Gets or sets the lid theme other. This value is undefined and MUST be ignored. The lid theme other. Gets or sets the lid theme far east. This value is undefined and MUST be ignored. The lid theme fe. Gets or sets the lid theme complex script. This value is undefined and MUST be ignored. The lid theme cs. Gets the size of the encoding character. The size of the encoding character. Gets or sets the encoding. The encoding. Initializes a new instance of the class. Initializes a new instance of the class. The fib. The stream. The header/footer char position table. Writes the specified fib. The fib. The stream. Makes the correction. The header/footer char pos table. The fib. The stream. Makes the header correction. The header/footer char pos table. The fib. Shifts the char positions in grammar/spelling array. if it is grammar, set to true. The start header CP. The start shift CP. The shift value. Sets the header/footer separators pos. The value. The start index. The end index. if it is grammar, set to true. Gets the index of position in grammar/spelling aray. if it is grammar array, set to true. The char pos. Shifts the positions. The start index. The shift value. if it is grammar array, set to true. Updates the grammar/spelling data. The stream. The fib. Closes this instance. Gets or sets the PLCFSPL data. The PLCFSPL data. Gets or sets the plcfgram data. The plcfgram data. Common interface for main IWordReader interface and IWordSubdocumentReader interface. Read next elementary text string*. * - "elementary text string" - string, in which all symbols have the identical character/paragraph/section properties. Returns interface for reading images from word file. Return object of ShapeClass. Gets document stylesheet. Gets current style index. Gets current read text chunk type. Gets current read text chunk. Gets character properties for current text chunk. Gets paragraph properties for current text chunk. Gets current text position in document Gets bookmarks. Collection of each row in a table maximum grid value Collection of each table's maximum row width Interface for forward-only reading data from word file. Gets subdocument reader specified type. Reads document header. Reads document end. Returns Bookmark array from word file Gets current section number. Gets section properties for current text chunk. Gets built-in Document properties Gets custom Document properties Interface for reading data from subdocuments as header/footer, annotations, footnotes, endnotes, etc. Resets subdocument reader state, reading process restarted. Gets subdocument reader type. Gets current type of header / footer. ( if Type != WordSubdocument.HeaderFooter returns HeaderType.InvalidValue ) Summary description for IWordWriter. Writes text to word file Writes marker to word file Insert image in the document Insert image in the document Insert textbox shape to the document Textbox shape's properties Inserts the form field. The fieldcode. The form field. Insert start of the bookmark in the document Insert end of the bookmark in the document Inserts the watermark. The watermark. The initialize converter. Maximal width. Writes text to word file Inserts the field index entry. The field code. Gets/sets stylesheet. Gets/sets index of current style. Gets or sets the CHPX The CHPX. Gets or sets the break CHPX. The break CHPX. Gets or sets a value indicating whether [break CHPX stick properties]. true if [break CHPX stick properties]; otherwise, false. Gets or sets a value indicating whether [CHPX stick properties]. true if [CHPX stick properties]; otherwise, false. Summary description for IWordWriter. Writes document header to word file. Writes document end to word file. Returns interface for writing subdocument. Inserts PageBreak into the document. Gets/sets document properties. Gets/sets section properties. Gets Built-in Document Properties. Gets Custom Document Properties. Summary description for IWordSubdocumentWriter. Writes end of the document. Gets/sets type of subdocument Class that encapsulates pointer to unmanaged memory block and used to convert managed memory block (byte array) into managed object. Default memory block size. Minimum memory block size. Maximum memory block size. Exception message for OutOfMemoryException. Pointer to the memory block. Size of the memory block. Instance of memory converter. Initializes a new instance of the class. Initializes a new instance of the class. Size of the i memory block. Ensures that memory block will be able to accept iDesiredSize bytes. Bytes that memory block should be able to accept. If iDesiredSize is larger than maximum possible memory block size. When was unable to allocate desired memory block size. Copies data from arrData into internal memory block. Data to copy. Copies data from arrData into internal memory block starting from specified index to the end of the array. Data to copy. Start index of the data to copy. Copies specified number of bytes from arrData into internal memory block starting from specified index to the end of the array. Data to copy. Start index of the data to copy. Number of bytes to copy. Copies data from internal memory block into object. Destination object. Copies data from byte array into specified object. Data to copy. Destination object. Copies data from byte array into specified object. Data to copy. Start index of the data to copy. Destination object. Copies data from byte array into specified object. Data to copy. Start index of the data to copy. Number of bytes to copy. Destination object. Copies data from source object into array of bytes. Source object to copy. Destination array. Start index in the destination array. Length of the data to copy. Close this instance. Gets the instance. The instance. This class used for implementing Advanced Encryption Standard algorithm. Initializes a new instance of the Aes class. Key size. Key bytes Initializes this instance. Encipher 16 bit input 16 bit Input Output value Decipher 16-bit input Sets the nb nk nr. Size of the key. Builds the sbox. Builds the inv sbox. Builds the rcon. Adds the round key. The round. Subs the bytes. Invs the sub bytes. Shifts the rows. Invs the shift rows. Mixes the columns. Invs the mix columns. Keys the expansion. Subs the word. The word. Rots the word. The word. Possible key sizes. key size, in bits, for constructor. 128-bit. 192-bit. 256-bit. This class is responsible for decryption of Agile encryption (Word 2010/2013) files. Segment size. Dataspace map. Encryption info. Compound storage that should be decrypted. Intermediate key. Security helper contains utility methods for encryption/decryption. Hashing Algorithm used to compute hash. Computes a Hash-based Message Authentication Code (HMAC) using the System.Security.Cryptography.SHA1 hash function. Decrypts internal storage. Decrypted stream. Prepares decryptor for actual decryption. Compound storage to get required data. Checks whether password is correct. Password to check. True if password verification succeeded. Checks the encrypted package. The encrypted package. Decrypts the specified data. The data. Size of the block. The arr key. The IV. The actual length. Parses the transform. The data spaces. Parses the data space map. The data spaces. Parses the transform info. The transform storage. Represents the agile encryption info for Encryption/Decryption of Word 2010/2013 documents. A Version structure where Version.vMajor MUST be 0x0004, and Version.vMinor MUST be 0x0004. A Reserved 4 bytes, MUST be 0x00000040. An XmlEncryptionDescriptor structure that specifies encryption and hashing algorithm. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance. Stream to get data from. Serializes object into stream. Stream to serialize into. Gets or sets the version info. The version info. Gets or sets the reserved. The reserved. An XmlEncryptionDescriptor structure that specifies encryption and hashing algorithm. This class used to encrypt data using Agile encryption (Word 2010/2013). Default version. Reserved bytes. Segment size. Security helper contains utility methods for encryption/decryption. Hashing Algorithm used to compute hash. Computes a Hash-based Message Authentication Code (HMAC) using the System.Security.Cryptography.SHA1 hash function. Hashing Algorithm name used to compute hash. Encryption key bits. Hash size. Initializes encryptor for agile encryption. Initializes encryptor for agile encryption. The hash algorithm. The key bits. Size of the hash. Encrypts specified stream. Data to encrypt. Password to use. Root storage to put encrypted data into. Prepares the encryption info. The data. The root. The password. Prepares the encrypted package. The data. The root. The key data. The intermediate key. Initializes the key data. The key data. Initializes the encrypted key. The key. Preparse data spaces structures inside specified storage. Storage to put DataSpaces inside. Serializes VersionInfo stream inside specified storage. Storage to serialize VersionInfo into. Serializes transformation info. Storage to serialize into. Serializes dataspace info. Storage to serialize into. Serializes DataSpaceMap stream. Storage to place stream into. Creates the salt. The length. Encrypts the specified data. The data. Size of the block. The key. The IV. Represents the data space definition for Encryption/Decryption of Word documents. Default header size. Header length. List with transform references. Security helper contains utility methods for encryption/decryption. Initializes new instance. Initializes new instance of DataSpaceDefinition. Stream to get data from. Serializes dataspace definition into the stream. Stream to serialize into. List with transform references. Represents the data space map for Encryption/Decryption of Word documents. Size of the header. Map entries. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the DataSpaceMap. Stream to get data from. Serializes dataspace map into the stream. Stream to serialize into. Map entries. Represents the data space map entry for Encryption/Decryption of Word documents. List of the reference components. DataSpace name. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the map entry. Stream to get data from. Serializes single dataspace map entry into the stream. Stream to serialize into. List of the reference components. DataSpace name. Represents the data space reference component for Encryption/Decryption of Word documents. Component type. Component name. Security helper contains utility methods for encryption/decryption. Initializes new instance of the reference component. Component type. Component name. Initializes new instance of the component reference. Stream to get data from. Serializes object into stream. Stream to serialize into. Component type. Component name. This class contains utility methods used by Word 2007 and Word 2010 document protection implementation. Specifies number of iterations used for key generation. Specifies the cryptography type. Specifies the cryptographic algorithm class. Specifies the cryptographic algorithm type. Specifies the cryptographic algorithm id (SHA512). Initializes a new instance of the class. Computes the hash. The salt. The encrypted password. Combines the byte arrays. The array1. The array2. Creates the salt. The length. Represents the encryption header for Encryption/Decryption of Word documents. An EncryptionHeaderFlags structure that specifies properties of the encryption algorithm used. Reserved, MUST be 0x00000000. A signed integer that specifies the encryption algorithm. A signed integer that specifies the hashing algorithm in concert with the Flags.fExternal bit. An unsigned integer that specifies the number of bits in the encryption key. MUST be a multiple of 8. An implementation specified value which corresponds to constants accepted by the specified CSP. MUST be compatible with the chosen CSP. Undefined and MUST be ignored. MUST be 0x00000000 and MUST be ignored. A null-terminated Unicode string that specifies the CSP name. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the header and extracts its data from the stream. Stream to get data from. Extracts item's data from the specified stream. Stream to get data from. Serialize item in the specified stream. Stream to serialize data into. An EncryptionHeaderFlags structure that specifies properties of the encryption algorithm used. Reserved, MUST be 0x00000000. A signed integer that specifies the encryption algorithm. A signed integer that specifies the hashing algorithm in concert with the Flags.fExternal bit. An unsigned integer that specifies the number of bits in the encryption key. MUST be a multiple of 8. An implementation specified value which corresponds to constants accepted by the specified CSP. MUST be compatible with the chosen CSP. Undefined and MUST be ignored. MUST be 0x00000000 and MUST be ignored. A null-terminated Unicode string that specifies the CSP name. Represents the encryption transform info for Encryption/Decryption of Word documents. Transform name. Block size. Cipher mode. Reserved. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the class. Stream to get data from. Serializes object into stream. Stream. Transform name. Block size. Cipher mode. Reserved. Represents the encryption verifier for Encryption/Decryption of Word documents. An array of bytes that specifies the salt value used during password hash generation. MUST NOT be the same data used for the verifier stored encrypted in the EncryptedVerifier field. MUST be the randomly generated Verifier value encrypted using the algorithm chosen by the implementation. An array of bytes that contains the encrypted form of the hash of the randomly generated Verifier value. The length of the array MUST be the size of the encryption block size multiplied by the number of blocks needed to encrypt the hash of the Verifier. If the encryption algorithm is RC4, the length MUST be 20 bytes. If the encryption algorithm is AES, the length MUST be 32 bytes. Size of the verifier hash. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the verifier. Stream to get data from. Extracts object from stream. Stream to get data from. Serializes object into stream. Stream to serialize into. An array of bytes that specifies the salt value used during password hash generation. MUST NOT be the same data used for the verifier stored encrypted in the EncryptedVerifier field. MUST be the randomly generated Verifier value encrypted using the algorithm chosen by the implementation. An array of bytes that contains the encrypted form of the hash of the randomly generated Verifier value. The length of the array MUST be the size of the encryption block size multiplied by the number of blocks needed to encrypt the hash of the Verifier. If the encryption algorithm is RC4, the length MUST be 20 bytes. If the encryption algorithm is AES, the length MUST be 32 bytes. Gets/sets size of the verifier hash. Summary description for MD5_CTX. scratch buffer input buffer actual digest after MD5Final call Updates The input buf. The buffer length. Finals this instance. Stores the digest. F(x, y, z) The x. The y. The z. G(x, y, z) The x. The y. The z. H(x, y, z) The x. The y. The z. I(x, y, z) The x. The y. The z. ROTATE_LEFT The x. The n. FF A. The b. The c. The d. The x. The s. The ac. GG A. The b. The c. The d. The x. The s. The ac. HH A. The b. The c. The d. The x. The s. The ac. II A. The b. The c. The d. The x. The s. The ac. Transforms the specified inn. The inn. Gets the I. The I. Gets the buffer. The buffer. Gets the input buffer. The input buffer. Gets the digest. The digest. This class contains utility methods used by Word 2007 and Word 2010 Encryption/Decryption implementation. Number of iterations used for key generation. Name of encryption info stream. Name of dataspaces storage. Name of dataspace map stream. Name of the transform primary stream. Name of dataspace info storage. Name of transform info storage. Name of encrypted package stream. Gets the type of the encryption. The storage. Reads Int32 value from the stream. Stream to get data from. Temporary buffer to put extracted bytes into. Extracted Int32 value. Extracts padded unicode string from a stream. Stream to get data from. Extracted string. Read zero-terminated string from the stream. Stream to get string from. Extracted string (without trailing zero). Writes Int32 value into the stream. Stream to put data into. Value to write. Writes padded unicode string from a stream. Stream to get data from. Value to write. Writes zero-terminated string into the stream. Stream to put string into. Value to write. Creates key object based on the salt and password. Password to use. Salt to use. Required key length. Array with created key. Creates the agile encryption key. The password. The salt. The block key. Length of the key. The iteration count. Encrypts/decrypts buffer with specified method. Data to process. Method to use. Size of the encryption block. Modified (encrypted/decrypted) data. Combines two arrays into one. The first buffer to combine. The second buffer to combine. Combined array. Corrects the size. The hash buf. The size. The padding. Concatenates the IV. The data. The IV. Compares the array. The buffer1. The buffer2. Represents type of the encryption. Word 2007 encryption format. Word 2010 encryption format. Wrong encryption format. This class is responsible for decryption of Standard encryption (Word 2007) files. Size of the decryption block. Dataspace map. Encryption info. Compound storage that should be decrypted. Array containing key data. Security helper contains utility methods for encryption/decryption. Decrypts internal storage. Decrypted stream. Prepares decryptor for actual decryption. Compound storage to get required data from. Checks whether password is correct. Password to check. True if password verification succeeded. Decrypts specified buffer. Extracts transform data from the storage. Storage to get data from. Extracts dataspace map from the storage. Storage to get data from. Extracts TransformInfo from the storage. Storage to get data from. Represents the standard encryption info for Encryption/Decryption of Word documents. A Version structure where Version.vMajor MUST be 0x0003, and Version.vMinor MUST be 0x0002. A copy of the Flags stored in the EncryptionHeader field of this structure. An EncryptionHeader structure that specifies parameters used to encrypt data. An EncryptionVerifier structure. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance. Stream to get data from. Serializes object into stream. Stream to serialize into. A Version structure where Version.vMajor MUST be 0x0003, and Version.vMinor MUST be 0x0002. A copy of the Flags stored in the EncryptionHeader field of this structure. An EncryptionHeader structure that specifies parameters used to encrypt data. An EncryptionVerifier structure. This class used to encrypt data using Standard encryption (Word 2007) with AES 128 encryption algorithm and SHA-1 hashing algorithm. Key length. Default version. Default flags. Encryption algorithm id (AES-128). Hashing algorithm id (SHA-1). Provider type. Default CSP name. Security helper contains utility methods for encryption/decryption. Encrypts specified stream. Data to encrypt. Password to use. Root storage to put encrypted data into. Preparse data spaces structures inside specified storage. Storage to put DataSpaces inside. Serializes VersionInfo stream inside specified storage. Storage to serialize VersionInfo into. Serializes transformation info. Storage to serialize into. Serializes dataspace info. Storage to serialize into. Serializes DataSpaceMap stream. Storage to place stream into. Prepare EncryptionInfo record and stores it in appropriate stream. Root storage. Encryption password. Encryption key. Creates random salt. Desired salt length. Array with random data. Encrypts specified buffer. Data to encrypt. Encryption key. Encrypted data. Encrypt specified stream. Stream to encrypt. Encryption key. Output stream. Represents the transform info header for Encryption/Decryption of Word documents. An unsigned integer that specifies the type of transform to be applied. An identifier associated with a specific transform. The friendly name of the transform. The reader version. The updater version. The writer version. Security helper contains utility methods for encryption/decryption. Default constructor. Initializes new instance of the class. Stream to get data from. Serializes object into stream. Stream to serialize into. An unsigned integer that specifies the type of transform to be applied. An identifier associated with a specific transform. The friendly name of the transform. The reader version. The updater version. The writer version. Represents the version information for Encryption/Decryption of Word documents. The functionality for which the DataSpaceVersionInfo structure specifies version information. MUST be "Microsoft.Container.DataSpaces". The reader version of the data spaces structure. The updater version of the data spaces structure. The writer version of the data spaces structure. Security helper contains utility methods for encryption/decryption. Default constructor. Serializes object into specified stream. Stream to serialize into. The functionality for which the DataSpaceVersionInfo structure specifies version information. MUST be "Microsoft.Container.DataSpaces". The reader version of the data spaces structure. The updater version of the data spaces structure. The writer version of the data spaces structure. Represents an WordDecryptor. Initializes a new instance of the [ERROR: invalid expression DeclaringTypeKind]. Initializes a new instance of the class. The table stream. The main stream. The fib. Tests the encrypt. The stream. Checks the password. The password. Decrypts our streams. Decrypts our streams. Decrypts the stream. The stream. if set to true [is main stream]. Converts the password. Prepares the key. The data. Makes the key. Compares memory blocks The block1. The block2. The length. Verifies the password. Decripts buffer The data. The length. Gets the password hash. The password. Reverts the bytes. The change val. Gets the high order hash. The password. Gets the low order password hash. Password to hash. Hash value for the password string. Converts character to 15 bits sequence Character to convert. Converts bits array to UInt16 value. Array to convert. Converted UInt16 value. Rotates (cyclic shift) bits in the array specified number of times Array to rotate Number of times to rotate Rotated array. Gets the table stream. The table stream. Gets the main stream. The main stream. Gets the data stream Summary description for Word_key. Gets or sets the status. The status. Gets or sets the x. The x. Gets or sets the y. The y. Represents the xml encryption descriptor for Encryption/Decryption of Word 2010/2013 documents. Specifies the key data used for Encryption/Decryption. Specifies the data integrity used for Encryption/Decryption. Specifies the key encryptors used for Encryption/Decryption. Default constructor. Parses the specified stream. The stream. Serializes object into stream. Stream to serialize into. Create xml writer The stream returns the xml writer Gets or sets the key data. The key data. Gets or sets the data integrity. The data integrity. Gets or sets the key encryptors. The key encryptors. Represents the key data for Encryption/Decryption of Word 2010 documents. Specifies the number of bytes used by salt. Specifies the number of bytes used to encrypt one block of data. Specifies the number of bits used by encryption algorithm. Specifies the number of bytes used by hash value. Specifies the cipher algorithm. Specifies the chaining mode used by the cipher algorithm. Specifies the hashing algorithm. Specifies the salt value. Default constructor. Parses the specified reader. The reader. Retrieves the attribute value from the XmlReader and parses it as an integer. Retrieves the attribute value from the XmlReader and parses it as a byte array. Serializes the specified writer. The writer. Gets or sets the size of the salt. The size of the salt. Gets or sets the size of the block. The size of the block. Gets or sets the key bits. The key bits. Gets or sets the size of the hash. The size of the hash. Gets or sets the cipher algorithm. The cipher algorithm. Gets or sets the cipher chaining. The cipher chaining. Gets or sets the hash algorithm. The hash algorithm. Gets or sets the salt. The salt. Represents the data integrity for Encryption/Decryption of Word 2010 documents. Specifies an encrypted key used for generating the encryptedHmacValue. Specifies an HMAC derived from the encryptedHmacKey and the encrypted data. Default constructor. Parses the specified reader. The reader. Serializes the specified writer. The writer. Gets or sets the encrypted hmac key. The encrypted hmac key. Gets or sets the encrypted hmac value. The encrypted hmac value. Represents the key encryptors for Encryption/Decryption of Word 2010 documents. Specifies encrypted key used for Encryption/Decryption. Default constructor. Parses the specified reader. The reader. Serializes the specified writer. The writer. Gets or sets the encrypted key. The encrypted key. Represents the encrypted key for Encryption/Decryption of Word 2010 documents. Specifies the spin count Specifies the number of bytes used by salt. Specifies the number of bytes used to encrypt one block of data. Specifies the number of bits used by encryption algorithm. Specifies the number of bytes used by hash value. Specifies the cipher algorithm. Specifies the chaining mode used by the cipher algorithm. Specifies the hashing algorithm. Specifies the salt value. Specifies the encrypted verifier hash input used in password verification. Specifies the encrypted verifier hash value used in password verification. Specifies the encrypted form of the intermediate key. Default constructor. Parses the specified reader. The reader. Serializes the specified writer. The writer. Gets or sets the spin count. The spin count. Gets or sets the size of the salt. The size of the salt. Gets or sets the size of the block. The size of the block. Gets or sets the key bits. The key bits. Gets or sets the size of the hash. The size of the hash. Gets or sets the cipher algorithm. The cipher algorithm. Gets or sets the cipher chaining. The cipher chaining. Gets or sets the hash algorithm. The hash algorithm. Gets or sets the salt. The salt. Gets or sets the encrypted verifier hash input. The encrypted verifier hash input. Gets or sets the encrypted verifier hash value. The encrypted verifier hash value. Gets or sets the encrypted key value. The encrypted key value. Summary description for MainStatePositions. Summary description for StatePositionsBase. The position of first byte of text run. The position of last byte of text run. FKP data Currents papx/chpx page indexs Initializing constructor Initialize start/end positions of text run Move to next character properties exception Move to next paragraph properties exception Get min end pos from chpx and papx Update end position of chpx Update end position of papx Is it first pass in text run Is it end of text Check if current position is less then subdocument item text end. Initializes chpx/papx Gets current chpx Gets current papx Gets current papx page Creates object and fills it's members from fkp Move to next section properties exception Update end position of section Gets min end position Gets current section properties exception Summary description for HFStatePositions Initializing constructor Summary description for HFStatePositions Initializing constructor Move to next header/footer position Initializing constructor Summary description for HFStatePositions Initializing constructor Main doc textbox state position class Initializes a new instance of the class. Header/footer textbox state position class Initializes a new instance of the class. Moves to text box. Index of the Text box. Initializes a new instance of the class. Name of the file. True - create new storage, false - load existing storage. Initializes a new instance of the class. Name of the stream. True - create new storage, false - load existing storage. Loads the STG from stream Loads the table stream. Table stream name Loads the SummaryInformation stream Loads the DocumentSummaryInformation stream Refreshs main and table streams data main stream from which to refresh current main stream table stream from which to refresh current table stream Writes the sub storage. The stream Name of the storage. Saves storages data and closes streams Closes all streams and binary readers/writers Saves the stream. The stream name. The stream. Saves the stream. The stream name. The stream. Initialize the streams and writers. Loads main, data, macros and object pool streams data Loads the stream from compound file. The name. Loads the sub storage. The name. Reads some sub storage from the main storage of the document into the memory stream sub storage name Loads stream from storage into memory stream the name of the stream Gets the storage. The storage. Gets main, table and data streams. Gets macros and object pool streams Gets or sets the SummaryInformation stream Gets or Sets the DocumentSummaryInformation stream Gets or sets the SummaryInformation stream writer Gets or sets the DocumentSummaryInformation stream writer Gets or sets the SummaryInformation stream reader Gets or sets the DocumentSummaryInformation stream reader Gets the main, table and data writers. Gets the main, table and data readers. Summary description for WordFKPData. Fills objects by write operations. Fills objects by read operation. Member initializing constructor Gets SectionPropertyException Add character properties exception Add paragraph properties exception Add section properties exception Reads character/paragraph/section properties from stream Writes character/paragraph/section properties exceptions to stream Gets i-th page page with paragraph properties exception. Gets i-th page page with character properties exception. Rewrite last Papx to the document Rewrite last chpx to the document. Closes this instance. Reads array of FKPs from stream according to BinaryTable Write all papxs to stream Fill papx page with sprms Gets count of sprms per one page Write all chpxs to stream Fill chpx page with sprms Gets count of sprms per one page Check whether Chpx repeats within the specified ranges (chpxIndex to CurrentIndex) Chpx Index Current Index Write all sepxs to stream Aligns position in stream to the end of the page Gets FIB of word file Gets number of added SectionPropertyExceptions Implemented of IWordReader interface. IWordReader : interface for forward-only reading data from word file. Base implementation for WordReader and WordSubdocumentReader classes. Used to convert managed memory block (byte array) into managed object DocInfo contains stream component data blocks. The index of style, applied to current text chunk. Saves all needed positions in stream for current reader Initializes a new instance of the class. The streams manager. Hide default constructor. Read next elementary text string*. * - "elementary text string" - string, in which all symbols have the identical character/paragraph/section properties. Get interface for reading images from word file Get array of Bookmarks from doc file. Closes this instance. Saved publicy current stream position. If stream position has been saved - restore it. Determines whether this instance has list. true if this instance has list; otherwise, false. Restores bookmark. Updates the bookmarks. Class initialization. Gets text chunk end position. Updates end position of current chpx/papx Analizing type of text chunk. Updates character properties Updates paragraph properties Reads string from stream using current encoding. Calculates the CP depending on specified startPos and length Update the text watermark positions. Apply shape properties to the watermark picture Initialize base shape properties. Read textbox properties from SpContainer. Read and parse text chunk. If text chunk consists special symbols - it is splitted. Checks id chunk includes special characters. Defines if current chunk is "Zero" chunk. Checks if current body belongs to next paragraph item. Counts minimal chunk length with field. Checks the current text chunk. Get new chunk length according bookmark. Gets the bookmark chunk len. The cur doc stream pos. The end doc stream pos. Checks the table bookmark. Checks if current chunk is FieldBeginChunk or FieldEndChunk, return real length of current chunk. Current chunk length Gets the document version. Gets the pic location. Gets the STTBFR names. The STTB. Gets index of current style . Gets document stylesheet. Gets type of current text chunk. Current read text chunk. Gets WPTablesData object. Gets current text position relative to document text start(2048). Gets the document version. The version. Encoding of current read text chunk. Gets current style Gets the start text position. The start text pos. Gets the end text position. The end text pos. Gets the STTBF r mark author names. The STTBF r mark author names. Contains current subdocument reader To holds the custom footnote splitted text length, i.e, text before the custome foot note marker To holds the revision changes made author names list Initializes a new instance of the class. The stream. Initializes a new instance of the class. Name of the file. Gets subdocument reader of specified type. Read header from the document. Reads the Summary information and Document Summary information Reads the document properties Read the properties in the PropertySection Read next elementary text string*. * - "elementary text string" - string, in which all symbols have the identical character/paragraph/section properties. Reads end of the document Closes this instance. Freeze position in stream Unfreeze position in stream Class initialization. Updates end positions of CHPx/PAPx/SEP Update section properties to current Updates stylesheet data Converts characters/paragraphs properties to style properties. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Gets current section number. Gets section's properties Get document's Macros data Custom Footnote splitted text length Gets the standard/default bidi font Gets a value indicating whether the document is encrypted. true if the document is encrypted; otherwise, false. Gets or sets the associated strings. The associated strings. Gets or sets the STTBF r mark. The STTBF r mark. Gets the STTBF r mark author names. The STTBF r mark author names. Summary description for WordRWAdapterBase. Textbox reader Read textbox's shape data ( including FSPA ) Read image's shape data ( including FSPA ) Reads the annotation body. The reader. Reads the annotation. The reader. Reads the footnote body. The reader. Summary description for WordStyle. Style name Style id Default constructor. Initializing constructor Initializing constructor Gets or sets the table style representation Gets or sets the type code of the style. Gets/sets style id Gets/sets style id Gets style name Indicates whether UPEs have been generated. Gets or sets the index of the next style. The index of the next style. Gets or sets the index of the link style. The index of the link style. Gets or sets a value indicating whether this instance is primary. true if this instance is primary; otherwise, false. Gets or sets a value indicating whether this instance is semi hidden. true if this instance is semi hidden; otherwise, false. Gets or sets a value indicating whether unhide when used. true if unhide when used; otherwise, false. Summary description for WordStyleSheet. Returns true, if the fixed index 13 in stylesheet has style. (other than empty style) Reserved styles are applicable only for *.doc format Returns true, if the fixed index 14 in stylesheet has style. (other than empty style) Reserved styles are applicable only for *.doc format Represents the style name of the style present at the fixed index 13 in the stylesheet Reserved styles are applicable only for *.doc format Represents the style name of the style present at the fixed index 14 in the stylesheet Reserved styles are applicable only for *.doc format List of font names Default font names List of styles. Initializing constructor Initializing constructor Creates the style. The name. Create style with specified name The name. if it is character style, set to true. Adds style to stylesheet Add empty style to stylesheet Gets style index by specified style name. The name. if it is character, set to true. Gets style index by specified style name. The name. Gets font index by specified font name. Gets style by specified index. Removes the style by index. The index. Inserts the style. The index. The style. Updates the name of the font. The name. Add specified font names to collection of font names Clear font name arraylist Closes this instance. Gets the stye names. The stye names. Dictionary to hold the font substitution values Gets array of font names Gets default style index Gets number of styles Implemented IWordSubdocumentReader interface, used for reading Word "subdocument parts" as header/footer, footnotes, endnotes, annotations, macros, etc. Creates subdocument reader of specified type. Main document word reader. Creates object of needed type and fills it with stream positions Initializes class members Initializes start/end positioons of reader Unfreeze stream position The type of subdocument reader. Gets/Sets current type of header / footer. ( if Type != WordSubdocument.HeaderFooter, returns HeaderType.InvalidValue ) Gets number of current footnote Gets a value indicating whether this is next item pos. true if this instance is next item pos; otherwise, false. Summary description for HeaderFooter subdocument reader Initializes a new instance of the class. Main document word reader. Resets subdocument reader state, reading process restarted. Move to specified section Move to specified header in currebt section Reset as it is HeaderFooter reader Creates object and fills it with stream positions. Gets HFStatePositions object Summary description for HeaderFooter subdocument reader. Saves previous position of main stream. Creates subdocument reader of specified type. Main document word reader. Creates object and fills it with stream positions. Checks current cp position. Initialize the state positions. Determines the end of footnote items. Read next elementary text string*. * - "elementary text string" - string, in which all symbols have the identical character/paragraph/section properties. Gets a value indicating whether this body refers to next footnote. true if this body refers to next footnote; otherwise, false. Summary description for HeaderFooter subdocument reader. Initializes a new instance of the class. Main document word reader. Creates object and fills it with stream positions. Gets a value indicating whether this instance is start annotation. true if this instance is start annotation; otherwise, false. Gets the position of the annotation. The get position. Summary description for Endnote subdocument reader. Initializes a new instance of the class. Main document word reader. Checks current cp position. Initialize reader. Initialize the state positions. Determines the end of footnote items. Initializes a new instance of the class. Main document word reader. Creates object of needed type and fills it with stream positions Initializes a new instance of the class. Main document word reader. Creates object of needed type and fills it with stream positions Summary description for WordWriterBase. Fieldshape type value. Writes text chunk to word file Writes marker to word file Creates instance of TableBorders Insert field separator. Inserts the field index entry. The field code. Insert field to the document Insert image Picture Picture height Picture width Insert texbox (shape) to the document Textbox format Inserts the inline text box. The textbox format. Insert watermark. The watermark. The units converter. Maximak width. Initializes a new instance of the class. The streams manager. Default protected constructor. Closes this instance. Initialize class members with default values Writes string to word file Adds the papx properties. Updates the shading SPRMS. The para property exception. Writes the symbol. The symbol. Writes character to word file Writes the nested cell/row mark. Gets position in text Writes the field start. Type of the field. Writes the field separator. Write the NilPICFAndBinData Writes Binary data for reference and hyperlink field Field Removes the formatting strings Write start, end, or separator field descriptor to table stream Adds the textbox container. The textbox format. Syncronize the textbox container. The shape container. The textbox format. Updates the containers. The old id. The new id. The shape container. Inserts the text watermark. The watermark. The File Shape Address. The units converter. Inserts the picture watermark. The watermark. The File Shape Address. The units converter. Max width. Fits the watermark picture to page. The pic watermark. Width of the max. The units converter. Picture size Creates the picture watermark container. The picture watermark. The picture container. Determines whether the image are equal Hash value of first image Hash value of second image returns true if image hash are equal. Gets/sets stylesheet Gets/sets current style index Gets or sets a value indicating whether [break CHPX stick properties]. true if [break CHPX stick properties]; otherwise, false. Gets or sets a value indicating whether [CHPX stick properties]. true if [CHPX stick properties]; otherwise, false. Gets the get next text id. The get next text id. Initializing constructor Gets/sets type of subdocumnet writer Summary description for footnote subdocument writer Creates subdocument writer of specified type. Writes the end of the document Summary description for HeaderFooter subdocument writer Creates subdocument reader of specified type. Writes the end of the document Writes the end of the section Closes the previous separator types. Inintializes class members Gets/sets type of subdocumnet writer Initializes a new instance of the class. Writes the end of the document Summary description for footnote subdocument writer Initializes a new instance of the class. Writes the end of the document Textbox reserved data BreakDescriptor counter Initializes a new instance of the class. Writes the end of the document Spid of textbox. Increase ccp on the defined length Creates subdocument reader of specified type. Write textbox "end" Increase header/footer ccp Create TxbxStory and BKD and add it to artObjects Summary description for WordWriter. Is Last ParagraphEnd for the subdocument Document summary properties members Creates instance from specified stream Creates instance from specified file name Writes header of the document to word file Gets the subdocument writer of the specified type Writes marker to word file Writes the zero block. The size. Writes the tables. Create Summary information for document. Adds the sepx properties. Gets/sets section properties Get/sets name of the author of the application. Get/sets name of the author of the application. Get/set document Macros Gets and sets the standard/default bidi font Gets or sets a value indicating whether the document is template. true if this instance is template; otherwise, false. Gets or sets the associated strings. The associated strings. Gets or sets a value indicating whether the document is write protected. true if [write protected]; otherwise, false. Summary description for WPStylesData. Initializing constructor Gets style defintion record by the specified style id Gets stylesheet information Gets stylesheet definitions Summary description for WPTablesData. Default name for table stream. Represents the default CS/Bidi font Initializes a new instance of the class. The fib. Read structures from stream Write member structures to stream Converts position in text to position in file Gets array of bookmarks from the document Add section record Add papx record Add chpx record Closes this instance. Determines whether the document has the specified type of subdocument. Type of the subdocument. true if the specified ws type has subdocument; otherwise, false. Determines whether this instance has list. true if this instance has list; otherwise, false. Writes the document properties. The stream. The fib. Writes the fields. The stream. The sub document. Writes the bookmarks. The stream. The fib. Writes the art objects. The stream. The fib. Writes the endnotes. The fib. The stream. / Writes the macro commands. The fib. The stream. Contains the shapes. The fib. Reads the variables. The fib. The stream. Writes the variables. The fib. The stream. Reads the table of associated strings. The fib. The stream. Reads the STTBF r mark. The fib. The stream. Writes the associated strings. The fib. The stream. Writes the STTBF r mark. The fib. The stream. The author. Updates the STTB structure. Writes the RMD threading. The stream. Get artobject's object Gets sections table. Gets/sets FontFamilyNameStringTable Gets/sets stylesheet information Gets/sets array of style definition records. Gets header footer character position table. Gets chpx BinaryTable Gets papx BinaryTable Gets/sets header positions Gets number of sections Get/set fields property Gets and sets the standard/default bidi font Gets or sets the byte array of document variables. The variables. Gets or sets the asociated strings. The asociated strings. Gets or sets the STTBF r mark. The STTBF r mark. Implemented alternative method to improve the performance Represents a selection of part of text body in the Word document. Initializes a new instance of the class with start paragraph item and end paragraph item. The that specifies the start of the selection. The that specifies the end of the selection. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the template document WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx); //Get the text body of first section WTextBody textbody = document.Sections[0].Body; //Gets the second paragraph WParagraph paragraph = textbody.Paragraphs[1]; //Get the start and end items ParagraphItem startItem = (ParagraphItem)paragraph.ChildEntities[0]; ParagraphItem endItem = (ParagraphItem)paragraph.ChildEntities[1]; //Selects the items in the text body TextBodySelection selection = new TextBodySelection(startItem, endItem); //Create new text body part TextBodyPart textbodyPart = new TextBodyPart(document); //Copy the selected items textbodyPart.Copy(selection); //Paste the selected items. textbodyPart.PasteAt(textbody, 2); //Save and close the document. document.Save("Result.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the template document Dim document As New WordDocument("Bookmarks.docx", FormatType.Docx) 'Get the text body of first section Dim textbody As WTextBody = document.Sections(0).Body 'Gets the second paragraph Dim paragraph As WParagraph = textbody.Paragraphs(1) 'Get the start and end items Dim startItem As ParagraphItem = DirectCast(paragraph.ChildEntities(0), ParagraphItem) Dim endItem As ParagraphItem = DirectCast(paragraph.ChildEntities(1), ParagraphItem) 'Selects the items in the text body Dim selection As New TextBodySelection(startItem, endItem) 'Create new text body part Dim textbodyPart As New TextBodyPart(document) 'Copy the selected items textbodyPart.Copy(selection) 'Paste the selected items. textbodyPart.PasteAt(textbody, 2) 'Save and close the document. document.Save("Result.docx") document.Close() End Sub Initializes a new instance of the class with the textbody, start paragraph index, end paragraph index, start paragraph item index, and end paragraph item index. The instance. The integer specifying paragraph starting index. The integer specifying paragraph ending index. The integer specifying paragraph item starting index in first paragraph. The integer specifying paragraph item ending index in last paragraph. private void Button1_Click(System.Object sender, System.EventArgs e) { //Open the template document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); //Get the text body of first section WTextBody textbody = document.Sections[0].Body; //Selects the items in the text body TextBodySelection selection = new TextBodySelection(textbody, 0, 1, 0, 1); //Create new text body part TextBodyPart textbodyPart = new TextBodyPart(document); //Copy the selected items textbodyPart.Copy(selection); //Paste the selected items. textbodyPart.PasteAt(textbody, 2); //Save and close the document. document.Save("Sample.docx"); document.Close(); } Private Sub button_Click(sender As Object, e As EventArgs) 'Open the template document Dim document As New WordDocument("Template.docx", FormatType.Docx) 'Get the text body of first section Dim textbody As WTextBody = document.Sections(0).Body 'Selects the items in the text body Dim selection As New TextBodySelection(textbody, 0, 1, 0, 1) 'Create new text body part Dim textbodyPart As New TextBodyPart(document) 'Copy the selected items textbodyPart.Copy(selection) 'Paste the selected items. textbodyPart.PasteAt(textbody, 2) 'Save and close the document. document.Save("Sample.docx") document.Close() End Sub Validates the indexes. Gets the of the selection part. Read-only. The instance. Gets or sets the start index of the text body item. The zero-based index of the item. Gets or sets the end index of the text body item. The zero-based index of the item. Gets or sets the start index of the paragraph item. The zero-based index of the item. Gets or sets the end index of the paragraph item. The zero-based index of the item. Represent a selection of text inside paragraph. The following are the limitations in using the class: Text selection must be continuous (must not be split). The selected text should remain within a single paragraph, and will be ignored if it extends to more than one paragraph. Gets the selection chain. The selection chain. Initializes a new instance of the class. The paragraph. The start char position. The end char position. Gets the ranges. Gets as one range. Splits and erase the content of selection. Get the collection of text ranges from start text range to the end text range. Starting text range element. Caches the ranges. Copies ranges to specified paragraph. The paragraph. The start index. Copies to the specified inline content control. An to insert the items. Index value to start inserting items. Represents to save formatting or not. Source format of the text range. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Ensures the indexes. Gets the items count from their owner of corresponding text range. A object, which is refrence to get total items counts in their owner paragraph. Returns total number of items in the owner of inputed text range. Splits the ranges. Updates the following selections. Gets the selected text. Read-only. The string that represents the selected text. Gets or sets the string at the specified index from the collection. The zero-based index of the string to get. The string at the specified collection. Gets the number of text chunks in the collection. Read-only. The count. Gets the paragraph owner. The paragraph owner. Gets the start text range. The start text range. Gets the end text range. The end text range. Represents a character encoding. Decodes all the bytes in the specified byte array into a string. The byte array containing the sequence of bytes to decode. A string that contains the results of decoding the specified sequence of bytes. Summary description for DocIOXsdGenerator. Summary description for XSDSchemeGenerator. Gets the DLS local schema. Returns the DLS local schema. Generates the DLS schema. Returns the DLS schema. Generates the schema. The meta schema. Returns the XmlSchema. Gets the resource stream. Name of the res. The res namespace. Gets the DLS resource stream. Name of the res. Loads the XML document. The stream. Called when [validation]. The sender. The instance containing the event data. Parses the type. The type node. Parses the type of the simple. The type node. The mode. Parses the type of the complex. The group. The type node. if set to true [is grouping]. Parses the element. The element node. The group. Parses the group. The group node. The group. Parses the attribute. The attr node. The attributes. Merges the with include. The meta schema. The include schema. Merges the with include. The include schema. The meta schema. Name of the tags. constant string value. Returns Schema of DocIO. Returns the Schema in XML format. Generates Schema for DocIO. Returns the Schema in XML format. Gets the doc IO resource stream. Name of the res. Returns Stream for a specified resource. Specifies resource Name. Specified Resource NameSpace. The class WordColor implements routines working with Color. Initializes a new instance of the class with known color index. The byte index represents the index of the known color. Converts the HSL to RGB. The hue. The saturation. The luminance. Converts the color by shade. The color. The shade. Shades the specified color value. The color value. The shade. Converts the color by tint. The color. The tint. Applies tint to the specified color value. The color value. The tint. Converts based on modulation. The value. The percent. Converts based on offset. The value. The percent. Converts based on hue. The color. The angle. Converts based on hue mod. The color. The ratio. Converts based on hue offset. The color. The angle. Converts based on lum. The color. The percent. Converts based on lum mod. The color. The percent. Converts based on lum offset. The color. The percent. Converts based on sat. The color. The percent. Converts based on sat mod. The color. The percent. Converts based on sat offset. The color. The percent. Complements the color. The color. Inverses the color of the gamma. The color. Converts the RGB to linear RGB. The value. Gammas the color. The color. Converts the linear RGB to RGB. The value. Grays the color. The color. Inverses the color. The color. Inverses the specified color value. The color value. Converts the colorto HSL. The color. The hue. The saturation. The luminance. Converts the color of the HSL to. The hue. The saturation. The luminance. Hues to RGB. The n1. The n2. The hue. Returns the Color value for the specified color ID. Specifies color ID. Returns the Color value. Converts the Color value as an integer value. Specifies Color value. Returns the corresponding ID value of the color. Converts the color to RGB. Specifies the Color value. Returns the converted RGB value. Converts the color to RGB. The color. If set to true ignores alpha channel. Returns the converted RGB value. Converts the specified ID value as RGB value. Color identification value. Returns RGB value. Converts RGB value as int value. Specifies RGB value. Returns the ID value for a specified RGB. Converts the RGB as Color value. RGB Value. Returns Color value. Converts the Color as a color ID. Specifies Color value. Returns color ID. Gets the Color value for a specified ID. Specifies Color ID value. Returns Color value/. Gets a value indicating whether the specified background color is very dark. So that text with color automatic in this background will be displayed as white by Microsoft Word. The red component value of the background color The green component value of the background color The blue component value of the background color True if the specified background color is very dark; false otherwise. Gets a value indicating whether the specified background color is not very dark. So that text with color automatic in this background will be displayed as black by Microsoft Word. The background color of the text True if the specified background color is not very dark; false otherwise. Gets the a null color. Gets Black color. Read-only. Gets Blue color. Read-only. Gets Cyan color. Read-only. Gets Green color. Read-only. Gets Magenta color. Read-only. Gets Red color. Read-only. Gets Yellow color. Read-only. Gets White color. Read-only. Gets DarkBlue color. Read-only. Gets DarkCyan color. Read-only. Gets DarkGreen color. Read-only. Gets DarkMagenta color. Read-only. Gets DarkRed color. Read-only. Gets DarkYellow color. Read-only. Gets DarkGray color. Read-only. Gets LightGray color. Read-only. Gets the system Color. Read-only. Gets the byte value for a Color. Read-only. Gets RGB Color. Read-only. Contains classes and enumerations for generating the Word document. ControlChar class represents control characters which are used in binary MS Word document. End of non-nested table cell or row character: (char)7 or "\a". End of column character: (char)14. End of MS Word field character: (char)21. Field separator character separates field code from field value. Optional in some fields. Value: (char)20. Start of MS Word field character: (char)19. Page break character: (char)12 or "\f". End of paragraph character: (char)13. End of section character: (char)12 or "\f". Carriage return character: "\x000d" or "\r". Same as ParagraphBreak. Carriage return followed by line feed character: "\x000d\x000a" or "\r\n". Not used as such in Microsoft Word documents, but commonly used in text files for paragraph breaks. This is the "o" string used as a default value in text input form fields. This is the 'o' character used as a default value in text input form fields. Line break string: "\x000b" or "\v". Line break character: (char)11. Line feed string: "\x000a" or "\n". Same as Line feed. Line feed character: (char)10. Non-breaking space string: "\x00a0". Non-breaking space character: (char)160. Tab string: "\x0009" or "\t". Tab character: (char)9 or "\t". Optional hyphen string. Optional hyphen character. Space string. Space character Double Quote character. Left Double Quote character. Right Double Quote character. Double low Quote character. Double Quote string. Left Double Quote string. Right Double Quote string. Double low Quote string. Non-breaking hyphen string. Non-breaking hyphen character. End of non-nested table cell or row character: "\x0007" or "\a" End of column character: "\x000e". Page break character: "\x000c" or "\f". Note it has the same value as SectionBreak. End of paragraph character: "\x000d" or "\r". Same as Carriage return. End of section character: "\x000c" or "\f". Note it has the same value as PageBreak. Summary description for _constants. Specifies SaclingFactor of an Image. Specifies BitmapScaleFactor. Specifies MetafileScaleFactor. width of a single line in 1/8 pt, max of 32 pt. Number Twips in 1 Point Specifies PercentageFactor. EMUs in one point EMUs in one point Hundredths unit Thousandths of a percentage. Positive Fixed Angle 60000ths of a degree. Maximum opaque limit (100%) and 0% transparent. Size of the Int32 value. Size of the Int16 value. Size of the Int64 value. Number of bits inside single short value. Number of bits inside single byte value. Size of the Double value in bytes. Microsoft Windows code page Represents date time format structure. Contains Ascii-codes of some special characters End of paragraph character: 0x000d. End of the page character: 0x000c. End of the column character:0x000e. Specifies charcter for Table: 0x0007; Specifies charcter for Image: 0x0001; Specifies character for Shape: 0x0008. Specifies character value for FootNote:0x0002. Begining of Field Mark character: 0x0013. End of Field Mark character: 0x0015. Specifies character value for FieldSeparator: 0x0014. Specifies character value for Tab: 0x0009. Specifies character value for line break: 0x000b. Specifies character value for symbol: 0x0028. Specifies value for Annotation: 0x0005. Specifies character value for page number: 0x0000. Specifies the non breaking hyphen character Specifies the soft hyphen character Specifies the non breaking space character Specifies the Footnotes/Endnotes separator character. Specifies the Footnotes/Endnotes continuation separator character. Specifies value as string. Specifies value as string. Array of special symbols. Specifies type of break. No break with the new section beginning on the next paragraph of the same page. Column break with the new section beginning on the next column on the page. Section break with the new section beginning on the next page. Section break with the new section beginning on the next even-numbered page. Section break with the new section beginning on the next odd-numbered page. Specifies the type of header or footer. Specifies InvalidValue. Header for even numbered pages. Header for odd numbered pages. Footer for even numbered pages. Footer for odd numbered pages. Header for the first page of the section. Footer for the first page of the section. Specifies the type of elementary during reading or writing. Specifies text element. Specifies end of the paragraph. Specifies section`s end. Specifies page break. Specifies column break. Specifies document end. Specifies an Image. Specifies a Shape. Specifies Table. Specifies row of the table. specifies table`s cell. Specifies FootNote. Specifies field begin mark. Specifies separator for a field. Specifies field begin end. Specifies tab. Specifies an annotation. Specifies a line break. Specifies a symbol. Specifies a current page number. Specifies end of the document text. Specifies the type of sub document. Main. FootNote. HeaderFooter. EndNote. Annotation. TextBox. HeaderTextBox. Type of subdocument as Header/Footer, Annotation, etc. Specifies the file format type to use. Microsoft Word 97-2003 document format. Microsoft Word 97-2003 template format. Microsoft Word document format. Microsoft Strict Word document format. Microsoft Word 2007 document format. Microsoft Word 2010 document format. Microsoft Word 2013 document format. Microsoft Word 2007 template format. Microsoft Word 2010 template format. Microsoft Word 2013 template format. Microsoft Word template format. Microsoft Word 2007 macro enabled file format. Microsoft Word 2010 macro enabled file format. Microsoft Word 2013 macro enabled file format. Microsoft Word macro enabled file format. Microsoft Word 2007 macro enabled template format. Microsoft Word 2010 macro enabled template format. Microsoft Word 2013 macro enabled template format. Microsoft Word macro enabled template format. Specifies the WordProcessingML (.XML) documents Provides Read/Write support for Microsoft Office WordXML format (FlatOPC) documents Provides read only support for Microsoft Office Word 2003 XML format documents Rich text format (RTF). Microsoft Windows text format. Markdown. E-book format. This enum is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamrain platforms. DLS based Xml file format. This enum is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform, MVC6 and Xamrain platforms. Support all Format Types. This enum is not supported in Silverlight, WinRT, Windows Phone, Universal, Universal Windows Platform and Xamrain platforms. Html format This enum is not supported in Silverlight, Windows Phone, Universal and Universal Windows Platform applications. Saves theWord document as an Open Document Textformat. Specifies options to stream content to browser. Open document directly in browser. Save document as attachment to the disk. Specifies the type of protection applied to the Word document. Allow only comments to be added to the document. Allow content to be added to the document only through form fields. Allow read-only access to the document. Allow only revisions to be made to existing content. Do not apply protection to the document. Specified the shading texture to use. 10 percent shading. 12.5 percent shading. 15 percent shading. 17.5 percent shading. 20 percent shading. 22.5 percent shading. 25 percent shading. 27.5 percent shading. 2.5 percent shading. 30 percent shading. 32.5 percent shading. 35 percent shading. 37.5 percent shading. 40 percent shading. 42.5 percent shading. 45 percent shading. 47.5 percent shading. 50 percent shading. 52.5 percent shading. 55 percent shading. 57.5 percent shading. 5 percent shading. 60 percent shading. 62.5 percent shading. 65 percent shading. 67.5 percent shading. 70 percent shading. 72.5 percent shading. 75 percent shading. 77.5 percent shading. 7.5 percent shading. 80 percent shading. 82.5 percent shading. 85 percent shading. 87.5 percent shading. 90 percent shading. 92.5 percent shading. 95 percent shading. 97.5 percent shading. Horizontal cross shading. Dark horizontal cross shading. Dark diagonal cross shading. Dark diagonal down shading. Dark diagonal up shading. Dark horizontal shading. Dark vertical shading. Diagonal cross shading. Diagonal down shading. Diagonal up shading. Horizontal shading. No shading. Solid shading. Vertical shading. Nil shading. Specifies the type of fields. Field type is not Specifies. Specifies Addins. Offset subsequent text within a line to the left, right, up or down. Prompt the user for text to assign to a bookmark. The name of the document's author from Summary Info. Insert an automatic number. Insert an automatic number in legal format. Insert an automatic number in outline format. Insert an AutoText entry. Insert text based on style. Insert a delivery point barcode. The comments from Summary Info. Compares two values. The date the document was created. Specifies data. Insert data from an external database. Specified Today`s Date. Specified Type as FieldDDE. Specified Type as FieldDDEAuto. Insert the value of the property. Insert the value of the document variable. The total document editing time. Specifies OLE embedded object. Specified Empty Field. Specifies Field Expression. The document's name. The size on disk of the active document. Prompt the user for text to insert in the document. Specifies FieldType as FootnoteRef. Specifies Check box control. Specifies Drop Down box control. Specifies Text control. Calculates the result of an expression. Specifies FieldGlossary. Specifies GoToButton control. Specifies HTMLActiveX control. Specifies Hyperlink control. Evaluate arguments conditionally. Specifies FieldType as Import. Specifies FieldType as Export. Insert a picture from a file. Insert text from a file. Create an index. Mark an index entry. Data from Summary Info. The keywords from Summary Info. Name of user who last saved the document. Linked OLE2 object. Insert an element in a list. Run a macro. Insert a mail merge field. The number of the current merge record. Merge record sequence number. Go to the next record in a mail merge. Conditionally go to the next record in a mail merge. Insert the number of a footnote or endnote. The number of characters in the document. The number of pages in the document. The number of words in the document. Represents an ActiveX control such as a command button etc. Insert the number of the current page. Insert the number of the page containing the specified bookmark. Download commands to a printer. The date the document was last printed. Stores data for documents converted from other file formats. Insert literal text. Insert the text marked by a bookmark. Create an index, table of contents, table of figures, and/or table of authorities by using multiple documents. Insert the number of times the document has been saved. The date the document was last saved. Insert the number of the current section. Insert the total number of pages in the section. Insert an automatic sequence number. Assign new text to a bookmark. Conditionally skip a record in a mail merge. Insert the text from a like-style paragraph. The document's subject from Summary Info. The document's Subscriber from Summary Info. Insert a special character The name of the template attached to the document. The current time. The document's title from Summary Info. Create a table of authorities. Make a table of authorities entry. Create a table of contents. Make a table of contents entry. Address from Tools Options User Info. Initials form Tools Options User Info. Name from Tools Options User Info. Specifies FieldType as Shape. Specifies FieldType as BIDIOUTLINE. Specifies AddressBlock Specifies FieldType as Unknown. Specifies the information to be included in the cross-reference. Insert text value of the specified item. For example, insert text of the specified heading. Insert the word "Above" or the word "Below" as appropriate. Insert the page number of the specified bookmark. Insert paragraph with as much of its relative position in the outline numbered list as necessary to identify the item. Insert paragraph without its relative position in the outline numbered list. Insert complete paragraph number. Specifies the type of item for which a cross-reference is to be inserted. Insert the bookmark text as appropriate. Specifies the number style to be used with the caption label text. Numbers Roman Numerals Alphabets Specifies the bookmark type to be considered while converting a Word document to PDF. This property is applicable only for Word to PDF conversion in Windows Forms, WPF, ASP.NET Web, ASP.NET MVC, ASP.NET Core and Xamarin platforms. Creates a bookmark in the exported document for each Word bookmark. This is the Default ExportBookmarkType. Creates a bookmark in the exported document for each Microsoft Office Word heading, which includes only headings within the main document and text boxes not within headers, footers, endnotes, footnotes, or comments. Creates no bookmark in the converted PDF document. Specifies the position of the caption label text. Caption is positioned above the Image. Caption is positioned below the image. Specifies the view type. Specifies that the document will be rendered in the default view of the application. Everything that will appear in the printed document appears on the screen. Shows the headings and subheadings in the word document. Document appears with a dotted line separating the pages and/or document sections. Columns, drawings, headers/footers, footnotes/endnotes, and comments do not appear. Designed to show the word document will look as a web page. Specifies the type of zoom. Indicates to use the explicit zoom percentage. Zoom percentage is automatically recalculated to fit one full page. Zoom percentage is automatically recalculated to fit page width. Zoom percentage is automatically recalculated to fit text. Specifies the Character-Level Whitespace Specifies the line numbering mode to apply. Line numbering restarts at the start of every page Line numbering restarts at the section start. Line numbering continuous from the previous section. Specifies LineNumberingMode as None. Specifies the type of page border to apply. Page border applies to all pages. Page border applies only to first pages. Page border applies to all pages except the first. Specifies the position of page border. Page border is measured from text. Page border is measured from the edge of the page. Specifies the type of animation to apply to a font. No animation. Default. Alternating color and pattern border. Black-and-white, blinking background. Randomly alternating pattern and color background. Rotating black-dashed border. Rotating red-dashed border. Font shimmers in and out of focus. Specifies the outline level to apply to a paragraph. Outline level 1. Outline level 2. Outline level 3. Outline level 4. Outline level 5. Outline level 6. Outline level 7. Outline level 8. Outline level 9. No outline level. Specifies the Wrapping mode of the frame This value specifies automatic text wrapping. This value specifies that there is no text wrapping to either side of the frame. This value specifies that text is wrapped around the frame. Text is not wrapped around the frame. This value specifies that text is tightly wrapped around the frame. This value specifies that text is wrapped through the frame, to the contours of the contents of the frame. Specifies the horizontal relative position. Relative to column. Relative to margin. Relative to page. Specified the vertical relative position. Relative to margin. Relative to page. Relative to paragraph. Specifies the absolute horizontal position. The object is aligned to the left of the reference origin. The object is centered to the reference origin. The object is aligned to the right of the reference origin. The object is aligned to the inside of the reference origin. The object is aligned to the outside of the reference origin. Specifies the absolute vertical position. No vertical positioning The object is aligned to the top of the reference origin. The object is aligned to the center of the reference origin. The object is aligned to the bottom of the reference origin. The object is aligned to the inside of the reference origin. The object is aligned to the outside of the reference origin. Specifies the dash style for a line. Line is solid. Line consists of dashes only. Line consists of dots only. Line is a dash-dot pattern. Line is a dash-dot-dot pattern. Line consists of dots only. Line consists of dashes only. Line consists of long dashes only. Line is a dash-dot pattern. Line is a long dash and short dot pattern. Line is a long dash and short dot-dot pattern. Specifies the style of the arrowhead at the end of a line. No arrowhead. Triangular. Stealth-shaped. Diamond-shaped. Oval-shaped. Open. Specifies the wrap mode. Square wrap mode. ByPoints wrap mode. No wrap mode. TopBottom wrap mode. Through wrap mode. Specifies the value type for the property. Specifies Value type as boolean. Specifies Value type as date. Specifies Value type as float. Specifies Value type as double. Specifies Value type as integer. Specifies Value type as String. Specifies Value type as byte array. Specifies Value type as ClipData. Specifies the type of the property. Specifies Property Type as Summary. Specifies Property Type as DocumentSummary. Specifies Property Type as Custom. Specifies a line spacing format to be applied to a paragraph. Line spacing is always at least a specified amount. The amount is specified separately. Line spacing is only the exact maximum amount of space required. This setting commonly uses less space than single spacing. Line spacing determined by the number of lines indicated. Specifies the horizontal alignment of a shape. The object is explicitly positioned using position properties. The object is aligned to the left of the reference origin. The object is centered to the reference origin. The object is aligned to the right of the reference origin. The object is aligned to the inside of the reference origin. The object is aligned to the outside of the reference origin. Specifies vertical alignment of a shape. The object is aligned to the bottom of the reference origin. The object is centered relative to the reference origin. The object is aligned to the in line of the reference origin. The object is aligned to the inside of the reference origin. The object is explicitly positioned using position properties. The object is aligned to the outside of the reference origin. The object is aligned to the top of the reference origin. Specifies the text form field type. Regular text field. Number text field. Date text field. Current date text field. Current time text field. Calculation text field. Specifies the position of footnotes. Footnotes are output at the bottom of each end notes. At bottom of current page. Beneath current text on each page. Specifies the restart index of footnotes. Numbering continuous throughout the document. Numbering restarts at each section. Numbering restarts at each page. Specifies the restart index of the endnotes. Numbering continuous throughout the document. Numbering restarts at each section. Specifies the position of the endnotes. Display at the end of each section. Display at the end of the document. Specifies the number format of endnotes and footnotes. Arabic format (1, 2, 3, ...). Upper case roman format (I, II, III, ...). Lower case roman format (i, ii, iii, ...). Upper case letters format (A, B, C, ...) . Lower case letters format (a, b, c, ...) . Specifies the type of the footnote. Specifies object is a footnote. Specifies object is a endnote. Specifies the Type of the FontFamily. Font family is unspecified for this font. Roman (Serif). Swiss (Sans-serif). Swiss (Sans-serif). Script (Cursive). Decorative (Fantasy). Specifies the type of the font pitch request. Default pitch. Fixed pitch. Variable pitch. Specifies preferred width type No Preffered Width Preferred table width specified as Auto Preferred table width specified in percentage Preferred table width specified in points Specifies the vertical alignment of all text on each line displayed within a paragraph Specifies that all text shall be aligned to the top of each character Specifies that all text shall be aligned to the center of each character Specifies that all text shall be aligned to the baseline of each character Specifies that all text shall be aligned to the bottom of each character Specifies that all text shall be aligned automatically Specifies the text wrapping options for a text box when tight wrapping is set for the text box in the paragraph. No lines of the paragraph allow the surrounding text to tightly wrap around their edges. All lines of the paragraph allow the surrounding text to tightly wrap to their edges. Only the first and last lines of the paragraph allow the surrounding text to tightly wrap around their edges. Only the first line of the paragraph allows the surrounding text to tightly wrap around its edges. Only the last line of the paragraph allows the surrounding text to tightly wrap around its edges. Specifies the drop cap type. No drop cap Regular drop cap, which is a single letter beginning at the leading edge of the paragraph. A drop cap which is in the margin of the page, outside of the paragraph. Specifies structure of the clipped data. Size of the data. Pointer to the data. Format of the data. Represents Clip data wrapper class. Reads the specified PROPVARIANT variable. The PROPVARIANT variable. Reads the specified data. The data. Writes the specified PROPVARIANT variable. The PROPVARIANT variable. Writes to string. Returns the updated string. Gets or sets bullet character pattern for the specified list level. Gets or sets the string inserted after the number for the specified list level. Gets or sets the string inserted before the number for the specified list level. Gets or sets the string inserted before the number for the specified list level. Gets or sets the string inserted before the number for the specified list level. Gets or sets the left margin. Gets or sets the text indent. Gets/Sets the list level text alignment property Closes the instances used in OListStyle Gets or sets the name for the list style. The string that represents the style name.