Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2PictureConverter.cs
- Brush.cs
- StorageSetMapping.cs
- Table.cs
- Constants.cs
- CacheSection.cs
- EventInfo.cs
- Set.cs
- HtmlMeta.cs
- CryptoApi.cs
- LineServicesCallbacks.cs
- PrePrepareMethodAttribute.cs
- WindowsRichEdit.cs
- ConfigurationElementProperty.cs
- ListBoxDesigner.cs
- InheritedPropertyChangedEventArgs.cs
- EntityTypeEmitter.cs
- LoginCancelEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- ReadOnlyDataSourceView.cs
- DurableInstance.cs
- ListViewInsertEventArgs.cs
- WebDescriptionAttribute.cs
- TraceUtility.cs
- TextRangeSerialization.cs
- ListViewItem.cs
- DropShadowEffect.cs
- DateTimeParse.cs
- CompoundFileStreamReference.cs
- Facet.cs
- GridViewRowEventArgs.cs
- NetworkStream.cs
- UnsafeNativeMethods.cs
- PartialCachingAttribute.cs
- PerfProviderCollection.cs
- KeyInfo.cs
- ImageMapEventArgs.cs
- Module.cs
- Comparer.cs
- ImageButton.cs
- TypeUsage.cs
- FormatConvertedBitmap.cs
- _AuthenticationState.cs
- IdentityValidationException.cs
- TranslateTransform.cs
- OleDbReferenceCollection.cs
- CodeStatement.cs
- KeyEventArgs.cs
- ItemList.cs
- PropertyValueChangedEvent.cs
- HtmlButton.cs
- ItemList.cs
- StdValidatorsAndConverters.cs
- PerfCounters.cs
- ConsumerConnectionPointCollection.cs
- SimpleHandlerFactory.cs
- AsyncDataRequest.cs
- Schema.cs
- XmlBindingWorker.cs
- DataGridBeginningEditEventArgs.cs
- CompatibleIComparer.cs
- GeneralTransformGroup.cs
- HtmlInputHidden.cs
- ColorTransform.cs
- BrowserCapabilitiesCodeGenerator.cs
- NonBatchDirectoryCompiler.cs
- InheritanceRules.cs
- WindowsTreeView.cs
- WebPartVerb.cs
- COM2EnumConverter.cs
- IISMapPath.cs
- SessionEndedEventArgs.cs
- PartialCachingAttribute.cs
- XmlSchemaValidationException.cs
- CompareValidator.cs
- InheritedPropertyChangedEventArgs.cs
- VectorAnimation.cs
- PartialCachingControl.cs
- FunctionUpdateCommand.cs
- KnownBoxes.cs
- BinaryFormatter.cs
- TempFiles.cs
- xsdvalidator.cs
- ObjectDataSourceFilteringEventArgs.cs
- AutoResetEvent.cs
- ImportContext.cs
- DispatcherExceptionEventArgs.cs
- DataGridViewSelectedColumnCollection.cs
- PointF.cs
- SessionEndingCancelEventArgs.cs
- sqlser.cs
- ADMembershipProvider.cs
- SubMenuStyle.cs
- RNGCryptoServiceProvider.cs
- ContainerParaClient.cs
- EventManager.cs
- SeparatorAutomationPeer.cs
- AssemblyNameProxy.cs
- FolderLevelBuildProvider.cs
- ActivitySurrogateSelector.cs