Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // 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
- SecurityContextTokenCache.cs
- RegexCode.cs
- ToolStripDropTargetManager.cs
- CmsInterop.cs
- XmlSchemas.cs
- BlockCollection.cs
- MergeExecutor.cs
- RoutingEndpointTrait.cs
- ObjectDataSourceFilteringEventArgs.cs
- CreateUserErrorEventArgs.cs
- ValidationPropertyAttribute.cs
- ApplicationInfo.cs
- DbgCompiler.cs
- ColorAnimation.cs
- entityreference_tresulttype.cs
- CorrelationKeyCalculator.cs
- ExeConfigurationFileMap.cs
- XPathBuilder.cs
- WindowsTreeView.cs
- ToggleButton.cs
- ObjectListField.cs
- CommandBinding.cs
- TextBoxDesigner.cs
- EnlistmentTraceIdentifier.cs
- CodeAccessSecurityEngine.cs
- Line.cs
- QueryCacheEntry.cs
- XmlSchemaException.cs
- Decimal.cs
- ColorConvertedBitmap.cs
- WasEndpointConfigContainer.cs
- LineUtil.cs
- WebBrowsableAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- SoapReflectionImporter.cs
- AddInSegmentDirectoryNotFoundException.cs
- SqlDataSourceWizardForm.cs
- Debug.cs
- ObfuscationAttribute.cs
- ColorContext.cs
- FontFamily.cs
- ActivityDesignerHelper.cs
- TcpTransportManager.cs
- WebServiceErrorEvent.cs
- DesignerOptions.cs
- DragStartedEventArgs.cs
- Opcode.cs
- ObjectHandle.cs
- ServiceObjectContainer.cs
- KeySpline.cs
- WindowsGraphicsCacheManager.cs
- GridLength.cs
- ManagedIStream.cs
- CharAnimationBase.cs
- PriorityChain.cs
- DropDownButton.cs
- XmlAttributes.cs
- BuildProvider.cs
- Activity.cs
- RegexCompilationInfo.cs
- PropertyItemInternal.cs
- NameValuePair.cs
- MultipleViewPattern.cs
- ProcessModelSection.cs
- ToolStripLabel.cs
- SecUtil.cs
- DelegateInArgument.cs
- RegexWorker.cs
- WrappingXamlSchemaContext.cs
- EventDescriptor.cs
- URI.cs
- IFlowDocumentViewer.cs
- Validator.cs
- UIElementParaClient.cs
- EventLogReader.cs
- RightNameExpirationInfoPair.cs
- EdmToObjectNamespaceMap.cs
- AccessibleObject.cs
- ConstraintManager.cs
- ButtonChrome.cs
- PersonalizationAdministration.cs
- SByte.cs
- SqlUDTStorage.cs
- TokenBasedSetEnumerator.cs
- AppDomainManager.cs
- SpecularMaterial.cs
- XPathScanner.cs
- ButtonBase.cs
- FixUpCollection.cs
- RecipientIdentity.cs
- CurrencyWrapper.cs
- SqlRowUpdatedEvent.cs
- XPathArrayIterator.cs
- ServiceProviders.cs
- updateconfighost.cs
- StringDictionaryWithComparer.cs
- PersianCalendar.cs
- UnSafeCharBuffer.cs
- LoginCancelEventArgs.cs
- MemberBinding.cs