Просмотр исходного кода

Cleanup in code: Applied auto-property for trivial get;set; in Border class

master
MadBoy_cp 13 лет назад
Родитель
Сommit
a76125ae93
1 измененных файлов: 11 добавлений и 40 удалений
  1. 11
    40
      DocX/Border.cs

+ 11
- 40
DocX/Border.cs Просмотреть файл

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing;
namespace Novacode
{
@@ -12,48 +8,23 @@ namespace Novacode
/// </summary>
public class Border
{
BorderStyle tcbs;
Color color;
BorderSize size;
int space;
public BorderStyle Tcbs
{
get { return tcbs; }
set { tcbs = value; }
}
public BorderSize Size
{
get { return size; }
set { size = value; }
}
public int Space
{
get { return space; }
set { space = value; }
}
public Color Color
{
get { return color; }
set { color = value; }
}
public BorderStyle Tcbs { get; set; }
public BorderSize Size { get; set; }
public int Space { get; set; }
public Color Color { get; set; }
public Border()
{
this.tcbs = BorderStyle.Tcbs_single;
this.size = BorderSize.one;
this.space = 0;
this.color = Color.Black;
this.Tcbs = BorderStyle.Tcbs_single;
this.Size = BorderSize.one;
this.Space = 0;
this.Color = Color.Black;
}
public Border(BorderStyle tcbs, BorderSize size, int space, Color color)
{
this.Tcbs = tcbs;
this.size = size;
this.space = space;
this.Size = size;
this.Space = space;
this.Color = color;
}
}

Загрузка…
Отмена
Сохранить