public static NodeFormat CreateNodeFormat(MapNode node) { if (!node.HasFormatting()) { return(node.Tree.DefaultFormat); } else { var def = node.Tree.DefaultFormat; return(new NodeFormat( node.HasBackColor ? node.BackColor : def.BackColor, node.Bold, node.HasColor ? node.Color : def.Color, node.HasFontName ? node.FontName : def.FontName, node.HasFontSize ? node.FontSize : def.FontSize, node.Italic, node.Strikeout, node.HasLineColor ? node.LineColor : def.LineColor, node.HasLinePattern ? node.LinePattern : def.LinePattern, node.HasLineWidth ? node.LineWidth : def.LineWidth, node.HasShape ? node.Shape : def.Shape )); } }