Im currently implementing a word processor and i want to underline a wrong word in the richtextbox(like MS words do..) .... i used an answer from a forum but it getting errors. what i did was is...."
FormattingInstructionCollection instructions = new FormattingInstructionCollection();<br/>
ParagraphFormat format1 = new ParagraphFormat();<br/>
<br/>
format1.UnderlineFormat = new UnderlineFormat(UnderlineStyle.Wave, UnderlineColor.Red);<br/>
instructions.Add(new FormattingInstruction(10, 5, format1)); //set the text from position 10 to position 15 underlined with a red wavy line"
but this code gets errors and can u tell me what are the references i have to use..
the error was(Error 4 The type or namespace name FormattingInstructionCollection could not be found (are you missing a using directive or an assembly reference?) E:gayaISSGCsssWindowsFormsApplication1Form1.cs
149 68 WindowsFormsApplication1<br/>
) ..
Thank you very much..
View the full article
FormattingInstructionCollection instructions = new FormattingInstructionCollection();<br/>
ParagraphFormat format1 = new ParagraphFormat();<br/>
<br/>
format1.UnderlineFormat = new UnderlineFormat(UnderlineStyle.Wave, UnderlineColor.Red);<br/>
instructions.Add(new FormattingInstruction(10, 5, format1)); //set the text from position 10 to position 15 underlined with a red wavy line"
but this code gets errors and can u tell me what are the references i have to use..
the error was(Error 4 The type or namespace name FormattingInstructionCollection could not be found (are you missing a using directive or an assembly reference?) E:gayaISSGCsssWindowsFormsApplication1Form1.cs
149 68 WindowsFormsApplication1<br/>
) ..
Thank you very much..
View the full article