Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / Design / ToolStripDesignerAvailabilityAttribute.cs / 1 / ToolStripDesignerAvailabilityAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.Design { using System.Diagnostics.CodeAnalysis; [AttributeUsage(AttributeTargets.Class)] public sealed class ToolStripItemDesignerAvailabilityAttribute : Attribute { private ToolStripItemDesignerAvailability visibility; [ SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes") // ToolStripDesignAvailabilityAttribute is // actually immutable. ] public static readonly ToolStripItemDesignerAvailabilityAttribute Default = new ToolStripItemDesignerAvailabilityAttribute(); //// Specifies which ToolStrip types the Item can appear in - ToolStrip,MenuStrip,StatusStrip,ContextMenuStrip // Adding this attribute over a class lets you add to the list of custom items in the ToolStrip design time. // public ToolStripItemDesignerAvailabilityAttribute() { this.visibility = ToolStripItemDesignerAvailability.None; } public ToolStripItemDesignerAvailabilityAttribute(ToolStripItemDesignerAvailability visibility) { this.visibility = visibility; } public ToolStripItemDesignerAvailability ItemAdditionVisibility { get { return visibility; } } public override bool Equals(object obj) { if (obj == this) { return true; } ToolStripItemDesignerAvailabilityAttribute other = obj as ToolStripItemDesignerAvailabilityAttribute; return (other != null) && other.ItemAdditionVisibility == this.visibility; } public override int GetHashCode() { return visibility.GetHashCode(); } public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RecordConverter.cs
- FacetValues.cs
- ImportContext.cs
- UdpRetransmissionSettings.cs
- Substitution.cs
- GeometryValueSerializer.cs
- MediaElement.cs
- ConnectionsZone.cs
- TagMapInfo.cs
- KeyMatchBuilder.cs
- SQLMembershipProvider.cs
- Executor.cs
- KnownBoxes.cs
- Label.cs
- ArgumentException.cs
- DataGridViewLinkCell.cs
- WCFModelStrings.Designer.cs
- TableCellCollection.cs
- ITreeGenerator.cs
- UrlPath.cs
- UnsettableComboBox.cs
- Transform.cs
- RecognizerInfo.cs
- ColumnMapVisitor.cs
- PluralizationServiceUtil.cs
- IIS7WorkerRequest.cs
- CookieProtection.cs
- PrimaryKeyTypeConverter.cs
- EventLogEntry.cs
- XamlPathDataSerializer.cs
- NativeMethods.cs
- DrawingState.cs
- OleDbCommand.cs
- XmlWrappingReader.cs
- MatrixAnimationUsingPath.cs
- FixedSchema.cs
- WindowsStartMenu.cs
- ReflectionServiceProvider.cs
- CheckBoxFlatAdapter.cs
- XmlSerializerNamespaces.cs
- securitymgrsite.cs
- DesigntimeLicenseContextSerializer.cs
- MarginCollapsingState.cs
- ProgressiveCrcCalculatingStream.cs
- ChannelTokenTypeConverter.cs
- COSERVERINFO.cs
- TreeWalkHelper.cs
- MemberPathMap.cs
- AudioFileOut.cs
- SamlNameIdentifierClaimResource.cs
- Command.cs
- FieldInfo.cs
- ToolStripItemCollection.cs
- TypeConverters.cs
- PersonalizablePropertyEntry.cs
- ThemeableAttribute.cs
- DataRelationPropertyDescriptor.cs
- ElementProxy.cs
- Convert.cs
- WebPartConnectionsCancelVerb.cs
- PeerResolver.cs
- MemoryRecordBuffer.cs
- ParallelTimeline.cs
- RadioButtonRenderer.cs
- AttachedAnnotationChangedEventArgs.cs
- DbConnectionPoolCounters.cs
- LocatorManager.cs
- TreeViewItemAutomationPeer.cs
- XmlHelper.cs
- EnumerableRowCollection.cs
- WriteTimeStream.cs
- DescendantQuery.cs
- EditorOptionAttribute.cs
- brushes.cs
- DataSet.cs
- ProtectedConfigurationSection.cs
- PingReply.cs
- XPathNodeList.cs
- DrawListViewColumnHeaderEventArgs.cs
- dataobject.cs
- CellQuery.cs
- Utils.cs
- XmlDocumentSerializer.cs
- PrtCap_Reader.cs
- KeyValuePairs.cs
- WizardStepBase.cs
- FixedNode.cs
- HostVisual.cs
- NetStream.cs
- TemplateAction.cs
- RuntimeConfig.cs
- XmlSchemaSimpleContent.cs
- StylusPlugInCollection.cs
- ReachDocumentReferenceCollectionSerializer.cs
- ProviderBase.cs
- XmlILConstructAnalyzer.cs
- CopyOnWriteList.cs
- WebDisplayNameAttribute.cs
- CacheAxisQuery.cs
- DynamicMethod.cs