FontCollection.Contains

Contains(string)

Checks if font exists in font collection.

public bool Contains(string name)
ParameterTypeDescription
nameStringFont name.

Return Value

True in case collection contains the font with specified name.

See Also


Contains(Font)

Determines whether the collection contains a specific value.

public bool Contains(Font item)
ParameterTypeDescription
itemFontThe object to locate in the collection

Return Value

true if item is found in the collection; otherwise, false.

See Also