共用方式為


BooleanValue.FromBoolean(Boolean) Method

Definition

Returns a new BooleanValue object that was created by using the supplied Boolean value.

public static DocumentFormat.OpenXml.BooleanValue FromBoolean (bool value);
static member FromBoolean : bool -> DocumentFormat.OpenXml.BooleanValue
Public Shared Function FromBoolean (value As Boolean) As BooleanValue

Parameters

value
Boolean

A Boolean value to use to create a new BooleanValue object.

Returns

A BooleanValue that corresponds to the value parameter.

Applies to