In MicroStation CONNECT Edition Update 16, we have added some APIs for TextTable.
New features:
- “Summary Row” is for the user to know which row is for a summary.
- Table’s name is for the user to differentiate tables from each other; it is unique for tables in a dgn file.
- Table’s Description is for the user to describe a table.
Native APIs:
In “struct TextTable”:
DGNPLATFORM_EXPORT UInt32 GetSummaryRowCount () const; //!< Get the number of summary rows in this table. //! Get the name of this table. DGNPLATFORM_EXPORT WString GetTableName () const; //! Set the name of this table. DGNPLATFORM_EXPORT void SetTableName ( WString val ); //! Get the description of this table. DGNPLATFORM_EXPORT WString GetTableDescription () const; //! Set the description of this table. DGNPLATFORM_EXPORT void SetTableDescription ( WString val );
Managed APIs:
In “public ref struct TextTable”:
/// <summary> Get the number of summary rows in this table. </summary> property System::UInt32 SummaryRowCount { System::UInt32 get () { return m_native->GetSummaryRowCount (); } } /// <summary> Get or set the name of this table</summary> property System::String^ TableName { System::String^ get () { return gcnew System::String ( m_native->GetTableName ().GetWCharCP () ); } void set ( System::String^ v ); } /// <summary> Get or set the description of this table</summary> property System::String^ TableDescription { System::String^ get () { return gcnew System::String ( m_native->GetTableDescription ().GetWCharCP () ); } void set ( System::String^ v ); }