D
David Thielen
Hi;
For a Selection sel, to get the TextRange, we have found that we need
to do:
TextRange fullText;
if (sel.Type == PpSelectionType.ppSelectionText)
{
Microsoft.Office.Interop.PowerPoint.ShapeRange spRange =
sel.ShapeRange;
Microsoft.Office.Interop.PowerPoint.Shape shapeOn =
spRange[1];
fullText = shapeOn.TextFrame.TextRange;
}
Because sel.TextRange throws an exception when getting some properties
like BoundLeft (when the selection Length == 0) and returns a
different value when there is a length.
Shouldn't both of these TextRanges be the same?
thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm
For a Selection sel, to get the TextRange, we have found that we need
to do:
TextRange fullText;
if (sel.Type == PpSelectionType.ppSelectionText)
{
Microsoft.Office.Interop.PowerPoint.ShapeRange spRange =
sel.ShapeRange;
Microsoft.Office.Interop.PowerPoint.Shape shapeOn =
spRange[1];
fullText = shapeOn.TextFrame.TextRange;
}
Because sel.TextRange throws an exception when getting some properties
like BoundLeft (when the selection Length == 0) and returns a
different value when there is a length.
Shouldn't both of these TextRanges be the same?
thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm