First, you have to get the Insertion Offset's for the start and end of the selected Text. You can get that by dim ioStart, ioEnd as FTInsertionOffset ftc.getdoc.getselectionrange(ioStart, ioEnd) And then you can use the GetText (overloaded) method. dim s as string = ftc.GetDoc.GetText(ioStart, ioEnd) Treat this a psuedocode as I've not tested it in the debugger but I believe that this will work. Bob Keeney BKeeney Software Inc. http://www.bkeeney.com On Jun 6, 2013, at 1:12 PM, Jim Pitchford <jim@xxxxxxxxxxxxxxxx> wrote: > This may sound like a dumb question, but how do you get the currently > selected text from within FTC? > > I can see how to get the paragraph, but not the selection within the > paragraph. > > Jim Pitchford > jim@xxxxxxxxxxxxxxxx > > FTC Website: http://www.bkeeney.com/products/formatted-text-control > Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev > List Archive: www.freelists.org/archives/ftcdev > Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in > the subject field. > > FTC Website: http://www.bkeeney.com/products/formatted-text-control Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev List Archive: www.freelists.org/archives/ftcdev Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in the subject field.