[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.PrintManager.HasPrintContent

HasPrintContent Method

HasPrintContent(IRange)

Returns whether the specified range contains content to print.

Declaration
public bool HasPrintContent(IRange range)
Public Function HasPrintContent(range As IRange) As Boolean
Parameters
Type Name Description
IRange range

The printed range of a page. Must not be null.

Returns
Type Description
bool true if the specified range contains printable content; otherwise, false.
Examples
worksheet.PageSetup.PrintArea = "B2:D6";
worksheet.Range["B2:D6"].Value = "Test";
PrintManager printManager = new PrintManager();
bool hasContent = printManager.HasPrintContent(worksheet.Range["B2:D6"]);
Exceptions
Type Condition
NullReferenceException

if range is null.