ResolutionTry Parse(String, IFormat Provider, Resolution) Method
Parses a string into a Resolution structure.
Definition
Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
if s was successfully parsed; otherwise, .
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
C#
public static bool TryParse(
string? s,
IFormatProvider? provider,
out Resolution? result
)VB
Public Shared Function TryParse (
s As String,
provider As IFormatProvider,
<OutAttribute> ByRef result As Resolution
) As BooleanC++
public:
static bool TryParse(
String^ s,
IFormatProvider^ provider,
[OutAttribute] Resolution% result
)F#
static member TryParse :
s : string *
provider : IFormatProvider *
result : Resolution byref -> bool Parameters
- s String
- The string to parse.
- provider IFormatProvider
- An object that provides culture-specific formatting information about s.
- result Resolution
- Receives the result of parsing s.
Return Value
Booleanif s was successfully parsed; otherwise, .
Implements
IParsableTSelfTryParse(String, IFormatProvider, TSelf)Remarks
Resolutions are represented as a string using the format "width,height". For example, "1920,1080" represents a resolution of 1920 by 1080 pixels.