PdfColorTryFromName Method

Attempts to create a color from a named web color

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
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