/// <summary> /// Sets the Top, Bottom, Left and Right borders. /// </summary> /// <param name="size">The size of the border in Twips</param> /// <param name="value"></param> /// <param name="color"></param> public void Set(UInt32Value size, BorderValue value, string color = "auto") { TopBorder.Set(size, value, color); LeftBorder.Set(size, value, color); BottomBorder.Set(size, value, color); RightBorder.Set(size, value, color); }
/// <summary> /// Sets the Top, Bottom, Left and Right borders for every cell in the row. /// </summary> /// <param name="size">The size of the border in Twips</param> /// <param name="value"></param> /// <param name="color"></param> public void SetBorders(UInt32Value size, BorderValue value, string color = "auto") { foreach (var cell in Cells) { cell.Borders.Set(size, value, color); } }
/// <summary> /// Sets the border values /// </summary> /// <param name="size">The size of the border in Twips</param> /// <param name="value"></param> /// <param name="color"></param> public Border Set(UInt32Value size, BorderValue value, string color = "auto") { Size = size; Value = value; Color = color; return(this); }
internal static DocumentFormat.OpenXml.Wordprocessing.BorderValues ToBorderValues(BorderValue value) { return((DocumentFormat.OpenXml.Wordprocessing.BorderValues)((int)value)); }
public Border(BorderValue value) { this.value = value; }