/*! \brief Create the arguments for the event raised when a Toolbox object is * automatically created. */ public ObjectAutoCreatedEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData) { TemplateName = Marshal.PtrToStringAnsi(new IntPtr(RawEventData.ToInt32() + EventOffset.TemplateName)); ObjectID = ToolboxTask.IDBlock.SelfID; }
public ColourSelectedEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData) { NoneSelected = (Header.Flags & Flags.NoneSelected) != 0; ColourBlock = new int [212 / 4]; Marshal.Copy(new IntPtr(RawEventData.ToInt32() + EventOffset.ColourBlock), ColourBlock, 0, 212 / 4); }
/*! \brief Create the event arguments from the raw event data. */ public FontSelectionEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData) { FontID = Marshal.PtrToStringAnsi(new IntPtr(RawEventData.ToInt32() + EventOffset.FontID)); }
public ApplyFontEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData) { FontHeight = Marshal.ReadInt32(RawEventData, EventOffset.FontHeight); AspectRatio = Marshal.ReadInt32(RawEventData, EventOffset.AspectRatio); FontID = Marshal.PtrToStringAnsi(new IntPtr(RawEventData.ToInt32() + EventOffset.FontID)); }