GetBufferInfo
Syntax
GetBufferInfo(index: number): TVisibleBufferInfoParameters
Return Value
Description
Example
// Get information about buffer 0
const bufferInfo = this.api.GetBufferInfo(0);
// Log buffer properties
console.log(`Buffer Name: ${bufferInfo.name}`);
console.log(`Paint From: ${bufferInfo.paintFrom}`);
// Modify buffer visibility based on a condition
if (bufferInfo.paintFrom > 0) {
this.api.SetIndexVisibility(0, true);
} else {
this.api.SetIndexVisibility(0, false);
}Last updated