Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1 / DesignTimeVisibleAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class DesignTimeVisibleAttribute : Attribute { private bool visible; ////// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show /// this component on a designer. /// ////// Creates a new DesignTimeVisibleAttribute with the visible /// property set to the given value. /// public DesignTimeVisibleAttribute(bool visible) { this.visible = visible; } ////// Creates a new DesignTimeVisibleAttribute set to the default /// value of true. /// public DesignTimeVisibleAttribute() { } ////// True if this component should be shown at design time, or false /// if it shouldn't. /// public bool Visible { get { return visible; } } ////// Marks a component as visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true); ////// Marks a component as not visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false); ////// The default visiblity. (equal to Yes.) /// public static readonly DesignTimeVisibleAttribute Default = Yes; ////// public override bool Equals(object obj) { if (obj == this) { return true; } DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute; return other != null && other.Visible == visible; } ///[To be supplied.] ////// public override int GetHashCode() { return typeof(DesignTimeVisibleAttribute).GetHashCode() ^ (visible ? -1 : 0); } ///[To be supplied.] ////// public override bool IsDefaultAttribute() { return (this.Visible == Default.Visible); } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CharacterMetrics.cs
- LineSegment.cs
- LocalizedNameDescriptionPair.cs
- PKCS1MaskGenerationMethod.cs
- XPathSelfQuery.cs
- PauseStoryboard.cs
- HScrollProperties.cs
- SecurityTokenResolver.cs
- SelectionProviderWrapper.cs
- PageThemeParser.cs
- Compiler.cs
- StylusShape.cs
- PagerSettings.cs
- TextModifier.cs
- JapaneseLunisolarCalendar.cs
- SharedDp.cs
- TableAutomationPeer.cs
- DomainLiteralReader.cs
- WindowInteractionStateTracker.cs
- TextSchema.cs
- ApplicationSecurityInfo.cs
- ObjectDataSourceMethodEventArgs.cs
- PathFigureCollectionConverter.cs
- AdPostCacheSubstitution.cs
- StatusBarPanelClickEvent.cs
- Dispatcher.cs
- TextTabProperties.cs
- DataGridCommandEventArgs.cs
- URI.cs
- WebServiceParameterData.cs
- StackBuilderSink.cs
- DrawingImage.cs
- TransactionScope.cs
- RawMouseInputReport.cs
- DataServiceQuery.cs
- StylusCollection.cs
- ToolStripGrip.cs
- DetailsViewModeEventArgs.cs
- SessionEndingCancelEventArgs.cs
- DownloadProgressEventArgs.cs
- InfiniteIntConverter.cs
- FileChangeNotifier.cs
- PolyBezierSegment.cs
- WaitingCursor.cs
- GridItemPatternIdentifiers.cs
- AssociationType.cs
- IntSecurity.cs
- EmbeddedMailObject.cs
- WindowsAuthenticationEventArgs.cs
- DataGridViewRowStateChangedEventArgs.cs
- SyntaxCheck.cs
- SymbolType.cs
- SecurityResources.cs
- SpeechSynthesizer.cs
- VersionedStreamOwner.cs
- PropertyValue.cs
- WebMessageFormatHelper.cs
- Cursors.cs
- XmlSchemaChoice.cs
- MetadataItemEmitter.cs
- CatalogUtil.cs
- SelectorItemAutomationPeer.cs
- TraceEventCache.cs
- SchemaTableColumn.cs
- ThicknessConverter.cs
- MetadataProperty.cs
- ServiceHttpHandlerFactory.cs
- arabicshape.cs
- QueryOutputWriter.cs
- FrameworkPropertyMetadata.cs
- ObjectSecurity.cs
- SafeTokenHandle.cs
- XpsFilter.cs
- InternalPermissions.cs
- DiscoveryExceptionDictionary.cs
- TabletDeviceInfo.cs
- DataListItemCollection.cs
- StringOutput.cs
- InkCollectionBehavior.cs
- PropertyPath.cs
- GlyphInfoList.cs
- PeerApplicationLaunchInfo.cs
- ErrorFormatter.cs
- ArcSegment.cs
- HttpCapabilitiesBase.cs
- TextRangeEdit.cs
- PngBitmapEncoder.cs
- Content.cs
- DataContractSerializerSection.cs
- TypeInitializationException.cs
- GestureRecognizer.cs
- CompensableActivity.cs
- CollectionTraceRecord.cs
- DataSourceBooleanViewSchemaConverter.cs
- mansign.cs
- NetworkInformationException.cs
- HostExecutionContextManager.cs
- SqlInternalConnectionSmi.cs
- ObjectListDataBindEventArgs.cs
- ConnectorDragDropGlyph.cs