Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / ColorBuilder.cs / 1 / ColorBuilder.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.ComponentModel; using System.Diagnostics; ////// /// Helper class used by designers to 'build' color properties by /// launching a color picker. /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public sealed class ColorBuilder { private ColorBuilder() { } ////// /// Launches the Color Picker to build a color. /// public static string BuildColor(IComponent component, System.Windows.Forms.Control owner, string initialColor) { string result = null; ISite componentSite = component.Site; Debug.Assert(componentSite != null, "Component does not have a valid site."); if (componentSite == null) { Debug.Fail("Component does not have a valid site."); return null; } if (componentSite != null) { IWebFormsBuilderUIService builderService = (IWebFormsBuilderUIService)componentSite.GetService(typeof(IWebFormsBuilderUIService)); if (builderService != null) { result = builderService.BuildColor(owner, initialColor); } } return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeChecksumPragma.cs
- TemplateKey.cs
- SpeechUI.cs
- RemotingAttributes.cs
- WindowsToolbarAsMenu.cs
- EdmItemCollection.cs
- LongMinMaxAggregationOperator.cs
- GridItemCollection.cs
- QilXmlReader.cs
- CaseStatementProjectedSlot.cs
- TemplateBindingExpressionConverter.cs
- WsatAdminException.cs
- SessionEndingCancelEventArgs.cs
- CheckBoxField.cs
- XmlHierarchyData.cs
- SQLInt16Storage.cs
- MaskedTextBoxTextEditor.cs
- _ProxyRegBlob.cs
- ButtonBaseAutomationPeer.cs
- ConfigurationPropertyCollection.cs
- BaseCAMarshaler.cs
- SendContent.cs
- AttachInfo.cs
- ProgressBar.cs
- HiddenFieldPageStatePersister.cs
- UIntPtr.cs
- Control.cs
- EdmEntityTypeAttribute.cs
- NavigatingCancelEventArgs.cs
- StylusPointProperty.cs
- AuthorizationSection.cs
- AutoScrollExpandMessageFilter.cs
- MouseEvent.cs
- SqlEnums.cs
- GetIndexBinder.cs
- CaseStatementSlot.cs
- GroupLabel.cs
- HasCopySemanticsAttribute.cs
- SourceElementsCollection.cs
- SelectionChangedEventArgs.cs
- CustomErrorsSectionWrapper.cs
- SettingsAttributeDictionary.cs
- DesignerRegion.cs
- ReflectionServiceProvider.cs
- WebCategoryAttribute.cs
- TreeNodeConverter.cs
- UIElement3D.cs
- CssTextWriter.cs
- PowerModeChangedEventArgs.cs
- Property.cs
- RepeatBehavior.cs
- TranslateTransform3D.cs
- WebBrowserDesigner.cs
- Route.cs
- XmlText.cs
- RsaKeyIdentifierClause.cs
- ReadingWritingEntityEventArgs.cs
- DateTimeOffsetStorage.cs
- XmlQueryContext.cs
- TreeViewCancelEvent.cs
- DTCTransactionManager.cs
- RecognizerBase.cs
- AspCompat.cs
- CacheSection.cs
- IdleTimeoutMonitor.cs
- ConfigurationManagerInternalFactory.cs
- FileDocument.cs
- NonParentingControl.cs
- Condition.cs
- AvTraceFormat.cs
- Timer.cs
- DataContract.cs
- CollectionBase.cs
- TripleDESCryptoServiceProvider.cs
- ComponentGuaranteesAttribute.cs
- recordstatefactory.cs
- CacheVirtualItemsEvent.cs
- SpotLight.cs
- _AuthenticationState.cs
- Int32CAMarshaler.cs
- RowSpanVector.cs
- SortableBindingList.cs
- KnownTypesProvider.cs
- OutputCacheModule.cs
- DataServiceRequestOfT.cs
- GroupByQueryOperator.cs
- Query.cs
- CryptoStream.cs
- ListMarkerSourceInfo.cs
- ClassData.cs
- DataGridViewDataErrorEventArgs.cs
- CodeGenerator.cs
- SQLByteStorage.cs
- StatusBarPanelClickEvent.cs
- RichTextBox.cs
- ComPlusServiceHost.cs
- ResourcesChangeInfo.cs
- XmlAutoDetectWriter.cs
- GridViewEditEventArgs.cs
- PixelShader.cs