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
- InfoCardAsymmetricCrypto.cs
- AssemblyBuilder.cs
- KernelTypeValidation.cs
- RegionInfo.cs
- DeviceFiltersSection.cs
- IntAverageAggregationOperator.cs
- XmlSchemaAnnotation.cs
- GeneralTransformCollection.cs
- CustomDictionarySources.cs
- LinqDataSourceValidationException.cs
- ObjectItemCollection.cs
- UseAttributeSetsAction.cs
- DataGridTableCollection.cs
- TextCompositionManager.cs
- ValueTypeFieldReference.cs
- ExpressionLink.cs
- ItemCheckEvent.cs
- SQLRoleProvider.cs
- SendKeys.cs
- ItemDragEvent.cs
- DirectoryRootQuery.cs
- NameSpaceExtractor.cs
- Variable.cs
- CultureSpecificCharacterBufferRange.cs
- AttributeEmitter.cs
- StorageEntityContainerMapping.cs
- AttributeParameterInfo.cs
- Merger.cs
- CustomErrorsSectionWrapper.cs
- PasswordBox.cs
- CompositeActivityTypeDescriptor.cs
- DataSourceCacheDurationConverter.cs
- DefaultBindingPropertyAttribute.cs
- DataObject.cs
- TerminateSequenceResponse.cs
- IPGlobalProperties.cs
- BufferModeSettings.cs
- FixedTextSelectionProcessor.cs
- SortFieldComparer.cs
- ConstantExpression.cs
- Group.cs
- ToolBar.cs
- WebServiceAttribute.cs
- ChildChangedEventArgs.cs
- SqlConnectionStringBuilder.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SqlServices.cs
- ItemsPresenter.cs
- DomainUpDown.cs
- TreeViewDesigner.cs
- CoreSwitches.cs
- DiscoveryEndpoint.cs
- BitmapSource.cs
- DesignerAutoFormatCollection.cs
- BigInt.cs
- ZipPackage.cs
- shaperfactory.cs
- ReferencedCollectionType.cs
- DataServiceContext.cs
- DesignerActionPropertyItem.cs
- ObjectReferenceStack.cs
- FixedFindEngine.cs
- FormatException.cs
- ErrorFormatterPage.cs
- MobileRedirect.cs
- NCryptNative.cs
- EventLogPermissionAttribute.cs
- SystemEvents.cs
- PlainXmlSerializer.cs
- SelectionWordBreaker.cs
- ValidationResult.cs
- ManagedFilter.cs
- SoapAttributeOverrides.cs
- ZipPackagePart.cs
- ContentType.cs
- unsafenativemethodsother.cs
- StrongNameKeyPair.cs
- WindowsGraphics.cs
- CodeTryCatchFinallyStatement.cs
- MouseActionValueSerializer.cs
- WeakReference.cs
- XsdBuilder.cs
- HtmlAnchor.cs
- AttributeEmitter.cs
- RowUpdatingEventArgs.cs
- PolicyImporterElementCollection.cs
- DataTableReaderListener.cs
- GlyphRunDrawing.cs
- HashHelper.cs
- WaitHandle.cs
- OleDbSchemaGuid.cs
- AsyncParams.cs
- Update.cs
- LicenseException.cs
- AttributeTableBuilder.cs
- SqlUdtInfo.cs
- CodePageUtils.cs
- PageCache.cs
- EntityAdapter.cs
- PolicyStatement.cs