ClientDocumentTabManagerOpenCardAsync - метод
The open card.
Пространство имён: Tessa.UIСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
public Task<IUIContextObject> OpenCardAsync(
Guid cardID,
string cardName,
string cardInfo,
IWorkspaceModel content,
string fullCardName = null,
string fullCardInfo = null,
bool openToTheRightOfSelectedTab = false,
bool ignorePreviouslyOpenedTab = false,
CancellationToken cancellationToken = default
)
Public Function OpenCardAsync (
cardID As Guid,
cardName As String,
cardInfo As String,
content As IWorkspaceModel,
Optional fullCardName As String = Nothing,
Optional fullCardInfo As String = Nothing,
Optional openToTheRightOfSelectedTab As Boolean = false,
Optional ignorePreviouslyOpenedTab As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IUIContextObject)
public:
virtual Task<IUIContextObject^>^ OpenCardAsync(
Guid cardID,
String^ cardName,
String^ cardInfo,
IWorkspaceModel^ content,
String^ fullCardName = nullptr,
String^ fullCardInfo = nullptr,
bool openToTheRightOfSelectedTab = false,
bool ignorePreviouslyOpenedTab = false,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract OpenCardAsync :
cardID : Guid *
cardName : string *
cardInfo : string *
content : IWorkspaceModel *
?fullCardName : string *
?fullCardInfo : string *
?openToTheRightOfSelectedTab : bool *
?ignorePreviouslyOpenedTab : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _fullCardName = defaultArg fullCardName null
let _fullCardInfo = defaultArg fullCardInfo null
let _openToTheRightOfSelectedTab = defaultArg openToTheRightOfSelectedTab false
let _ignorePreviouslyOpenedTab = defaultArg ignorePreviouslyOpenedTab false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IUIContextObject>
override OpenCardAsync :
cardID : Guid *
cardName : string *
cardInfo : string *
content : IWorkspaceModel *
?fullCardName : string *
?fullCardInfo : string *
?openToTheRightOfSelectedTab : bool *
?ignorePreviouslyOpenedTab : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _fullCardName = defaultArg fullCardName null
let _fullCardInfo = defaultArg fullCardInfo null
let _openToTheRightOfSelectedTab = defaultArg openToTheRightOfSelectedTab false
let _ignorePreviouslyOpenedTab = defaultArg ignorePreviouslyOpenedTab false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IUIContextObject>
- cardID Guid
-
The card id.
- cardName String
-
The card name.
- cardInfo String
-
The card info.
- content IWorkspaceModel
-
The content.
- fullCardName String (Optional)
-
The full card name or null, if cardName is used instead.
- fullCardInfo String (Optional)
-
The full card info or null, if cardInfo is used instead.
- openToTheRightOfSelectedTab Boolean (Optional)
-
Если будет открыта новая вкладка (а не выбрана уже существующая), то она будет открыта справа от текущей выбранной вкладки.
В противном случае вкладка добавляется в конец.
- ignorePreviouslyOpenedTab Boolean (Optional)
-
Признак того, что вкладка с уже открытой карточкой с тем же идентификатором игнорируется и не активируется,
т.е. всегда открывается новая вкладка.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskIUIContextObject
Объект, содержащий информацию об открытой карточке.
IDocumentTabManagerOpenCardAsync(Guid, String, String, IWorkspaceModel, String, String, Boolean, Boolean, CancellationToken)