PSHostRawUserInterface.LengthInBufferCells Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- NewBufferCellArray(Int32, Int32, BufferCell)
- NewBufferCellArray(Size, BufferCell)
- NewBufferCellArray(String[], ConsoleColor, ConsoleColor)
- LengthInBufferCells(Char)
- SetBufferContents(Rectangle, BufferCell)
- SetBufferContents(Coordinates, BufferCell[,])
- GetBufferContents(Rectangle)
- ScrollBufferContents(Rectangle, Coordinates, Rectangle, BufferCell)
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
- ScrollBufferContents(Rectangle, Coordinates, Rectangle, BufferCell)
- NewBufferCellArray(Int32, Int32, BufferCell)
- NewBufferCellArray(Size, BufferCell)
- NewBufferCellArray(String[], ConsoleColor, ConsoleColor)
- LengthInBufferCells(Char)
- LengthInBufferCells(String, Int32)
- SetBufferContents(Rectangle, BufferCell)
- SetBufferContents(Coordinates, BufferCell[,])
- GetBufferContents(Rectangle)
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
- ScrollBufferContents(Rectangle, Coordinates, Rectangle, BufferCell)
- NewBufferCellArray(Int32, Int32, BufferCell)
- NewBufferCellArray(Size, BufferCell)
- NewBufferCellArray(String[], ConsoleColor, ConsoleColor)
- LengthInBufferCells(String)
- LengthInBufferCells(Char)
- SetBufferContents(Rectangle, BufferCell)
- SetBufferContents(Coordinates, BufferCell[,])
- GetBufferContents(Rectangle)