Here is an example on how to do this.
XceedBinaryEncodingLib.XceedBinHexEncodingFormatClass format = new XceedBinaryEncodingLib.XceedBinHexEncodingFormatClass();
// The assignment below is by ref, but the content of "creator" and "type" will not be modified and
// we will take the first 4 byte and copy it in another byte array.
object creator = new byte[] { 1, 0, 0, 0 };
object type = new byte[] { 1, 0, 0, 0 };
format.set_HeaderCreator( ref creator );
format.set_HeaderType( ref type );
format.HeaderFlags = 1;
axXceedBinaryEncoding1.EncodingFormat = format;
// For some none official information on Creator, Type :
// http://en.wikipedia.org/wiki/Creator_code
// http://en.wikipedia.org/wiki/Type_code
Use the get_ methods to get the value back.
e.g.:
object headerObject = encodingFormat.get_HeaderCreator();
byte[] headerCreator = ( byte[] ) headerObject;
André
Software Developer
Xceed Software Inc.