Click here to Skip to main content
16,004,991 members
Home / Discussions / C#
   

C#

 
GeneralRe: Did you know that '&' can be a logical AND operator? Pin
Rajasekharan Vengalil4-Dec-09 10:17
Rajasekharan Vengalil4-Dec-09 10:17 
GeneralRe: Did you know that '&' can be a logical AND operator? Pin
Luc Pattyn4-Dec-09 10:16
sitebuilderLuc Pattyn4-Dec-09 10:16 
GeneralRe: Did you know that '&' can be a logical AND operator? Pin
harold aptroot4-Dec-09 11:06
harold aptroot4-Dec-09 11:06 
GeneralRe: Did you know that '&' can be a logical AND operator? Pin
Luc Pattyn4-Dec-09 11:12
sitebuilderLuc Pattyn4-Dec-09 11:12 
GeneralRe: Did you know that '&' can be a logical AND operator? Pin
harold aptroot4-Dec-09 11:14
harold aptroot4-Dec-09 11:14 
GeneralRe: Did you know that '&' can be a logical AND operator? Pin
Luc Pattyn4-Dec-09 11:16
sitebuilderLuc Pattyn4-Dec-09 11:16 
GeneralRe: Did you know that '&' can be a logical AND operator? Pin
Abhinav S4-Dec-09 21:58
Abhinav S4-Dec-09 21:58 
QuestionVisual Studio addin - code color Pin
LimitedAtonement4-Dec-09 8:33
LimitedAtonement4-Dec-09 8:33 
Dear Sirs,

I would like to learn how to create Visual Studio (2008) addins. I thought I would start by making one that changes the color of the current line. This has proved to be very difficult. First, there are very few examples, so I go to the SDK. Second, it seems that the MSDN isn't consistent here. I don't know what I'm missing, but I see
DTE.get_Properties(String category, String page);
in code, but DTE properties[^] lists it differently, as
DTE.Properties {get;}
Whatever, I got past that, and now I use get_Properties(string, string). So, I found out how to get general color properties:
Properties ps = DTE.get_Properties("FontsAndColors", "TextEditor");
Property fC = ps.Item("FontsAndColorsItems");
FontsAndColorsItems fcs = fC.Object as FontsAndColorsItems;
foreach (ColorableItems a in fcs)
    Debug.WriteLine(a.Name);
(the above listing gives all the different properties in Tools > Options > Environment > Fonts and Colors > Display items:)

****GETTING TO THE POINT****

But, what I need is to be able to access LOCAL color properties. A start might be to be able to set the font color or background color, or whatever, of the current selection:
Document doc = DTE.ActiveDocument;
TextSelection sel = doc.Selection as TextSelection;

Or something like that. Any suggestions?

In Christ,
Aaron Laws

http://ProCure.com

AnswerRe: Visual Studio addin - code color Pin
LimitedAtonement4-Dec-09 9:04
LimitedAtonement4-Dec-09 9:04 
QuestionHow to make MouseHover and Tab selected on a tab control with images only Pin
sushantkaura4-Dec-09 8:27
sushantkaura4-Dec-09 8:27 
QuestionWinForms - DataGridView AutoResizeColumns not working. Pin
Sir Dot Net4-Dec-09 6:20
Sir Dot Net4-Dec-09 6:20 
QuestionHow to combine two datatables into single datatable Pin
K V Sekhar4-Dec-09 6:10
K V Sekhar4-Dec-09 6:10 
AnswerRe: How to combine two datatables into single datatable Pin
PIEBALDconsult4-Dec-09 6:54
mvePIEBALDconsult4-Dec-09 6:54 
AnswerRe: How to combine two datatables into single datatable Pin
Shameel4-Dec-09 7:01
professionalShameel4-Dec-09 7:01 
GeneralRe: How to combine two datatables into single datatable Pin
K V Sekhar6-Dec-09 4:22
K V Sekhar6-Dec-09 4:22 
GeneralRe: How to combine two datatables into single datatable Pin
Shameel7-Dec-09 7:00
professionalShameel7-Dec-09 7:00 
QuestionSignature panel with Mobile 2003.... Pin
Jacob Dixon4-Dec-09 5:00
Jacob Dixon4-Dec-09 5:00 
AnswerRe: Signature panel with Mobile 2003.... Pin
Jacob Dixon4-Dec-09 8:10
Jacob Dixon4-Dec-09 8:10 
QuestionHow to read the mail from OutLook Express using UIAutomation in C# 3.0 Pin
bruze4-Dec-09 4:20
bruze4-Dec-09 4:20 
QuestionHow to mock up a paging event? Pin
halifaxdal4-Dec-09 4:14
halifaxdal4-Dec-09 4:14 
AnswerRe: How to mock up a paging event? Pin
freakyit4-Dec-09 4:19
freakyit4-Dec-09 4:19 
GeneralRe: How to mock up a paging event? Pin
halifaxdal4-Dec-09 4:26
halifaxdal4-Dec-09 4:26 
QuestionSet cursor in textbox Pin
Wheels0124-Dec-09 3:42
Wheels0124-Dec-09 3:42 
AnswerRe: Set cursor in textbox Pin
freakyit4-Dec-09 4:00
freakyit4-Dec-09 4:00 
GeneralRe: Set cursor in textbox Pin
Wheels0124-Dec-09 4:16
Wheels0124-Dec-09 4:16 

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.