public override string ToString() { var lineSign = IsDotted ? '.' : '-'; var len = Math.Max(2, ArrowLength); var leftLength = len / 2; var leftPart = new string(lineSign, leftLength); var rightPart = new string(lineSign, len - leftLength); var sugg = ArrowDirection == UmlArrowDirections.Auto ? "" : ArrowDirection.ToString().ToLower(); if (!Color.IsEmpty) { sugg = "[" + Color.PlantUmlCode + "]" + sugg; } var sb = new StringBuilder(); if (!string.IsNullOrEmpty(LeftSignDescription)) { sb.Append(LeftSignDescription.AddQuotes() + " "); } sb.Append(LeftSignText + leftPart + sugg + rightPart + RightSignText); if (!string.IsNullOrEmpty(RightSignDescription)) { sb.Append(" " + RightSignDescription.AddQuotes()); } return(sb.ToString()); }
public override string ToString() { var line = Dotted ? "." : "-"; var sugg = ArrowDirection == UmlArrowDirections.Auto ? "" : ArrowDirection.ToString().ToLower(); return(LeftSign + line + sugg + line + RightSign); }
public void SetArrowDirection(ArrowDirection direction) { VisualStateManager.GoToState(this, direction.ToString().ToLower(), true); }