CSharpFormattingOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class CSharpFormattingOptions abstract sealed
public static class CSharpFormattingOptions
type CSharpFormattingOptions = class
Public Class CSharpFormattingOptions
- Inheritance
-
CSharpFormattingOptions
Properties
| Name | Description |
|---|---|
| IndentBlock | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.IndentBlock |
| IndentBraces | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.IndentBraces |
| IndentSwitchCaseSection | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.IndentSwitchCaseSection |
| IndentSwitchCaseSectionWhenBlock | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock |
| IndentSwitchSection | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.IndentSwitchSection |
| LabelPositioning | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.LabelPositioning |
| NewLineForCatch | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLineForCatch |
| NewLineForClausesInQuery | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLineForClausesInQuery |
| NewLineForElse | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLineForElse |
| NewLineForFinally | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLineForFinally |
| NewLineForMembersInAnonymousTypes | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLineForMembersInAnonymousTypes |
| NewLineForMembersInObjectInit | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLineForMembersInObjectInit |
| NewLinesForBracesInAccessors | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInAccessors |
| NewLinesForBracesInAnonymousMethods | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInAnonymousMethods |
| NewLinesForBracesInAnonymousTypes | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInAnonymousTypes |
| NewLinesForBracesInControlBlocks | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInControlBlocks |
| NewLinesForBracesInLambdaExpressionBody | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInLambdaExpressionBody |
| NewLinesForBracesInMethods | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInMethods |
| NewLinesForBracesInObjectCollectionArrayInitializers | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInObjectCollectionArrayInitializers |
| NewLinesForBracesInProperties | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInProperties |
| NewLinesForBracesInTypes | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.NewLinesForBracesInTypes |
| SpaceAfterCast | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceAfterCast |
| SpaceAfterColonInBaseTypeDeclaration | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceAfterColonInBaseTypeDeclaration |
| SpaceAfterComma | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceAfterComma |
| SpaceAfterControlFlowStatementKeyword | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword |
| SpaceAfterDot | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceAfterDot |
| SpaceAfterMethodCallName | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceAfterMethodCallName |
| SpaceAfterSemicolonsInForStatement | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceAfterSemicolonsInForStatement |
| SpaceBeforeColonInBaseTypeDeclaration | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBeforeColonInBaseTypeDeclaration |
| SpaceBeforeComma | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBeforeComma |
| SpaceBeforeDot | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBeforeDot |
| SpaceBeforeOpenSquareBracket | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket |
| SpaceBeforeSemicolonsInForStatement | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBeforeSemicolonsInForStatement |
| SpaceBetweenEmptyMethodCallParentheses | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBetweenEmptyMethodCallParentheses |
| SpaceBetweenEmptyMethodDeclarationParentheses | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBetweenEmptyMethodDeclarationParentheses |
| SpaceBetweenEmptySquareBrackets | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceBetweenEmptySquareBrackets |
| SpacesIgnoreAroundVariableDeclaration | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpacesIgnoreAroundVariableDeclaration |
| SpaceWithinCastParentheses | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceWithinCastParentheses |
| SpaceWithinExpressionParentheses | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceWithinExpressionParentheses |
| SpaceWithinMethodCallParentheses | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceWithinMethodCallParentheses |
| SpaceWithinMethodDeclarationParenthesis | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceWithinMethodDeclarationParenthesis |
| SpaceWithinOtherParentheses | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceWithinOtherParentheses |
| SpaceWithinSquareBrackets | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpaceWithinSquareBrackets |
| SpacingAfterMethodDeclarationName | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpacingAfterMethodDeclarationName |
| SpacingAroundBinaryOperator | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.SpacingAroundBinaryOperator |
| WrappingKeepStatementsOnSingleLine | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine |
| WrappingPreserveSingleLine | Microsoft.CodeAnalysis.CSharp.Formatting.CSharpFormattingOptions2.WrappingPreserveSingleLine |