Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / URLEditor.cs / 1 / URLEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System.Runtime.InteropServices; using System.Design; using System.Diagnostics; using System; using System.IO; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Drawing; using System.Drawing.Design; using System.Windows.Forms.Design; using System.Windows.Forms.ComponentModel; ////// /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class UrlEditor : UITypeEditor { ///Provides an editor for visually picking an Url. ////// /// protected virtual string Caption { get { return SR.GetString(SR.UrlPicker_DefaultCaption); } } ////// Gets or sets the caption for the Url. /// ////// /// protected virtual UrlBuilderOptions Options { get { return UrlBuilderOptions.None; } } ////// Gets or sets the options for the Url picker. /// ////// /// public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (provider != null) { IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc != null) { string url = (string) value; string caption = Caption; string filter = Filter; url = UrlBuilder.BuildUrl(provider, null, url, caption, filter, Options); if (url != null) { value = url; } } } return value; } ////// Edits the specified object value using /// the editor style provided by GetEditorStyle. /// ////// /// protected virtual string Filter { get { return SR.GetString(SR.UrlPicker_DefaultFilter); } } ////// Gets or sets the filter to use. /// ////// /// public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { return UITypeEditorEditStyle.Modal; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved./// Gets the editing style of the Edit method. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefaultPrintController.cs
- DataKeyArray.cs
- MemberAccessException.cs
- DesignerRegion.cs
- UpdatePanel.cs
- XmlNodeList.cs
- AsyncOperationLifetimeManager.cs
- SafeSystemMetrics.cs
- AutomationIdentifier.cs
- PropertyKey.cs
- SafeCryptoHandles.cs
- Renderer.cs
- IsolatedStorageException.cs
- TableColumn.cs
- CompositionTarget.cs
- MessageQueueException.cs
- InputBinding.cs
- initElementDictionary.cs
- CompressionTransform.cs
- LostFocusEventManager.cs
- TextPattern.cs
- LiteralControl.cs
- AttributeSetAction.cs
- Splitter.cs
- ProjectionCamera.cs
- ToolboxItemCollection.cs
- _CacheStreams.cs
- BorderSidesEditor.cs
- MobileUITypeEditor.cs
- CaseExpr.cs
- X509SecurityToken.cs
- BufferedReadStream.cs
- FixedTextSelectionProcessor.cs
- ISAPIRuntime.cs
- Lasso.cs
- StretchValidation.cs
- MetadataItem_Static.cs
- WindowsToolbar.cs
- XmlEnumAttribute.cs
- PageRequestManager.cs
- DataViewSetting.cs
- MouseWheelEventArgs.cs
- WindowsScroll.cs
- PieceNameHelper.cs
- ErrorWebPart.cs
- Header.cs
- AtomEntry.cs
- RelationalExpressions.cs
- MenuItem.cs
- CodeChecksumPragma.cs
- CharacterBufferReference.cs
- DbConnectionHelper.cs
- DiscoveryOperationContextExtension.cs
- Shape.cs
- BinaryEditor.cs
- StagingAreaInputItem.cs
- TypeSystem.cs
- ContentDisposition.cs
- HostProtectionPermission.cs
- WebResourceAttribute.cs
- ProcessHostConfigUtils.cs
- _Semaphore.cs
- WorkflowApplicationUnloadedException.cs
- Assert.cs
- SerialStream.cs
- References.cs
- CodeDOMUtility.cs
- CodeTypeDeclaration.cs
- TiffBitmapEncoder.cs
- XmlSchemaComplexType.cs
- Hashtable.cs
- DataGridTablesFactory.cs
- ReadOnlyMetadataCollection.cs
- EntitySqlQueryCacheEntry.cs
- ParsedRoute.cs
- SqlNotificationEventArgs.cs
- FormsAuthenticationUserCollection.cs
- CaseExpr.cs
- XmlCharCheckingReader.cs
- SplitterPanel.cs
- TreeNodeCollectionEditor.cs
- CaseInsensitiveHashCodeProvider.cs
- Attachment.cs
- SmtpClient.cs
- SchemaManager.cs
- WebPartDescriptionCollection.cs
- FileDocument.cs
- CfgParser.cs
- StringConverter.cs
- HMACMD5.cs
- XmlBinaryReaderSession.cs
- ImageAutomationPeer.cs
- DirectoryInfo.cs
- ParameterBinding.cs
- TextReader.cs
- CommandManager.cs
- CompilerScope.Storage.cs
- SchemaElementLookUpTableEnumerator.cs
- latinshape.cs
- DesignTimeVisibleAttribute.cs