33 instantiations of CheckBoxOptionViewModel
Microsoft.VisualStudio.LanguageServices.CSharp (33)
Options\Formatting\IndentationViewModel.cs (5)
86
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.IndentBlock, CSharpVSResources.Indent_block_contents, BlockContentPreview, this, optionStore));
87
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.IndentBraces, CSharpVSResources.Indent_open_and_close_braces, IndentBracePreview, this, optionStore));
88
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.IndentSwitchCaseSection, CSharpVSResources.Indent_case_contents, SwitchCasePreview, this, optionStore));
89
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock, CSharpVSResources.Indent_case_contents_when_block, SwitchCaseWhenBlockPreview, this, optionStore));
90
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.IndentSwitchSection, CSharpVSResources.Indent_case_labels, SwitchCasePreview, this, optionStore));
Options\Formatting\NewLinesViewModel.cs (6)
248
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.NewLineForElse, CSharpVSResources.Place_else_on_new_line, s_ifElsePreview, this, optionStore));
249
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.NewLineForCatch, CSharpVSResources.Place_catch_on_new_line, s_tryCatchFinallyPreview, this, optionStore));
250
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.NewLineForFinally, CSharpVSResources.Place_finally_on_new_line, s_tryCatchFinallyPreview, this, optionStore));
254
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.NewLineForMembersInObjectInit, CSharpVSResources.Place_members_in_object_initializers_on_new_line, s_objectInitializerPreview, this, optionStore));
255
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.NewLineForMembersInAnonymousTypes, CSharpVSResources.Place_members_in_anonymous_types_on_new_line, s_anonymousTypePreview, this, optionStore));
256
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.NewLineForClausesInQuery, CSharpVSResources.Place_query_expression_clauses_on_new_line, s_queryExpressionPreview, this, optionStore));
Options\Formatting\SpacingViewModel.cs (20)
128
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpacingAfterMethodDeclarationName, CSharpVSResources.Insert_space_between_method_name_and_its_opening_parenthesis, s_methodPreview, this, optionStore));
129
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceWithinMethodDeclarationParenthesis, CSharpVSResources.Insert_space_within_parameter_list_parentheses, s_methodPreview, this, optionStore));
130
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBetweenEmptyMethodDeclarationParentheses, CSharpVSResources.Insert_space_within_empty_parameter_list_parentheses, s_methodPreview, this, optionStore));
134
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceAfterMethodCallName, CSharpVSResources.Insert_space_between_called_method_name_and_its_opening_parenthesis, s_methodPreview, this, optionStore));
135
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceWithinMethodCallParentheses, CSharpVSResources.Insert_space_within_argument_list_parentheses, s_methodPreview, this, optionStore));
136
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBetweenEmptyMethodCallParentheses, CSharpVSResources.Insert_space_within_empty_argument_list_parentheses, s_methodPreview, this, optionStore));
140
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword, CSharpVSResources.Insert_space_after_keywords_in_control_flow_statements, s_forDelimiterPreview, this, optionStore));
147
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceAfterCast, CSharpVSResources.Insert_space_after_cast, s_castPreview, this, optionStore));
148
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpacesIgnoreAroundVariableDeclaration, CSharpVSResources.Ignore_spaces_in_declaration_statements, s_declarationSpacingPreview, this, optionStore));
152
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket, CSharpVSResources.Insert_space_before_open_square_bracket, s_bracketPreview, this, optionStore));
153
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBetweenEmptySquareBrackets, CSharpVSResources.Insert_space_within_empty_square_brackets, s_bracketPreview, this, optionStore));
154
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceWithinSquareBrackets, CSharpVSResources.Insert_spaces_within_square_brackets, s_bracketPreview, this, optionStore));
158
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceAfterColonInBaseTypeDeclaration, CSharpVSResources.Insert_space_after_colon_for_base_or_interface_in_type_declaration, s_baseColonPreview, this, optionStore));
159
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceAfterComma, CSharpVSResources.Insert_space_after_comma, s_delimiterPreview, this, optionStore));
160
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceAfterDot, CSharpVSResources.Insert_space_after_dot, s_delimiterPreview, this, optionStore));
161
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceAfterSemicolonsInForStatement, CSharpVSResources.Insert_space_after_semicolon_in_for_statement, s_forDelimiterPreview, this, optionStore));
162
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBeforeColonInBaseTypeDeclaration, CSharpVSResources.Insert_space_before_colon_for_base_or_interface_in_type_declaration, s_baseColonPreview, this, optionStore));
163
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBeforeComma, CSharpVSResources.Insert_space_before_comma, s_delimiterPreview, this, optionStore));
164
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBeforeDot, CSharpVSResources.Insert_space_before_dot, s_delimiterPreview, this, optionStore));
165
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.SpaceBeforeSemicolonsInForStatement, CSharpVSResources.Insert_space_before_semicolon_in_for_statement, s_forDelimiterPreview, this, optionStore));
Options\Formatting\WrappingViewModel.cs (2)
41
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.WrappingPreserveSingleLine, CSharpVSResources.Leave_block_on_single_line, s_blockPreview, this, optionStore));
42
Items.Add(new
CheckBoxOptionViewModel
(CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine, CSharpVSResources.Leave_statements_and_member_declarations_on_the_same_line, s_declarationPreview, this, optionStore));
8 references to CheckBoxOptionViewModel
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
Options\OptionViewModelTests.cs (6)
57
var
checkbox = viewModel.Items.OfType<
CheckBoxOptionViewModel
>().First();
82
var
checkbox = viewModel.Items.OfType<
CheckBoxOptionViewModel
>().Where(c => c.Option == CSharpFormattingOptions2.SpacingAfterMethodDeclarationName).First();
94
var
checkbox = viewModel.Items.OfType<
CheckBoxOptionViewModel
>().Where(c => c.Option == CSharpFormattingOptions2.SpacingAfterMethodDeclarationName).First();
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\OptionPreviewControl.xaml.cs (2)
86
var
firstItem = this.ViewModel.Items.OfType<
CheckBoxOptionViewModel
>().First();