Show / Hide Table of Contents

Class Element.String

Inheritance
System.Object
Element.String
Namespace: Votanic
Assembly: Votanic.Core.dll
Syntax
public class String

Methods

Contains(String, Boolean, Boolean)

Return true if the TEXT parameter or text variable containes others.
當 TEXT 參數或文字變數包含對方時傳回 true。

int s = vTexts.FindIndex(Element.String.Contains("TEXT"));

Declaration
public static Predicate<string> Contains(string text, bool singleSide = true, bool caseSensitive = false)
Parameters
Type Name Description
System.String text

Checking text
檢查文字

System.Boolean singleSide

Only check element name contains TEXT parameter
只檢查元素名義包含 TEXT 參數

System.Boolean caseSensitive

Check with case sensitive
檢查大小寫

Returns
Type Description
System.Predicate<System.String>

Equals(String, Boolean)

Return true if the text variable is equals to TEXT parameter.
當 TEXT 參數與文字變數相同時傳回 true。

int s = vTexts.FindIndex(Element.String.Equals("TEXT"));

Declaration
public static Predicate<string> Equals(string text, bool caseSensitive = false)
Parameters
Type Name Description
System.String text

Checking text
檢查文字

System.Boolean caseSensitive

Check with case sensitive
檢查大小寫

Returns
Type Description
System.Predicate<System.String>
In This Article
Back to top Generated by DocFX