Method BindToTextBlock
| Improve this Doc View SourceBindToTextBlock(Column, String, IFormatProvider)
Binds column to System.Windows.Controls.TextBlock.
Declaration
public static RowBinding<TextBlock> BindToTextBlock(this Column source, string format = null, IFormatProvider formatProvider = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Column | source | The source column. |
| System.String | format | A composite format string. |
| System.IFormatProvider | formatProvider | An object that supplies culture-specific formatting information. |
Returns
| Type | Description |
|---|---|
| RowBinding<System.Windows.Controls.TextBlock> | The row binding object. |
BindToTextBlock(Column, Func<RowPresenter, String>, IFormatProvider)
Binds column to System.Windows.Controls.TextBlock.
Declaration
public static RowBinding<TextBlock> BindToTextBlock(this Column source, Func<RowPresenter, string> format, IFormatProvider formatProvider = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Column | source | The source column. |
| System.Func<RowPresenter, System.String> | format | A delegate to return composite format string. |
| System.IFormatProvider | formatProvider | An object that supplies culture-specific formatting information. |
Returns
| Type | Description |
|---|---|
| RowBinding<System.Windows.Controls.TextBlock> | The row binding object. |
BindToTextBlock(Model, String)
Binds text to System.Windows.Controls.TextBlock as row binding.
Declaration
public static RowBinding<TextBlock> BindToTextBlock(this Model _, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | _ | The model. |
| System.String | text | The text. |
Returns
| Type | Description |
|---|---|
| RowBinding<System.Windows.Controls.TextBlock> | The row binding object. |
BindToTextBlock<T>(Func<T>, String, IFormatProvider)
Binds function to System.Windows.Controls.TextBlock.
Declaration
public static ScalarBinding<TextBlock> BindToTextBlock<T>(this Func<T> source, string format = null, IFormatProvider formatProvider = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<T> | source | The source function that returns a value. |
| System.String | format | A composite format string. |
| System.IFormatProvider | formatProvider | An object that supplies culture-specific formatting information. |
Returns
| Type | Description |
|---|---|
| ScalarBinding<System.Windows.Controls.TextBlock> | The scalar binding object. |
Type Parameters
| Name | Description |
|---|---|
| T | The function return type. |
BindToTextBlock(BasePresenter, String)
Binds the text to System.Windows.Controls.TextBlock as scalar binding.
Declaration
public static ScalarBinding<TextBlock> BindToTextBlock(this BasePresenter presenter, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| BasePresenter | presenter | The presenter. |
| System.String | text | The text. |
Returns
| Type | Description |
|---|---|
| ScalarBinding<System.Windows.Controls.TextBlock> | The scalar binding object. |
BindToTextBlock(Scalar, String, IFormatProvider)
Binds scalar data to System.Windows.Controls.TextBlock.
Declaration
public static ScalarBinding<TextBlock> BindToTextBlock(this Scalar source, string format = null, IFormatProvider formatProvider = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Scalar | source | The source scalar data. |
| System.String | format | A composite format string. |
| System.IFormatProvider | formatProvider | An object that supplies culture-specific formatting information. |
Returns
| Type | Description |
|---|---|
| ScalarBinding<System.Windows.Controls.TextBlock> | The scalar binding object. |