Method TryGetPen NamespaceAlternet.Drawing AssemblyAlternet.UI.Common.dll TryGetPen(string) Tries to get a pen by its name. public static Pen? TryGetPen(string name) Parameters name string Returns Pen