PreferredWidth
FromPercent Method
|
Creates a PreferredWidth instance from a percentage value.
Namespace:
Spire.Doc
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public static PreferredWidth FromPercent(
double percent
)
Public Shared Function FromPercent (
percent As Double
) As PreferredWidth
public:
static PreferredWidth^ FromPercent(
double percent
)
static member FromPercent :
percent : float -> PreferredWidth
Parameters
-
percent
-
Type:
System
Double
The percentage value representing the preferred width, which must be between 0 and MaxPercent.
Return Value
Type:
PreferredWidth
A PreferredWidth instance set to the specified percentage.
See Also