Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / AmbientProperties.cs / 1 / AmbientProperties.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Copyright (c) 1999, Microsoft Corporation. All Rights Reserved. * Information Contained Herein is Proprietary and Confidential. */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; using System.Windows.Forms.Design; using System.ComponentModel.Design; using System.Drawing; using Microsoft.Win32; ////// /// // // NOTE: internally, this class does double duty as storage for Control's inherited properties. public sealed class AmbientProperties { // Public ambient properties private Color backColor; private Color foreColor; private Cursor cursor; private Font font; ////// Provides ambient property values to top-level controls. /// ////// /// public Color BackColor { get { return backColor; } set { backColor = value; } } ////// Gets the ambient BackColor, or Color.Empty if there is none. /// ////// /// public Cursor Cursor { get { return cursor; } set { cursor = value; } } ////// Gets the ambient BackColor, or null if there is none. /// ////// /// public Font Font { get { return font; } set { font = value; } } ////// Gets the ambient Font, or null if there is none. /// ////// /// public Color ForeColor { get { return foreColor; } set { foreColor = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved./// Gets the ambient ForeColor, or Color.Empty if there is none. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReflectionPermission.cs
- SchemaImporterExtensionElementCollection.cs
- ApplicationSecurityManager.cs
- HtmlTableRowCollection.cs
- LayoutTableCell.cs
- QilReference.cs
- CorrelationManager.cs
- SapiAttributeParser.cs
- DecryptRequest.cs
- InputReport.cs
- IntegerValidatorAttribute.cs
- TextAdaptor.cs
- InputGestureCollection.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Matrix3DStack.cs
- AutoGeneratedField.cs
- LineBreakRecord.cs
- IPipelineRuntime.cs
- CdpEqualityComparer.cs
- SecurityKeyIdentifierClause.cs
- SqlDataSourceQueryEditor.cs
- ServiceModelConfigurationSection.cs
- Style.cs
- Fx.cs
- ConstraintManager.cs
- ErrorInfoXmlDocument.cs
- PublisherMembershipCondition.cs
- MetadataArtifactLoaderCompositeFile.cs
- Pens.cs
- ReflectionTypeLoadException.cs
- AuthenticationConfig.cs
- SeverityFilter.cs
- LogManagementAsyncResult.cs
- WebMessageEncodingBindingElement.cs
- MediaElementAutomationPeer.cs
- TableLayoutRowStyleCollection.cs
- DispatcherHookEventArgs.cs
- ClickablePoint.cs
- ModelUIElement3D.cs
- StringUtil.cs
- RectKeyFrameCollection.cs
- BuildResult.cs
- PolyQuadraticBezierSegment.cs
- X509CertificateRecipientServiceCredential.cs
- DynamicILGenerator.cs
- HttpStreamFormatter.cs
- TrustManager.cs
- PreviousTrackingServiceAttribute.cs
- GeneralTransform3DGroup.cs
- NameNode.cs
- SettingsContext.cs
- PopupRoot.cs
- WindowsEditBoxRange.cs
- DispatcherTimer.cs
- PreservationFileReader.cs
- MetadataSerializer.cs
- EnvironmentPermission.cs
- CapabilitiesAssignment.cs
- MergablePropertyAttribute.cs
- LinkLabel.cs
- FastPropertyAccessor.cs
- BulletedListEventArgs.cs
- ImageKeyConverter.cs
- SQLString.cs
- SystemTcpConnection.cs
- Panel.cs
- SystemInfo.cs
- Utils.cs
- HandledEventArgs.cs
- RemotingConfigParser.cs
- ConfigurationStrings.cs
- GuidTagList.cs
- NoResizeHandleGlyph.cs
- WebSysDisplayNameAttribute.cs
- EdmRelationshipRoleAttribute.cs
- NullableBoolConverter.cs
- ToolTipAutomationPeer.cs
- _AutoWebProxyScriptHelper.cs
- EffectiveValueEntry.cs
- Expression.cs
- StylusPlugin.cs
- TcpDuplicateContext.cs
- ArraySubsetEnumerator.cs
- ChtmlTextWriter.cs
- SystemIPv4InterfaceProperties.cs
- PointKeyFrameCollection.cs
- Number.cs
- StructuralCache.cs
- TextTreeInsertUndoUnit.cs
- IdleTimeoutMonitor.cs
- ShaderEffect.cs
- ScriptHandlerFactory.cs
- InputBuffer.cs
- EntityStoreSchemaGenerator.cs
- DeviceSpecificDialogCachedState.cs
- Transform3DGroup.cs
- DataGridViewCellPaintingEventArgs.cs
- CSharpCodeProvider.cs
- SimpleLine.cs