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
- exports.cs
- WhitespaceSignificantCollectionAttribute.cs
- HebrewCalendar.cs
- XmlIterators.cs
- WindowsStatic.cs
- CharacterString.cs
- HostExecutionContextManager.cs
- DataServiceEntityAttribute.cs
- ButtonAutomationPeer.cs
- Journaling.cs
- SimpleFileLog.cs
- WebPartDisplayModeCollection.cs
- StaticSiteMapProvider.cs
- ExceptionHelpers.cs
- ConfigurationManagerInternal.cs
- TdsParserStateObject.cs
- SID.cs
- BamlVersionHeader.cs
- BindingMemberInfo.cs
- TemplateParser.cs
- DbConvert.cs
- RawAppCommandInputReport.cs
- EnterpriseServicesHelper.cs
- FixedNode.cs
- WebPartTransformer.cs
- DocumentViewerConstants.cs
- StylusTouchDevice.cs
- ObjectSpanRewriter.cs
- PartialList.cs
- NativeCompoundFileAPIs.cs
- XamlReaderConstants.cs
- Overlapped.cs
- MultiplexingDispatchMessageFormatter.cs
- SpecularMaterial.cs
- DetailsViewPagerRow.cs
- GeneratedCodeAttribute.cs
- AdornerDecorator.cs
- OAVariantLib.cs
- ComboBoxRenderer.cs
- NullReferenceException.cs
- RtfFormatStack.cs
- EventDescriptorCollection.cs
- sqlinternaltransaction.cs
- RoleGroup.cs
- HandledMouseEvent.cs
- TimeSpanValidatorAttribute.cs
- XPathChildIterator.cs
- XmlWrappingWriter.cs
- DoubleAnimationBase.cs
- EventWaitHandle.cs
- bindurihelper.cs
- SelectionRangeConverter.cs
- HttpClientChannel.cs
- BitmapEffectState.cs
- ObjectStorage.cs
- CollectionBuilder.cs
- FontClient.cs
- SchemaImporterExtensionsSection.cs
- DbConnectionHelper.cs
- FilterRepeater.cs
- TextSpanModifier.cs
- XmlSignatureManifest.cs
- Int32Animation.cs
- PersonalizationProviderHelper.cs
- RawStylusInputCustomData.cs
- ClientApiGenerator.cs
- DataView.cs
- PropertyCollection.cs
- DataServiceResponse.cs
- AccessibilityApplicationManager.cs
- Point3DConverter.cs
- DoubleStorage.cs
- OleDbInfoMessageEvent.cs
- TextParagraphProperties.cs
- OracleColumn.cs
- CodeCompiler.cs
- Message.cs
- WindowsIdentity.cs
- UInt16Converter.cs
- ReadOnlyMetadataCollection.cs
- InvalidCastException.cs
- FunctionQuery.cs
- ByteStack.cs
- ErrorInfoXmlDocument.cs
- FunctionOverloadResolver.cs
- SerializationInfo.cs
- ISCIIEncoding.cs
- XmlUtf8RawTextWriter.cs
- MeasurementDCInfo.cs
- QueryRewriter.cs
- Subtree.cs
- BindingWorker.cs
- Stopwatch.cs
- CodeMethodReturnStatement.cs
- RtType.cs
- SafeNativeMethods.cs
- ZoomingMessageFilter.cs
- ExecutionContext.cs
- CodeLinePragma.cs
- PropertyGridEditorPart.cs