Table of Contents

Method IsMetafileContentType

Namespace
DocWright.Core.Metafiles
Assembly
DocWright.Core.dll

IsMetafileContentType(string?)

Returns true when the content type names a metafile format, regardless of the bytes.

public static bool IsMetafileContentType(string? contentType)

Parameters

contentType string

The declared content type, or null.

Returns

bool

True when the type is one of the EMF or WMF spellings in use.

Remarks

The comparison is ordinal and case-insensitive because a content type is ASCII by definition and an invariant casing rule keeps the tr-TR leg honest.