public bool HasEscherPicture(CharacterRun run) { if (run.IsSpecialCharacter() && !run.IsObj() && !run.IsOle2() && !run.IsData() && run.Text.StartsWith("\u0008")) { return(true); } return(false); }
/** * determines whether specified CharacterRun Contains reference to a picture * @param run */ public bool HasPicture(CharacterRun run) { if (run.IsSpecialCharacter() && !run.IsObj() && !run.IsOle2() && !run.IsData()) { // Image should be in it's own run, or in a run with the end-of-special marker if ("\u0001".Equals(run.Text) || "\u0001\u0015".Equals(run.Text)) { return(IsBlockContainsImage(run.GetPicOffset())); } } return(false); }