MimeKit.TextPart.IsFormat C# (CSharp) Method

IsFormat() private method

Determines whether or not the text is in the specified format.
Determines whether or not the text is in the specified format.
private IsFormat ( TextFormat format ) : bool
format TextFormat The text format.
return bool
		internal bool IsFormat (TextFormat format)
		{
			switch (format) {
			case TextFormat.Text:     return IsPlain;
			case TextFormat.Flowed:   return IsFlowed;
			case TextFormat.Html:     return IsHtml;
			case TextFormat.Enriched: return IsEnriched;
			case TextFormat.RichText: return IsRichText;
			default: return false;
			}
		}