Code:
/ FX-1434 / FX-1434 / 1.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
- InstanceContext.cs
- PrinterSettings.cs
- CSharpCodeProvider.cs
- CodeTypeDelegate.cs
- RuntimeWrappedException.cs
- Point4DValueSerializer.cs
- RequestResponse.cs
- ContainerFilterService.cs
- EntityDataSourceWizardForm.cs
- TrackingMemoryStream.cs
- EndpointAddressAugust2004.cs
- ItemAutomationPeer.cs
- ReturnValue.cs
- FrameAutomationPeer.cs
- SetStateEventArgs.cs
- VerificationException.cs
- MediaPlayerState.cs
- ReadOnlyDataSource.cs
- DBDataPermissionAttribute.cs
- UriSection.cs
- StoreAnnotationsMap.cs
- IsolatedStorageException.cs
- SendMailErrorEventArgs.cs
- DiscoveryReferences.cs
- HostedHttpTransportManager.cs
- LinkConverter.cs
- ChineseLunisolarCalendar.cs
- FrameworkPropertyMetadata.cs
- Schema.cs
- CellPartitioner.cs
- CategoryNameCollection.cs
- DataGrid.cs
- CodeTypeReferenceExpression.cs
- XmlReaderSettings.cs
- X509PeerCertificateAuthentication.cs
- AttributeSetAction.cs
- BlurEffect.cs
- Enum.cs
- SafeRightsManagementPubHandle.cs
- XpsThumbnail.cs
- DispatcherHooks.cs
- PackageFilter.cs
- HandlerBase.cs
- XamlClipboardData.cs
- MemberInfoSerializationHolder.cs
- TextViewSelectionProcessor.cs
- SqlBuilder.cs
- MinimizableAttributeTypeConverter.cs
- RegisteredExpandoAttribute.cs
- PauseStoryboard.cs
- ApplicationActivator.cs
- BamlRecordWriter.cs
- MatrixCamera.cs
- RepeaterItemEventArgs.cs
- ModelTypeConverter.cs
- DbProviderManifest.cs
- TextHintingModeValidation.cs
- ExecutedRoutedEventArgs.cs
- DataGridColumnCollection.cs
- DiscoveryOperationContextExtension.cs
- AnnotationService.cs
- MembershipValidatePasswordEventArgs.cs
- X509ScopedServiceCertificateElementCollection.cs
- AspNetPartialTrustHelpers.cs
- FileCodeGroup.cs
- PlatformNotSupportedException.cs
- Form.cs
- MemberProjectionIndex.cs
- Substitution.cs
- ReaderContextStackData.cs
- SharedPersonalizationStateInfo.cs
- ToolStripSettings.cs
- HtmlTextArea.cs
- parserscommon.cs
- BrowserCapabilitiesFactory35.cs
- GeneralTransform.cs
- RemoveStoryboard.cs
- isolationinterop.cs
- RouteItem.cs
- StateItem.cs
- DetailsViewRow.cs
- MimeWriter.cs
- ControlPropertyNameConverter.cs
- Mapping.cs
- WebPartChrome.cs
- UpdateCommand.cs
- ImportContext.cs
- TypeUtil.cs
- RegisteredScript.cs
- DSACryptoServiceProvider.cs
- SafeNativeMethodsMilCoreApi.cs
- EntityDataSourceContainerNameConverter.cs
- ErrorWebPart.cs
- MiniAssembly.cs
- ExceptionUtil.cs
- DataGridViewButtonCell.cs
- Vector.cs
- Util.cs
- ValueConversionAttribute.cs
- UserPreferenceChangingEventArgs.cs