点击或拖拽改变大小

SubString 类

Represents sub-string of a full string starting at specific location with a specific length. 表示具有特定长度的特定位置开始的完整字符串的子字符串。
继承层次
SystemObject
  DSkin.Html.Core.UtilsSubString

命名空间:  DSkin.Html.Core.Utils
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public sealed class SubString

SubString 类型公开以下成员。

构造函数
  名称说明
公共方法SubString(String)
Init sub-string that is the full string.
公共方法SubString(String, Int32, Int32)
Init.
Top
属性
  名称说明
公共属性FullString
the full string that this sub-string is part of
公共属性Item
Get string char at specific index.
公共属性Length
the length of the sub-string starting at _startIdx
公共属性StartIdx
the start index of the sub-string
Top
方法
  名称说明
公共方法CutSubstring
Get a string of the sub-string.
This will create a new string object!
公共方法IsEmpty
Is the sub-string is empty string.
公共方法IsEmptyOrWhitespace
Is the sub-string is empty string or contains only whitespaces.
公共方法IsWhitespace
Is the sub-string contains only whitespaces (at least one).
公共方法Substring
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
公共方法ToString (重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法FormatDateTime
将数据以时间格式并对其格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatNumber
将数据以数值方式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatString
将数据以字符串格式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法Sleep
异步延迟执行代码,只能在主线程中调用
(由 DuiControlExtensions 定义。)
公共扩展器方法ToBool
将数据转换成Bool,如果转换失败返回False
(由 ObjectExtenstions 定义。)
公共扩展器方法ToDateTime
将数据转换成DateTime,如果转换失败返回空的时间
(由 ObjectExtenstions 定义。)
公共扩展器方法ToDouble
将数据转换成Double,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToEnumT
将数据转换成枚举,如果转换失败则返回默认值
(由 ObjectExtenstions 定义。)
公共扩展器方法ToFloat
将数据转换成Float,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToInt已重载。
将数据转换成int,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToInt(Int32)已重载。
数据转换成int,如果转换失败,返回errorResult
(由 ObjectExtenstions 定义。)
公共扩展器方法ToJson
将对象序列化成Json字符串
(由 JsonHelper 定义。)
公共扩展器方法ToLong
将数据转换成Long,如果转换失败返回0
(由 ObjectExtenstions 定义。)
Top
参见