public EmblemedIcon(Icon icon, Emblem emblem) : base(IntPtr.Zero) { if (GetType() != typeof(EmblemedIcon)) { throw new InvalidOperationException("Can't override this constructor."); } Raw = g_emblemed_icon_new(icon == null ? IntPtr.Zero : icon.Handle, emblem == null ? IntPtr.Zero : emblem.Handle); }
public void AddEmblem(Emblem emblem) { g_emblemed_icon_add_emblem(Handle, emblem == null ? IntPtr.Zero : emblem.Handle); }