C# Class Novacode.ExtensionsHeadings

ファイルを表示 Open project: WordDocX/DocX

Public Methods

Method Description
EnumDescription ( this enumValue ) : string
HasFlag ( this variable, Enum value ) : bool

From: http://stackoverflow.com/questions/4108828/generic-extension-method-to-see-if-an-enum-contains-a-flag Check to see if a flags enumeration has a specific flag set.

Heading ( this paragraph, HeadingType headingType ) : Paragraph

Method Details

EnumDescription() public static method

public static EnumDescription ( this enumValue ) : string
enumValue this
return string

HasFlag() public static method

From: http://stackoverflow.com/questions/4108828/generic-extension-method-to-see-if-an-enum-contains-a-flag Check to see if a flags enumeration has a specific flag set.
public static HasFlag ( this variable, Enum value ) : bool
variable this Flags enumeration to check
value System.Enum Flag to check for
return bool

Heading() public static method

public static Heading ( this paragraph, HeadingType headingType ) : Paragraph
paragraph this
headingType HeadingType
return Paragraph