TabProperties() { try { _DTE app = ApplicationObject.VisualStudioApplication; Properties props = app.get_Properties("TextEditor", "Basic"); vBasic = new TabProperty(props); props = app.get_Properties("TextEditor", "CSharp"); cSharp = new TabProperty(props); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.ToString()); } }
private void SetDTEProperty(string category, string page, string item, object value) { EnvDTE.Properties props = appobj_.get_Properties(category, page); EnvDTE.Property prop = props.Item(item); prop.Value = value; }