bool IsBlank(DocumentObject docObj) { if (docObj is Text) { if (((Text)docObj).Content == " ") return true; } return false; }