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