API:System.AnsiStringT.ElementSize
C++
unsigned short ElementSize() const { return Data ? GetRec().elemSize : (unsigned short)1; }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | dstring.h | System | AnsiStringT |
Description
Gets the element size of data in a AnsiStringBase.
System.AnsiStringT.ElementSize inherits from System.AnsiStringBase.ElementSize. All content below this line refers to System.AnsiStringBase.ElementSize.
Gets the element size of data in a AnsiStringBase.
ElementSize gets the element size, in bytes, of the data in a AnsiStringBase instance. If the instance is empty, the method returns 1.