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
- StaticSiteMapProvider.cs
- PropertyChangingEventArgs.cs
- SynchronizationLockException.cs
- SegmentInfo.cs
- ServicePointManager.cs
- EventLogSession.cs
- UnsafeNativeMethods.cs
- IntegrationExceptionEventArgs.cs
- LayoutExceptionEventArgs.cs
- InputReferenceExpression.cs
- ImageIndexConverter.cs
- Memoizer.cs
- DataGridViewColumnDesigner.cs
- BindStream.cs
- DataControlButton.cs
- DataGridViewMethods.cs
- CollectionView.cs
- FrameworkElement.cs
- NativeMethods.cs
- XmlMembersMapping.cs
- ControlBuilderAttribute.cs
- SettingsBase.cs
- TextAction.cs
- LocalClientSecuritySettingsElement.cs
- PrintPreviewDialog.cs
- Splitter.cs
- ReferenceEqualityComparer.cs
- ContractsBCL.cs
- GlyphsSerializer.cs
- AccessKeyManager.cs
- ImageField.cs
- ValidationPropertyAttribute.cs
- QueuePropertyVariants.cs
- WebServiceMethodData.cs
- InternalControlCollection.cs
- EntityClassGenerator.cs
- Compiler.cs
- NativeMethods.cs
- unsafeIndexingFilterStream.cs
- BamlRecordReader.cs
- ReferencedType.cs
- CodeTypeDeclarationCollection.cs
- ColorConvertedBitmap.cs
- LocationReference.cs
- StorageAssociationTypeMapping.cs
- DockingAttribute.cs
- TrailingSpaceComparer.cs
- CompareValidator.cs
- SHA384Managed.cs
- MemberRestriction.cs
- DecoderNLS.cs
- NullableFloatMinMaxAggregationOperator.cs
- DataTableNewRowEvent.cs
- UserControlDocumentDesigner.cs
- TailCallAnalyzer.cs
- HtmlUtf8RawTextWriter.cs
- PopOutPanel.cs
- SkinBuilder.cs
- SHA384.cs
- DynamicControl.cs
- FileDialogCustomPlacesCollection.cs
- ConfigurationProviderException.cs
- TextOutput.cs
- ConsoleTraceListener.cs
- QueryLifecycle.cs
- DateTimeFormatInfoScanner.cs
- ExeConfigurationFileMap.cs
- TdsValueSetter.cs
- DynamicResourceExtensionConverter.cs
- InputProcessorProfilesLoader.cs
- RequestQueue.cs
- dbenumerator.cs
- CompositeFontFamily.cs
- EraserBehavior.cs
- _Semaphore.cs
- SmtpTransport.cs
- TimeStampChecker.cs
- MouseWheelEventArgs.cs
- CodeBlockBuilder.cs
- TableLayoutColumnStyleCollection.cs
- SqlProviderManifest.cs
- Bidi.cs
- LineSegment.cs
- DynamicRenderer.cs
- SqlDependencyListener.cs
- Parsers.cs
- DataGridViewIntLinkedList.cs
- SemanticResolver.cs
- PointCollection.cs
- TextMessageEncodingBindingElement.cs
- ApplicationSecurityManager.cs
- EventlogProvider.cs
- WindowsMenu.cs
- TabletDeviceInfo.cs
- RoleBoolean.cs
- XhtmlBasicTextViewAdapter.cs
- NullableLongAverageAggregationOperator.cs
- shaperfactory.cs
- SoapObjectReader.cs
- InstanceStoreQueryResult.cs