[]
Returns whether the specified range contains content to print.
public bool HasPrintContent(IRange range)
Public Function HasPrintContent(range As IRange) As Boolean
| Type | Name | Description |
|---|---|---|
| IRange | range | The printed range of a page. Must not be |
| Type | Description |
|---|---|
| bool |
true
if the specified range contains printable content; otherwise, false.
|
worksheet.PageSetup.PrintArea = "B2:D6";
worksheet.Range["B2:D6"].Value = "Test";
PrintManager printManager = new PrintManager();
bool hasContent = printManager.HasPrintContent(worksheet.Range["B2:D6"]);
| Type | Condition |
|---|---|
| NullReferenceException | if |