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
- ColorDialog.cs
- ToolStripSeparator.cs
- DataViewSettingCollection.cs
- IERequestCache.cs
- NamedPipeChannelListener.cs
- FixedBufferAttribute.cs
- SchemaImporterExtension.cs
- AddressAccessDeniedException.cs
- Rect3D.cs
- XmlWrappingReader.cs
- TypefaceMetricsCache.cs
- CredentialCache.cs
- ListViewItemMouseHoverEvent.cs
- NotifyIcon.cs
- FixedSOMFixedBlock.cs
- WmlPanelAdapter.cs
- VisualBrush.cs
- TrackingExtract.cs
- DesignerActionList.cs
- InkPresenter.cs
- TextRunProperties.cs
- QueryCursorEventArgs.cs
- Calendar.cs
- ConfigXmlReader.cs
- CopyOnWriteList.cs
- SettingsAttributes.cs
- ControlBuilder.cs
- AnonymousIdentificationSection.cs
- StylusPointCollection.cs
- _ChunkParse.cs
- MediaCommands.cs
- FieldToken.cs
- WebBrowserPermission.cs
- PerformanceCounterPermissionAttribute.cs
- XmlHierarchicalEnumerable.cs
- MetadataUtilsSmi.cs
- TextComposition.cs
- Utils.cs
- MessagePropertyDescription.cs
- FaultPropagationQuery.cs
- ImmutablePropertyDescriptorGridEntry.cs
- VideoDrawing.cs
- TranslateTransform.cs
- RoleService.cs
- HashMembershipCondition.cs
- ClientUrlResolverWrapper.cs
- AnnouncementDispatcherAsyncResult.cs
- DateTimeConverter2.cs
- SqlInternalConnectionSmi.cs
- ProxyGenerationError.cs
- followingquery.cs
- ContractInferenceHelper.cs
- FuncCompletionCallbackWrapper.cs
- _SSPISessionCache.cs
- EnumUnknown.cs
- tibetanshape.cs
- MarkupCompilePass1.cs
- XmlSchemaNotation.cs
- NetworkStream.cs
- IPPacketInformation.cs
- DependencyStoreSurrogate.cs
- HandlerFactoryWrapper.cs
- IconHelper.cs
- ListViewItem.cs
- LambdaCompiler.Binary.cs
- ResumeStoryboard.cs
- Highlights.cs
- ElasticEase.cs
- LambdaCompiler.Address.cs
- TabPage.cs
- relpropertyhelper.cs
- Style.cs
- WebHostUnsafeNativeMethods.cs
- WindowsMenu.cs
- EntityDataSource.cs
- HtmlMeta.cs
- GridViewSelectEventArgs.cs
- BinaryWriter.cs
- Int32Storage.cs
- LineSegment.cs
- ViewGenResults.cs
- baseaxisquery.cs
- WindowsListBox.cs
- OLEDB_Enum.cs
- XmlSchemaObjectTable.cs
- RegexStringValidator.cs
- SafeEventLogWriteHandle.cs
- WebBrowserHelper.cs
- HttpProcessUtility.cs
- BehaviorEditorPart.cs
- AdjustableArrowCap.cs
- ReadOnlyDataSource.cs
- Propagator.JoinPropagator.cs
- ToolStripDropDownItem.cs
- XmlImplementation.cs
- WsdlBuildProvider.cs
- DataGridRowDetailsEventArgs.cs
- StreamGeometryContext.cs
- Identifier.cs
- QueryReaderSettings.cs