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
- FigureHelper.cs
- FontDialog.cs
- ContextStaticAttribute.cs
- PassportAuthenticationEventArgs.cs
- ImmutableCollection.cs
- DeriveBytes.cs
- XmlNavigatorStack.cs
- StreamingContext.cs
- Trace.cs
- ByteAnimationUsingKeyFrames.cs
- WebPartTracker.cs
- WindowsListViewGroup.cs
- LocatorBase.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SecurityMode.cs
- FamilyMapCollection.cs
- HasCopySemanticsAttribute.cs
- AuthenticationModuleElement.cs
- WsdlImporterElement.cs
- ThreadStartException.cs
- SoapTypeAttribute.cs
- SecondaryViewProvider.cs
- TemplateDefinition.cs
- SqlBulkCopy.cs
- LocalizableAttribute.cs
- CompiledIdentityConstraint.cs
- VisualBasicHelper.cs
- ToolStripGripRenderEventArgs.cs
- BufferedMessageWriter.cs
- FontStretches.cs
- SystemNetworkInterface.cs
- ParseNumbers.cs
- PriorityQueue.cs
- TypeBrowserDialog.cs
- ExpressionEditor.cs
- Drawing.cs
- UserNameSecurityTokenProvider.cs
- TextViewSelectionProcessor.cs
- ProfileWorkflowElement.cs
- ScriptingJsonSerializationSection.cs
- WebControlParameterProxy.cs
- CompositionTarget.cs
- DataGridViewCellStyleConverter.cs
- SHA256Managed.cs
- WindowAutomationPeer.cs
- HelpInfo.cs
- CustomAttribute.cs
- CssStyleCollection.cs
- Journal.cs
- PropertyGeneratedEventArgs.cs
- PixelShader.cs
- BigInt.cs
- SectionUpdates.cs
- UIElement3D.cs
- Transform.cs
- XPathDocumentIterator.cs
- DataPager.cs
- ConfigXmlSignificantWhitespace.cs
- HebrewCalendar.cs
- Repeater.cs
- CompilationPass2Task.cs
- WinEventWrap.cs
- ThemeDictionaryExtension.cs
- mediaeventargs.cs
- dsa.cs
- BinaryQueryOperator.cs
- SelectionEditor.cs
- basecomparevalidator.cs
- DbProviderServices.cs
- ThemeDictionaryExtension.cs
- DoubleAnimationUsingKeyFrames.cs
- Camera.cs
- ConfigurationElementCollection.cs
- MarkupExtensionParser.cs
- HttpListenerException.cs
- ClientScriptItem.cs
- LayoutSettings.cs
- CacheVirtualItemsEvent.cs
- DisplayMemberTemplateSelector.cs
- SR.cs
- NativeMethods.cs
- IssuanceLicense.cs
- ViewBase.cs
- SapiAttributeParser.cs
- UnionQueryOperator.cs
- TrackBarRenderer.cs
- XslException.cs
- RegexRunnerFactory.cs
- UnmanagedMarshal.cs
- ServiceOperationParameter.cs
- HostingEnvironment.cs
- ToolboxItemAttribute.cs
- Color.cs
- Misc.cs
- XmlNamespaceDeclarationsAttribute.cs
- CreateParams.cs
- ChameleonKey.cs
- PackageDigitalSignatureManager.cs
- ISSmlParser.cs
- RequestQueryProcessor.cs