TableCellViewModelCreate - метод |
Пространство имён:
Tessa.UI.Views.Content
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис [NotNullAttribute]
public static TableCellViewModel Create(
[NotNullAttribute] TableRowViewModel row,
[NotNullAttribute] TableColumnViewModel column,
[CanBeNullAttribute] Object value,
IContextMenuExtendedProvider contextMenuProvider,
[CanBeNullAttribute] string toolTip = null,
[CanBeNullAttribute] Brush background = null,
[CanBeNullAttribute] Brush foreground = null,
[CanBeNullAttribute] double? fontSize = null,
[CanBeNullAttribute] FontStretch? fontStretch = null,
[CanBeNullAttribute] FontWeight? fontWeight = null,
[CanBeNullAttribute] FontStyle? fontStyle = null,
[CanBeNullAttribute] FontFamily fontFamily = null,
[CanBeNullAttribute] HorizontalAlignment? horizontalAlignment = null,
[CanBeNullAttribute] VerticalAlignment? verticalAlignment = null,
[CanBeNullAttribute] TextAlignment? textAlignment = null,
[CanBeNullAttribute] Func<TableColumnViewModel, Object, (Object Value, string DisplayValue)> valueConverter = null
)
<NotNullAttribute>
Public Shared Function Create (
<NotNullAttribute> row As TableRowViewModel,
<NotNullAttribute> column As TableColumnViewModel,
<CanBeNullAttribute> value As Object,
contextMenuProvider As IContextMenuExtendedProvider,
<CanBeNullAttribute> Optional toolTip As String = Nothing,
<CanBeNullAttribute> Optional background As Brush = Nothing,
<CanBeNullAttribute> Optional foreground As Brush = Nothing,
<CanBeNullAttribute> Optional fontSize As Double? = Nothing,
<CanBeNullAttribute> Optional fontStretch As FontStretch? = Nothing,
<CanBeNullAttribute> Optional fontWeight As FontWeight? = Nothing,
<CanBeNullAttribute> Optional fontStyle As FontStyle? = Nothing,
<CanBeNullAttribute> Optional fontFamily As FontFamily = Nothing,
<CanBeNullAttribute> Optional horizontalAlignment As HorizontalAlignment? = Nothing,
<CanBeNullAttribute> Optional verticalAlignment As VerticalAlignment? = Nothing,
<CanBeNullAttribute> Optional textAlignment As TextAlignment? = Nothing,
<CanBeNullAttribute> Optional valueConverter As Func(Of TableColumnViewModel, Object, (Value As Object, DisplayValue As String)) = Nothing
) As TableCellViewModel
public:
[NotNullAttribute]
static TableCellViewModel^ Create(
[NotNullAttribute] TableRowViewModel^ row,
[NotNullAttribute] TableColumnViewModel^ column,
[CanBeNullAttribute] Object^ value,
IContextMenuExtendedProvider^ contextMenuProvider,
[CanBeNullAttribute] String^ toolTip = nullptr,
[CanBeNullAttribute] Brush^ background = nullptr,
[CanBeNullAttribute] Brush^ foreground = nullptr,
[CanBeNullAttribute] Nullable<double> fontSize = nullptr,
[CanBeNullAttribute] Nullable<FontStretch> fontStretch = nullptr,
[CanBeNullAttribute] Nullable<FontWeight> fontWeight = nullptr,
[CanBeNullAttribute] Nullable<FontStyle> fontStyle = nullptr,
[CanBeNullAttribute] FontFamily^ fontFamily = nullptr,
[CanBeNullAttribute] Nullable<HorizontalAlignment> horizontalAlignment = nullptr,
[CanBeNullAttribute] Nullable<VerticalAlignment> verticalAlignment = nullptr,
[CanBeNullAttribute] Nullable<TextAlignment> textAlignment = nullptr,
[CanBeNullAttribute] Func<TableColumnViewModel^, Object^, ValueTuple<Object^, String^>>^ valueConverter = nullptr
)
[<NotNullAttribute>]
static member Create :
[<NotNullAttribute>] row : TableRowViewModel *
[<NotNullAttribute>] column : TableColumnViewModel *
[<CanBeNullAttribute>] value : Object *
contextMenuProvider : IContextMenuExtendedProvider *
[<CanBeNullAttribute>] ?toolTip : string *
[<CanBeNullAttribute>] ?background : Brush *
[<CanBeNullAttribute>] ?foreground : Brush *
[<CanBeNullAttribute>] ?fontSize : Nullable<float> *
[<CanBeNullAttribute>] ?fontStretch : Nullable<FontStretch> *
[<CanBeNullAttribute>] ?fontWeight : Nullable<FontWeight> *
[<CanBeNullAttribute>] ?fontStyle : Nullable<FontStyle> *
[<CanBeNullAttribute>] ?fontFamily : FontFamily *
[<CanBeNullAttribute>] ?horizontalAlignment : Nullable<HorizontalAlignment> *
[<CanBeNullAttribute>] ?verticalAlignment : Nullable<VerticalAlignment> *
[<CanBeNullAttribute>] ?textAlignment : Nullable<TextAlignment> *
[<CanBeNullAttribute>] ?valueConverter : Func<TableColumnViewModel, Object, ValueTuple<Object, string>>
(* Defaults:
let _toolTip = defaultArg toolTip null
let _background = defaultArg background null
let _foreground = defaultArg foreground null
let _fontSize = defaultArg fontSize null
let _fontStretch = defaultArg fontStretch null
let _fontWeight = defaultArg fontWeight null
let _fontStyle = defaultArg fontStyle null
let _fontFamily = defaultArg fontFamily null
let _horizontalAlignment = defaultArg horizontalAlignment null
let _verticalAlignment = defaultArg verticalAlignment null
let _textAlignment = defaultArg textAlignment null
let _valueConverter = defaultArg valueConverter null
*)
-> TableCellViewModel
Параметры
- row
- Тип: Tessa.UI.Views.ContentTableRowViewModel
- column
- Тип: Tessa.UI.Views.ContentTableColumnViewModel
- value
- Тип: SystemObject
- contextMenuProvider
- Тип: Tessa.UI.MenuIContextMenuExtendedProvider
- toolTip (Optional)
- Тип: SystemString
- background (Optional)
- Тип: System.Windows.MediaBrush
- foreground (Optional)
- Тип: System.Windows.MediaBrush
- fontSize (Optional)
- Тип: SystemNullableDouble
- fontStretch (Optional)
- Тип: SystemNullableFontStretch
- fontWeight (Optional)
- Тип: SystemNullableFontWeight
- fontStyle (Optional)
- Тип: SystemNullableFontStyle
- fontFamily (Optional)
- Тип: System.Windows.MediaFontFamily
- horizontalAlignment (Optional)
- Тип: SystemNullableHorizontalAlignment
- verticalAlignment (Optional)
- Тип: SystemNullableVerticalAlignment
- textAlignment (Optional)
- Тип: SystemNullableTextAlignment
- valueConverter (Optional)
- Тип: SystemFuncTableColumnViewModel, Object, ValueTupleObject, String
Возвращаемое значение
Тип:
TableCellViewModelСм. также