Controls whether page breaks are allowed between the paragraphs in a range.
HRESULT SetKeepWithNext( long Value );
Indicates if page breaks can be used between the paragraphs of a range. It can be one of the following possible values.
||Page breaks are not allowed between paragraphs.|
||Page breaks are allowed between paragraphs.|
||The property is undefined.|
If ITextPara::SetKeepWithNext succeeds, it returns S_OK. If the method fails, it returns one of the following COM error codes. For more information about COM error codes, see Error Handling in COM.
||Write access is denied.|
||The paragraph formatting object is attached to a range that has been deleted.|
This property corresponds to the PFE_KEEPNEXT effect described in the PARAFORMAT2 structure.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|