语言

OnOffValue.Implicit 操作员

定义

重载

名称 说明
Implicit(Boolean to OnOffValue)

将值隐式转换为BooleanOnOffValue值。

Implicit(OnOffValue to Boolean)

将指定的 OnOffValue 对象隐式转换为 Boolean 值。

Implicit(Boolean to OnOffValue)

将值隐式转换为BooleanOnOffValue值。

public static implicit operator DocumentFormat.OpenXml.OnOffValue(bool value);
static member op_Implicit : bool -> DocumentFormat.OpenXml.OnOffValue
Public Shared Widening Operator CType (value As Boolean) As OnOffValue

参数

value
Boolean

要 Boolean 转换的值。

返回

转换后的 OnOffValue。

适用于

Implicit(OnOffValue to Boolean)

将指定的 OnOffValue 对象隐式转换为 Boolean 值。

public static implicit operator bool(DocumentFormat.OpenXml.OnOffValue xmlAttribute);
public static implicit operator bool(DocumentFormat.OpenXml.OnOffValue value);
static member op_Implicit : DocumentFormat.OpenXml.OnOffValue -> bool
static member op_Implicit : DocumentFormat.OpenXml.OnOffValue -> bool
Public Shared Widening Operator CType (xmlAttribute As OnOffValue) As Boolean
Public Shared Widening Operator CType (value As OnOffValue) As Boolean

参数

xmlAttributevalue
OnOffValue

返回

转换后 Boolean 的值。

适用于