private FormattingOptions( int indentationSize, bool insertMissingTokens, BrackettingStyle brackettingStyle, PlacementStyle pipeOperatorStyle, PlacementStyle statementStyle, PlacementStyle semicolonStyle) { this.IndentationSize = indentationSize; this.InsertMissingTokens = insertMissingTokens; this.BrackettingStyle = brackettingStyle; this.PipeOperatorStyle = pipeOperatorStyle; this.StatementStyle = statementStyle; this.SemicolonStyle = semicolonStyle; }
private void ApplyQuickLayout(LayoutObject obj, PlacementStyle style) { switch (style) { case PlacementStyle.Centered: { // Centered CentreObject(obj, m_screen.Bounds); break; } case PlacementStyle.Stretched: { // Stretch StretchObject(obj, m_screen.Bounds); break; } case PlacementStyle.FitWidth: { // Fit Width FitObjectWidth(obj, m_screen.Bounds); break; } case PlacementStyle.FitHeight: { // Fit Height FitObjectHeight(obj, m_screen.Bounds); break; } } }
public FormattingOptions WithSemicolonStyle(PlacementStyle style) { return(With(semicolonStyle: style)); }
public FormattingOptions WithPipeOperatorStyle(PlacementStyle style) { return(With(pipeOperatorStyle: style)); }
public FormattingOptions WithStatementStyle(PlacementStyle style) { return(With(statementStyle: style)); }