Code:
/ DotNET / DotNET / 8.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
- BrowsableAttribute.cs
- ApplicationManager.cs
- FragmentQuery.cs
- DocumentPageViewAutomationPeer.cs
- DictionaryEditChange.cs
- AnnotationHelper.cs
- SmtpFailedRecipientException.cs
- X509Extension.cs
- CharKeyFrameCollection.cs
- ConstraintStruct.cs
- SiteMapProvider.cs
- SqlProviderManifest.cs
- DocumentOrderQuery.cs
- ValidatorCompatibilityHelper.cs
- ConfigurationSectionGroup.cs
- AuthenticatingEventArgs.cs
- ApplicationSettingsBase.cs
- LocatorPartList.cs
- GeneralTransform3DGroup.cs
- ScriptControlManager.cs
- SapiRecognizer.cs
- HttpHandlerAction.cs
- ZipArchive.cs
- NavigatingCancelEventArgs.cs
- Literal.cs
- SharedPerformanceCounter.cs
- SystemColorTracker.cs
- CheckBoxPopupAdapter.cs
- CharacterString.cs
- ExpressionBuilder.cs
- BamlResourceDeserializer.cs
- OrderedDictionary.cs
- SqlDataSourceCommandEventArgs.cs
- MetadataItemEmitter.cs
- SerializationEventsCache.cs
- DbConnectionPoolOptions.cs
- DoubleIndependentAnimationStorage.cs
- Int16.cs
- DurationConverter.cs
- StrokeCollectionDefaultValueFactory.cs
- BypassElement.cs
- EnumBuilder.cs
- SystemWebExtensionsSectionGroup.cs
- TrustManagerPromptUI.cs
- InstanceDataCollection.cs
- NativeMethods.cs
- AutoScrollExpandMessageFilter.cs
- DeclarativeCatalogPart.cs
- UserControlParser.cs
- AstTree.cs
- AnyAllSearchOperator.cs
- DeobfuscatingStream.cs
- ProfileGroupSettings.cs
- StandardTransformFactory.cs
- COM2Enum.cs
- TextLine.cs
- TabPage.cs
- SystemInformation.cs
- EdmComplexTypeAttribute.cs
- ToolStripTemplateNode.cs
- SystemWebCachingSectionGroup.cs
- CompositeFontInfo.cs
- ResXResourceReader.cs
- TabItemAutomationPeer.cs
- Grid.cs
- TypefaceMetricsCache.cs
- ConditionalDesigner.cs
- TreeWalker.cs
- ICollection.cs
- X509Certificate2.cs
- HwndSource.cs
- QuaternionRotation3D.cs
- SqlReferenceCollection.cs
- ContextStaticAttribute.cs
- WinCategoryAttribute.cs
- ButtonField.cs
- BinaryKeyIdentifierClause.cs
- NamespaceTable.cs
- Stack.cs
- CreateRefExpr.cs
- XamlInt32CollectionSerializer.cs
- SelectedDatesCollection.cs
- ConstrainedDataObject.cs
- XmlSchemaComplexType.cs
- DataGridViewCellStyle.cs
- BaseAddressPrefixFilterElement.cs
- SoapSchemaMember.cs
- HttpServerVarsCollection.cs
- InkCollectionBehavior.cs
- EDesignUtil.cs
- DataRowExtensions.cs
- SqlCacheDependency.cs
- BitmapVisualManager.cs
- ProxyElement.cs
- MonthChangedEventArgs.cs
- ZoneLinkButton.cs
- HttpRuntime.cs
- SymbolType.cs
- GenericPrincipal.cs
- TextServicesManager.cs