C# Class Crisis.ColumnInfo

Represents a column to be used with StringFormatter.FormatInColumns.
显示文件 Open project: teeknofil/Crisis-Wordlist-Generator

Public Methods

Method Description
ColumnInfo ( int width, string content ) : System

Initializes a new instance of the ColumnInfo struct.

The word wrapping method used will be the one described by Crisis.WordWrappingMethod.Optimal, and each line in this column will be left aligned.

ColumnInfo ( int width, string content, Alignment alignment ) : System

Initializes a new instance of the ColumnInfo struct.

The word wrapping method used will be the one described by Crisis.WordWrappingMethod.Optimal.

ColumnInfo ( int width, string content, Alignment alignment, VerticalAlignment verticalAlignment ) : System

Initializes a new instance of the ColumnInfo struct.

ColumnInfo ( int width, string content, Alignment alignment, VerticalAlignment verticalAlignment, WordWrappingMethod method ) : System

Initializes a new instance of the ColumnInfo struct.

Equals ( object obj ) : bool

Indicates whether this instance and a specified object are equal.

GetHashCode ( ) : int

Returns the hash code for this instance.

operator ( ) : bool

Implements the operator ==.

Method Details

ColumnInfo() public method

Initializes a new instance of the ColumnInfo struct.
The word wrapping method used will be the one described by Crisis.WordWrappingMethod.Optimal, and each line in this column will be left aligned.
public ColumnInfo ( int width, string content ) : System
width int The width of the column in (fixed-width) characters.
content string The content of this column.
return System

ColumnInfo() public method

Initializes a new instance of the ColumnInfo struct.
The word wrapping method used will be the one described by Crisis.WordWrappingMethod.Optimal.
public ColumnInfo ( int width, string content, Alignment alignment ) : System
width int The width of the column in (fixed-width) characters.
content string The content of this column.
alignment Alignment The alignment to use for this column.
return System

ColumnInfo() public method

Initializes a new instance of the ColumnInfo struct.
public ColumnInfo ( int width, string content, Alignment alignment, VerticalAlignment verticalAlignment ) : System
width int The width of the column in (fixed-width) characters.
content string The content of this column.
alignment Alignment The alignment to use for this column.
verticalAlignment VerticalAlignment The vertical alignment to use for this column
return System

ColumnInfo() public method

Initializes a new instance of the ColumnInfo struct.
public ColumnInfo ( int width, string content, Alignment alignment, VerticalAlignment verticalAlignment, WordWrappingMethod method ) : System
width int The width of the column in (fixed-width) characters.
content string The content of this column.
alignment Alignment The alignment to use for this column.
verticalAlignment VerticalAlignment The vertical alignment to use for this column
method WordWrappingMethod The word wrapping method to use for this column
return System

Equals() public method

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object Another object to compare to.
return bool

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

operator() public static method

Implements the operator ==.
public static operator ( ) : bool
return bool