本文整理汇总了C#中DocumentContext.GetOptionSet方法的典型用法代码示例。如果您正苦于以下问题:C# DocumentContext.GetOptionSet方法的具体用法?C# DocumentContext.GetOptionSet怎么用?C# DocumentContext.GetOptionSet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DocumentContext
的用法示例。
在下文中一共展示了DocumentContext.GetOptionSet方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SignatureMarkupCreator
public SignatureMarkupCreator (DocumentContext ctx, int offset)
{
this.offset = offset;
this.colorStyle = SyntaxModeService.GetColorStyle (Ide.IdeApp.Preferences.ColorScheme);
if (!this.colorStyle.FitsIdeSkin (Ide.IdeApp.Preferences.UserInterfaceSkin))
this.colorStyle = SyntaxModeService.GetDefaultColorStyle (Ide.IdeApp.Preferences.UserInterfaceSkin);
this.ctx = ctx;
if (ctx != null) {
this.options = ctx.GetOptionSet ();
} else {
this.options = MonoDevelop.Ide.TypeSystem.TypeSystemService.Workspace.Options;
}
}
示例2: SignatureMarkupCreator
public SignatureMarkupCreator (DocumentContext ctx, int offset)
{
this.offset = offset;
this.colorStyle = SyntaxModeService.GetColorStyle (MonoDevelop.Ide.IdeApp.Preferences.ColorScheme);
this.ctx = ctx;
if (ctx != null) {
if (ctx.ParsedDocument == null || ctx.AnalysisDocument == null) {
LoggingService.LogError ("Signature markup creator created with invalid context." + Environment.NewLine + Environment.StackTrace);
}
this.options = ctx.GetOptionSet ();
} else {
this.options = MonoDevelop.Ide.TypeSystem.TypeSystemService.Workspace.Options;
}
}
示例3: SignatureMarkupCreator
public SignatureMarkupCreator (DocumentContext ctx, int offset)
{
this.offset = offset;
try {
this.colorStyle = SyntaxModeService.GetColorStyle (Ide.IdeApp.Preferences.ColorScheme);
if (!this.colorStyle.FitsIdeTheme (Ide.IdeApp.Preferences.UserInterfaceTheme))
this.colorStyle = SyntaxModeService.GetDefaultColorStyle (Ide.IdeApp.Preferences.UserInterfaceTheme);
} catch (Exception e) {
LoggingService.LogError ("Error while getting the color style : " + Ide.IdeApp.Preferences.ColorScheme + " in ide theme : " + Ide.IdeApp.Preferences.UserInterfaceTheme, e);
this.colorStyle = SyntaxModeService.DefaultColorStyle;
}
this.ctx = ctx;
if (ctx != null) {
this.options = ctx.GetOptionSet ();
} else {
this.options = MonoDevelop.Ide.TypeSystem.TypeSystemService.Workspace.Options;
}
}