PdfColorTryFromName Method

Attempts to create a color from a named web color

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 14.10.0
C#
public static bool TryFromName(
	string name,
	out PdfColor color
)

Parameters

name  String
The color name
color  PdfColor
When this method returns, contains the color if the operation succeeded; otherwise, null

Return Value

Boolean
true if the color name was resolved; otherwise, false

See Also