コード例 #1
0
 public BorderProperties(double? width = null, LineStyle style = null, string color = null, MarkupMetric metric = null)
 {
     Width = width;
     Style = style;
     Color = color;
     Metric = metric;
 }
コード例 #2
0
ファイル: Font.cs プロジェクト: medelbrock/Html.Markup
 public Font(double? size = null, double? weight = null, FontStyle style = null, MarkupMetric metric = null, string family = null)
 {
     if (size.HasValue)
         Size = size;
     if (weight.HasValue)
         Weight = weight;
     if (style != null)
         Style = style;
     if (metric != null)
         Metric = metric;
     if (!string.IsNullOrEmpty(family))
         Family = family;
 }