共用方式為


PSHostRawUserInterface.LengthInBufferCells Method

Definition

Overloads

LengthInBufferCells(Char)

Determines the number of BufferCells a character occupies.

LengthInBufferCells(String)

Determines the number of BufferCells a string occupies.

LengthInBufferCells(String, Int32)

Determines the number of BufferCells a substring of a string occupies.

LengthInBufferCells(Char)

Determines the number of BufferCells a character occupies.

public:
 virtual int LengthInBufferCells(char source);
public:
 virtual int LengthInBufferCells(char16 source);
 virtual int LengthInBufferCells(char source);
public virtual int LengthInBufferCells (char source);
abstract member LengthInBufferCells : char -> int
override this.LengthInBufferCells : char -> int
Public Overridable Function LengthInBufferCells (source As Char) As Integer

Parameters

source
Char

The character whose length we want to know.

Returns

The default implementation returns 1.

See also

Applies to

LengthInBufferCells(String)

Determines the number of BufferCells a string occupies.

public:
 virtual int LengthInBufferCells(System::String ^ source);
public:
 virtual int LengthInBufferCells(Platform::String ^ source);
 virtual int LengthInBufferCells(std::wstring const & source);
public virtual int LengthInBufferCells (string source);
abstract member LengthInBufferCells : string -> int
override this.LengthInBufferCells : string -> int
Public Overridable Function LengthInBufferCells (source As String) As Integer

Parameters

source
String

The string whose length we want to know.

Returns

The default implementation returns the length of source

See also

Applies to

LengthInBufferCells(String, Int32)

Determines the number of BufferCells a substring of a string occupies.

public:
 virtual int LengthInBufferCells(System::String ^ source, int offset);
public:
 virtual int LengthInBufferCells(Platform::String ^ source, int offset);
 virtual int LengthInBufferCells(std::wstring const & source, int offset);
public virtual int LengthInBufferCells (string source, int offset);
abstract member LengthInBufferCells : string * int -> int
override this.LengthInBufferCells : string * int -> int
Public Overridable Function LengthInBufferCells (source As String, offset As Integer) As Integer

Parameters

source
String

The string whose substring length we want to know.

offset
Int32

Offset where the substring begins in source

Returns

The default implementation calls LengthInBufferCells(String) method with the substring extracted from the source string starting at the offset offset

See also

Applies to