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 的值。

适用于