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 |
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> |