久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

String.PadLeft Method

 ThinkTank_引擎 2014-09-29

Right-aligns the characters in this instance, padding on the left with spaces or a specified Unicode character for a specified total length.

Overload List

Right-aligns the characters in this instance, padding with spaces on the left for a specified total length.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function PadLeft(Integer) As String
[C#] public string PadLeft(int);
[C++] public: String* PadLeft(int);
[JScript] public function PadLeft(int) : String;

Right-aligns the characters in this instance, padding on the left with a specified Unicode character for a specified total length.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function PadLeft(Integer, Char) As String
[C#] public string PadLeft(int, char);
[C++] public: String* PadLeft(int, __wchar_t);
[JScript] public function PadLeft(int, Char) : String;

Example

[Visual Basic, C++, JScript] The following code example demonstrates the PadLeft method.

[Visual Basic, C++, JScript] Note   This example shows how to use one of the overloaded versions of PadLeft. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
Dim str As String
Dim pad As Char
str = "forty-two"
pad = "."c
Console.WriteLine(str.PadLeft(15, pad)) ' Displays "......forty-two".
Console.WriteLine(str.PadLeft(2,  pad)) ' Displays "forty-two".

[C++] 
String *str = L"forty-two";
Console::WriteLine(str-> PadLeft(15, L'.')); // Displays "......forty-two".
Console::WriteLine(str-> PadLeft(2,  L'.')); // Displays "forty-two".

[JScript] 
var str : String;
var pad : char;
str = "forty-two";
pad = ".";
Console.WriteLine(str.PadLeft(15, pad)) // Displays "......forty-two".
Console.WriteLine(str.PadLeft(2,  pad)) // Displays "forty-two".

[C#] No example is available for C#. To view a Visual Basic, C++, or JScript example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

String Class | String Members | System Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

Microsoft Corporation. All rights reserved.

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,,不代表本站觀點,。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,,謹(jǐn)防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報,。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多