IDataStore.Object Property
.NET Standard 2.x | Current Version (1.0.1) 
Used to directly manipulating the objects within a DataWindow object from scripts. These objects can be, for example, columns or text objects.
Namespace: PowerBuilder.Data
Assembly: PowerBuilder.Data.dll
Syntax
public IDataObject Object { get; }
Property Value
An IDataObject object used to directly manipulating the object within a DataWindow object from scripts.
Examples
The following code example demonstrates how to use the Object property.
using PowerBuilder.Data;
using System;
namespace Appeon.ApiDoc.IDataStoreExamples
{
public class ObjectExample
{
private SchoolContext _context;
public ObjectExample(SchoolContext dataContext)
{
// Sets the data context
_context = dataContext;
}
public void Example()
{
// Instantiates datastore with datawindow: d_department
var datastore = new DataStore("d_department", _context);
// Gets the Visible property of the name column.
Console.WriteLine("The Visible property of the name column: {0}",
datastore.Object.Columns["name"].Visible);
// Gets the Name property of the first column label.
Console.WriteLine("The Name property of the first column label: {0}"
,datastore.Object.Texts[0].Name.ToString());
// Gets the height of the detail band.
Console.WriteLine("The height of the detail band: {0}",
datastore.Object.Bands[1].Height.ToString());
/*This code produces the following output:
The Visible property of the name column: True
The Name property of the first column label: departmentid_t
The height of the detail band: 88
*/
}
}
}
Example Refer To
Model Class: D_Department
DataWindow File: d_department
Applies to
.NET Standard
2.x