Rune.IsPunctuation(Rune) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value that indicates whether the specified rune is categorized as a punctuation mark.
public:
static bool IsPunctuation(System::Text::Rune value);
public static bool IsPunctuation(System.Text.Rune value);
static member IsPunctuation : System.Text.Rune -> bool
Public Shared Function IsPunctuation (value As Rune) As Boolean
- value
- Rune
The rune to evaluate.
true
if value
is a punctuation mark; otherwise, false
.
This method is equivalent to querying GetUnicodeCategory(Rune) and comparing the result against any of the values ConnectorPunctuation, DashPunctuation, OpenPunctuation, ClosePunctuation, InitialQuotePunctuation, FinalQuotePunctuation, and OtherPunctuation.
For more information, see Char.IsPunctuation.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: