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
- DiscoveryViaBehavior.cs
- FtpRequestCacheValidator.cs
- TextEvent.cs
- RangeValueProviderWrapper.cs
- SettingsContext.cs
- MsmqIntegrationProcessProtocolHandler.cs
- UniqueConstraint.cs
- xml.cs
- Size3DConverter.cs
- LinearKeyFrames.cs
- XPathNodeInfoAtom.cs
- SecurityRuntime.cs
- ColorContext.cs
- RegularExpressionValidator.cs
- FormatConvertedBitmap.cs
- FunctionImportMapping.cs
- TextTreeExtractElementUndoUnit.cs
- DataIdProcessor.cs
- MobileListItem.cs
- OraclePermissionAttribute.cs
- WebPartDeleteVerb.cs
- ColorTransform.cs
- CustomCategoryAttribute.cs
- LogEntryHeaderDeserializer.cs
- CustomValidator.cs
- IdentitySection.cs
- XPathChildIterator.cs
- ApplicationContext.cs
- DbProviderConfigurationHandler.cs
- FilterEventArgs.cs
- SynchronizedDispatch.cs
- HtmlInputCheckBox.cs
- TableRowGroup.cs
- RecognizerStateChangedEventArgs.cs
- SparseMemoryStream.cs
- Thumb.cs
- ResourceType.cs
- MsdtcClusterUtils.cs
- ManualResetEvent.cs
- XmlComment.cs
- Serializer.cs
- CleanUpVirtualizedItemEventArgs.cs
- DrawingVisual.cs
- ModuleElement.cs
- BamlResourceSerializer.cs
- XPathExpr.cs
- GeneratedCodeAttribute.cs
- TabItem.cs
- Frame.cs
- SystemResourceHost.cs
- FilterElement.cs
- ToolStripPanelRow.cs
- ReadOnlyDataSource.cs
- StickyNoteAnnotations.cs
- RadioButton.cs
- CopyOnWriteList.cs
- BindingExpression.cs
- CheckoutException.cs
- DecimalAnimationUsingKeyFrames.cs
- IdleTimeoutMonitor.cs
- TranslateTransform.cs
- TextClipboardData.cs
- Overlapped.cs
- PassportAuthenticationEventArgs.cs
- DependencyPropertyAttribute.cs
- EntityTemplateUserControl.cs
- EntityTemplateUserControl.cs
- EnumBuilder.cs
- SqlTriggerAttribute.cs
- recordstatescratchpad.cs
- SoapInteropTypes.cs
- SoapObjectInfo.cs
- Process.cs
- TreeViewHitTestInfo.cs
- EventDriven.cs
- XslException.cs
- BackgroundFormatInfo.cs
- AnalyzedTree.cs
- BlockingCollection.cs
- NumberFunctions.cs
- XpsFixedPageReaderWriter.cs
- TextParagraphView.cs
- RuleSet.cs
- NeutralResourcesLanguageAttribute.cs
- RawStylusActions.cs
- AnchorEditor.cs
- HMACSHA512.cs
- NameValuePermission.cs
- ReadContentAsBinaryHelper.cs
- FontFamily.cs
- RedBlackList.cs
- SuppressIldasmAttribute.cs
- TimeSpan.cs
- BaseParagraph.cs
- BamlWriter.cs
- GuidelineSet.cs
- _CacheStreams.cs
- CompiledAction.cs
- ConfigXmlElement.cs
- OdbcConnectionStringbuilder.cs