MFORMATSLib Namespace > MFWriterClass Class : WriterOptionGetCount Method |
Public Overridable Sub WriterOptionGetCount( _ ByVal _eType As eMFWriterOption, _ ByRef _pnCount As Integer _ )
public virtual void WriterOptionGetCount( eMFWriterOption _eType, out int _pnCount )
public procedure WriterOptionGetCount( _eType: eMFWriterOption; Out _pnCount: Integer ); virtual;
public: virtual void WriterOptionGetCount( eMFWriterOption _eType, [PARAMFLAG::Out] int _pnCount )
Here is example of how to fill a combobox with available formats:
int nCount; m_objWriter.WriterOptionGetCount(eMFWriterOption.eMFWO_Format, out nCount); // get number of capturing formats (eMFWriterOption.eMFWO_Format) for (int i = 0; i < nCount; i++) { string myName, longName; m_objWriter.WriterOptionGetByIndex(eMFWriterOption.eMFWO_Format, i, out myName, out longName); // get short (ID) and long names of capturing format (eMFWriterOption.eMFWO_Format) formatcombo.Items.Add(longName); // add a format's name into combobox's list }