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;
 }
示例#2
0
 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;
             }
     }
 }
示例#3
0
 public FormattingOptions WithSemicolonStyle(PlacementStyle style)
 {
     return(With(semicolonStyle: style));
 }
示例#4
0
 public FormattingOptions WithPipeOperatorStyle(PlacementStyle style)
 {
     return(With(pipeOperatorStyle: style));
 }
 public FormattingOptions WithStatementStyle(PlacementStyle style)
 {
     return(With(statementStyle: style));
 }