public Border ToBorder() { return(new Border { LeftBorder = LeftBorder?.ToBorder <LeftBorder>(), RightBorder = RightBorder?.ToBorder <RightBorder>(), TopBorder = TopBorder?.ToBorder <TopBorder>(), BottomBorder = BottomBorder?.ToBorder <BottomBorder>() }); }