K
Ken Getz
I can see how to create a discontiguous selection in the UI, but although
I've tried, I can't figure out how to create one programmatically.
Essentially (this is just a small part of a complex issue), I really need to
REMOVE a chunk from a user's selection. That is, if in the SelectionChanged
event, I discover that a user has included a content control in the
selection, I need to remove the content control from the selection. So I
guess this boils down to:
* How can I remove a chunk of the user's selection from being selected?
or
* How can I recreate the selection, without including a particular chunk?
Is there a generalized solution for this? I was hoping that the Selection
class would have a collection of (subselections--I didn't see such an object
in the OM), but I sure can't find it in the Object Browser or documentation.
Many thanks! -- Ken
I've tried, I can't figure out how to create one programmatically.
Essentially (this is just a small part of a complex issue), I really need to
REMOVE a chunk from a user's selection. That is, if in the SelectionChanged
event, I discover that a user has included a content control in the
selection, I need to remove the content control from the selection. So I
guess this boils down to:
* How can I remove a chunk of the user's selection from being selected?
or
* How can I recreate the selection, without including a particular chunk?
Is there a generalized solution for this? I was hoping that the Selection
class would have a collection of (subselections--I didn't see such an object
in the OM), but I sure can't find it in the Object Browser or documentation.
Many thanks! -- Ken