Click here to Skip to main content
15,915,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: foreach loop with controls Pin
S. Senthil Kumar1-Feb-05 8:27
S. Senthil Kumar1-Feb-05 8:27 
GeneralRe: foreach loop with controls Pin
Robert Rohde1-Feb-05 8:41
Robert Rohde1-Feb-05 8:41 
GeneralRe: foreach loop with controls Pin
Judah Gabriel Himango1-Feb-05 9:11
sponsorJudah Gabriel Himango1-Feb-05 9:11 
GeneralRe: foreach loop with controls Pin
Dwayner791-Feb-05 9:30
Dwayner791-Feb-05 9:30 
GeneralRe: foreach loop with controls Pin
Robert Rohde1-Feb-05 9:49
Robert Rohde1-Feb-05 9:49 
GeneralINdividual Character format in Richtext Pin
Vodstok1-Feb-05 8:07
Vodstok1-Feb-05 8:07 
GeneralRe: INdividual Character format in Richtext Pin
Robert Rohde1-Feb-05 9:07
Robert Rohde1-Feb-05 9:07 
GeneralRe: INdividual Character format in Richtext Pin
Heath Stewart1-Feb-05 10:08
protectorHeath Stewart1-Feb-05 10:08 
Robert Rohde wrote:
You will have to search for the specifications (Google is your friend ) or just try it out.

Actually, MSN Search[^] should be your friend now, but I'm not biased or anything. Wink | ;)

Rather than digging through RTF[^] using the RichTextBox.Rtf property content, you can obtain this information for a character range. IT really depends on what you need to do, though. Using a selection requires that you move the cursor around, which may or may not fulfill your requirements. If you want to get the formatting for the current selection, however, this is by far the easiest way (since those certainly no easy way to associate the current selection with a character range in the Rtf property).

If you read the member documentation[^] for the RichTextBox class, you'll notice a lot of public properties with "selection" or "selected" in them, like SelectionFont and SelectionColor. From this information you can easily obtain the formatting for the current selection. If you need to change the current selection to a different character range, adjust the SelectionStart and SelectionLength properties.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: INdividual Character format in Richtext Pin
Vodstok1-Feb-05 10:27
Vodstok1-Feb-05 10:27 
GeneralRe: INdividual Character format in Richtext Pin
Heath Stewart1-Feb-05 10:36
protectorHeath Stewart1-Feb-05 10:36 
GeneralRe: INdividual Character format in Richtext Pin
Heath Stewart1-Feb-05 10:39
protectorHeath Stewart1-Feb-05 10:39 
Questionhow to change the ProcessWindowStyle of a running process Pin
IsaacB1-Feb-05 7:31
IsaacB1-Feb-05 7:31 
AnswerRe: how to change the ProcessWindowStyle of a running process Pin
Dave Kreskowiak1-Feb-05 8:36
mveDave Kreskowiak1-Feb-05 8:36 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
Alex Korchemniy1-Feb-05 8:38
Alex Korchemniy1-Feb-05 8:38 
AnswerRe: how to change the ProcessWindowStyle of a running process Pin
Alex Korchemniy1-Feb-05 8:37
Alex Korchemniy1-Feb-05 8:37 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
IsaacB1-Feb-05 10:33
IsaacB1-Feb-05 10:33 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
Dave Kreskowiak1-Feb-05 12:04
mveDave Kreskowiak1-Feb-05 12:04 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
IsaacB1-Feb-05 12:34
IsaacB1-Feb-05 12:34 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
Dave Kreskowiak1-Feb-05 17:33
mveDave Kreskowiak1-Feb-05 17:33 
Generalubject : programming with .NET Framework to browsing my bank account, buy and sell stock shares Pin
Close Network1-Feb-05 5:56
Close Network1-Feb-05 5:56 
GeneralRe: ubject : programming with .NET Framework to browsing my bank account, buy and sell stock shares Pin
Charlie Williams1-Feb-05 6:05
Charlie Williams1-Feb-05 6:05 
GeneralFire Events on Windows Border Pin
de9me1-Feb-05 4:54
de9me1-Feb-05 4:54 
GeneralRe: Fire Events on Windows Border Pin
Judah Gabriel Himango1-Feb-05 9:13
sponsorJudah Gabriel Himango1-Feb-05 9:13 
GeneralRe: Fire Events on Windows Border Pin
Heath Stewart1-Feb-05 9:53
protectorHeath Stewart1-Feb-05 9:53 
GeneralRe: Fire Events on Windows Border Pin
Judah Gabriel Himango1-Feb-05 10:09
sponsorJudah Gabriel Himango1-Feb-05 10:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.