BlockFind Method

[Top]  [Chapter]  [Previous]  [Next]

Locates a header or footer layer.


IWPDataBlock BlockFind([In] DataBlockKind Kind, [In] DataBlockRange Range, [In] string Name, [In] int SectionID);


This method is used to check if a certain header or footer layer exists. If it does, its ID, >0 is retuned. This ID can be used in even OnGetSpecialText to select this header or footer for a certain page.IWPDataBlock reference.


To delete a block (such a header or footer text) call the "Delete" method published by the interface IWPDataBlock.


Note: Please don't forget to call ReleaseInt() with the returned interface at the end of your code.


[idh_iwpmemo_blockfind.htm]    Copyright © 2007 by WPCubed GmbH