Code:
/ DotNET / DotNET / 8.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
- ChildTable.cs
- BatchParser.cs
- COM2TypeInfoProcessor.cs
- MatrixAnimationBase.cs
- IdnMapping.cs
- DataGridViewCellFormattingEventArgs.cs
- UIElement3D.cs
- RangeBaseAutomationPeer.cs
- NullableDecimalSumAggregationOperator.cs
- DesignerTransaction.cs
- ApplyTemplatesAction.cs
- RemoteHelper.cs
- PointLightBase.cs
- ListBindingHelper.cs
- XhtmlBasicTextBoxAdapter.cs
- EventDriven.cs
- CancelAsyncOperationRequest.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- VariableExpressionConverter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- XPathDocument.cs
- TransformProviderWrapper.cs
- RenderContext.cs
- safelink.cs
- ParsedAttributeCollection.cs
- Codec.cs
- CodeSnippetExpression.cs
- ListViewItem.cs
- TcpAppDomainProtocolHandler.cs
- GuidelineCollection.cs
- ConfigurationStrings.cs
- MetricEntry.cs
- _SafeNetHandles.cs
- FormViewRow.cs
- SafeArrayTypeMismatchException.cs
- PersonalizablePropertyEntry.cs
- XmlUtf8RawTextWriter.cs
- TextEditorTables.cs
- ActiveXSite.cs
- XmlSchemaImporter.cs
- InfoCardAsymmetricCrypto.cs
- mediaeventshelper.cs
- WmlLabelAdapter.cs
- SessionIDManager.cs
- DesignerDataSourceView.cs
- Accessible.cs
- ToolBar.cs
- WmlListAdapter.cs
- MethodMessage.cs
- XmlValueConverter.cs
- ComPlusTypeValidator.cs
- ScrollBarRenderer.cs
- DrawingAttributesDefaultValueFactory.cs
- SqlCacheDependencySection.cs
- Point3DAnimationBase.cs
- CustomErrorCollection.cs
- SmiMetaData.cs
- Focus.cs
- ResourceReferenceExpression.cs
- AuthorizationRule.cs
- X509ServiceCertificateAuthentication.cs
- FacetDescription.cs
- DataKeyArray.cs
- brushes.cs
- PropertyGrid.cs
- XsdBuildProvider.cs
- DataList.cs
- ElementUtil.cs
- TranslateTransform3D.cs
- DispatcherEventArgs.cs
- QilValidationVisitor.cs
- RepeaterCommandEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- Light.cs
- NotifyParentPropertyAttribute.cs
- ResolveNameEventArgs.cs
- PathSegmentCollection.cs
- COM2Properties.cs
- WebConfigurationHostFileChange.cs
- basenumberconverter.cs
- SingleResultAttribute.cs
- WebException.cs
- LogicalChannel.cs
- JapaneseLunisolarCalendar.cs
- counter.cs
- ToolZone.cs
- PrinterUnitConvert.cs
- ConfigsHelper.cs
- EnumValidator.cs
- EditorAttribute.cs
- MailDefinition.cs
- ContentPlaceHolder.cs
- Rotation3DKeyFrameCollection.cs
- WeakReferenceList.cs
- CapabilitiesPattern.cs
- SplitContainer.cs
- XPathBinder.cs
- WindowsListViewGroup.cs
- FieldTemplateUserControl.cs
- DrawToolTipEventArgs.cs