VbStrConv 枚举

定义

指示调用 StrConv 函数时要执行的转换类型。Indicates which type of conversion to perform when calling the StrConv function.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class VbStrConv
[System.Flags]
public enum VbStrConv
type VbStrConv = 
Public Enum VbStrConv
继承
VbStrConv
属性

字段

Hiragana 32

将字符串中片假名字符的转换为平假名字符。Converts Katakana characters in the string to Hiragana characters. 仅适用于日语区域设置。Applies to Japanese locale only. 此成员等效于 Visual Basic 常量 vbHiraganaThis member is equivalent to the Visual Basic constant vbHiragana.

Katakana 16

将字符串中的平假名字符转换为片假名字符。Converts Hiragana characters in the string to Katakana characters. 仅适用于日语区域设置。Applies to Japanese locale only. 此成员等效于 Visual Basic 常量 vbKatakanaThis member is equivalent to the Visual Basic constant vbKatakana.

LinguisticCasing 1024

将字符串从用于大小写的文件系统规则转换为语言规则。Converts the string from file system rules for casing to linguistic rules. 此成员等效于 Visual Basic 常量 vbLinguisticCasingThis member is equivalent to the Visual Basic constant vbLinguisticCasing.

Lowercase 2

将字符串转换为小写字符。Converts the string to lowercase characters. 此成员等效于 Visual Basic 常量 vbLowerCaseThis member is equivalent to the Visual Basic constant vbLowerCase.

LowerCase 2
Narrow 8

将字符串中的宽(双字节)字符转换为窄(单字节)字符。Converts wide (double-byte) characters in the string to narrow (single-byte) characters. 适用于亚洲区域设置。Applies to Asian locales. 此成员等效于 Visual Basic 常量 vbNarrowThis member is equivalent to the Visual Basic constant vbNarrow.

None 0

不执行任何转换。Performs no conversion.

ProperCase 3

将字符串中每个单词的第一个字母转换为大写。Converts the first letter of every word in the string to uppercase. 此成员等效于 Visual Basic 常量 vbProperCaseThis member is equivalent to the Visual Basic constant vbProperCase.

SimplifiedChinese 256

将字符串转换为简体中文字符。Converts the string to Simplified Chinese characters. 此成员等效于 Visual Basic 常量 vbSimplifiedChineseThis member is equivalent to the Visual Basic constant vbSimplifiedChinese.

TraditionalChinese 512

将字符串转换为繁体中文字符。Converts the string to Traditional Chinese characters. 此成员等效于 Visual Basic 常量 vbTraditionalChineseThis member is equivalent to the Visual Basic constant vbTraditionalChinese.

Uppercase 1

将字符串转换为大写字符。Converts the string to uppercase characters. 此成员等效于 Visual Basic 常量 vbUpperCaseThis member is equivalent to the Visual Basic constant vbUpperCase.

UpperCase 1
Wide 4

将字符串中的窄(单字节)字符转换为宽(双字节)字符。Converts narrow (single-byte) characters in the string to wide (double-byte) characters. 适用于亚洲区域设置。Applies to Asian locales. 此成员等效于 Visual Basic 常量 vbWideThis member is equivalent to the Visual Basic constant vbWide. 即使输入字符已经是全角,转换仍可能会使用范式 C。The conversion may use Normalization Form C even if an input character is already full-width. 例如,将字符串“は゛”(已是全角)规范化为“ば”。For example, the string "は゛" (which is already full-width) is normalized to "ば". 请参阅 Unicode 范式See Unicode normalization forms.

注解

调用StrConv函数时, 可以在代码中使用以下枚举成员来代替实际值。When you call the StrConv function, you can use the following enumeration members in your code in place of the actual values. Conversion 参数VbStrConv采用枚举成员。The Conversion argument takes the VbStrConv enumeration members.

适用于

另请参阅