Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / ControlParser.cs / 1 / ControlParser.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.Design {
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Reflection;
using System.Text;
using System.Web.UI;
///
///
/// [To be supplied.]
///
[System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)]
public sealed class ControlParser {
private ControlParser() {
}
///
///
/// [To be supplied.]
///
public static Control ParseControl(IDesignerHost designerHost, string controlText) {
if (designerHost == null) {
throw new ArgumentNullException("designerHost");
}
if ((controlText == null) || (controlText.Length == 0)) {
throw new ArgumentNullException("controlText");
}
return ControlSerializer.DeserializeControl(controlText, designerHost);
}
///
///
/// [To be supplied.]
///
internal static Control ParseControl(IDesignerHost designerHost, string controlText, bool applyTheme) {
if (designerHost == null) {
throw new ArgumentNullException("designerHost");
}
if ((controlText == null) || (controlText.Length == 0)) {
throw new ArgumentNullException("controlText");
}
return ControlSerializer.DeserializeControlInternal(controlText, designerHost, applyTheme);
}
///
///
/// [To be supplied.]
///
public static Control ParseControl(IDesignerHost designerHost, string controlText, string directives) {
if (designerHost == null) {
throw new ArgumentNullException("designerHost");
}
if ((controlText == null) || (controlText.Length == 0)) {
throw new ArgumentNullException("controlText");
}
if ((directives != null) && (directives.Length != 0)) {
controlText = directives + controlText;
}
return ControlSerializer.DeserializeControl(controlText, designerHost);
}
public static Control[] ParseControls(IDesignerHost designerHost, string controlText) {
if (designerHost == null) {
throw new ArgumentNullException("designerHost");
}
if ((controlText == null) || (controlText.Length == 0)) {
throw new ArgumentNullException("controlText");
}
return ControlSerializer.DeserializeControls(controlText, designerHost);
}
///
///
/// [To be supplied.]
///
public static ITemplate ParseTemplate(IDesignerHost designerHost, string templateText) {
if (designerHost == null) {
throw new ArgumentNullException("designerHost");
}
return ControlSerializer.DeserializeTemplate(templateText, designerHost);
}
///
///
/// [To be supplied.]
///
public static ITemplate ParseTemplate(IDesignerHost designerHost, string templateText, string directives) {
if (designerHost == null) {
throw new ArgumentNullException("designerHost");
}
return ControlSerializer.DeserializeTemplate(templateText, designerHost);
}
}
}
// 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
- DatePickerTextBox.cs
- ImageField.cs
- X509Certificate2.cs
- IgnorePropertiesAttribute.cs
- XappLauncher.cs
- TypeUtil.cs
- MetadataCacheItem.cs
- TitleStyle.cs
- MethodAccessException.cs
- CompModSwitches.cs
- WindowsToolbarAsMenu.cs
- DateTimeFormatInfoScanner.cs
- HideDisabledControlAdapter.cs
- ImageMap.cs
- UserControl.cs
- WindowsContainer.cs
- AssemblyInfo.cs
- Panel.cs
- WindowCollection.cs
- ChangePassword.cs
- SystemDiagnosticsSection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Accessors.cs
- PlanCompilerUtil.cs
- WebPartConnectionsCancelEventArgs.cs
- Italic.cs
- RenderData.cs
- FlowDecisionLabelFeature.cs
- ImplicitInputBrush.cs
- ScopelessEnumAttribute.cs
- RbTree.cs
- CultureInfoConverter.cs
- Switch.cs
- ObjectQueryState.cs
- MarkedHighlightComponent.cs
- SQLUtility.cs
- TextAdaptor.cs
- ButtonFieldBase.cs
- StringFreezingAttribute.cs
- AspNetHostingPermission.cs
- BulletedListDesigner.cs
- XmlSecureResolver.cs
- DispatcherTimer.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- AdditionalEntityFunctions.cs
- DataGridViewBindingCompleteEventArgs.cs
- Constraint.cs
- KeyboardNavigation.cs
- Currency.cs
- Ref.cs
- BuilderPropertyEntry.cs
- Fx.cs
- ThicknessConverter.cs
- GridSplitter.cs
- ConstraintEnumerator.cs
- ListViewCommandEventArgs.cs
- LogicalExpressionEditor.cs
- ParallelEnumerable.cs
- EntityObject.cs
- ProfileSettings.cs
- AdvancedBindingEditor.cs
- InvalidPipelineStoreException.cs
- SafeNativeMethodsOther.cs
- SelectionChangedEventArgs.cs
- RegexMatch.cs
- XPathEmptyIterator.cs
- DataGridViewRowEventArgs.cs
- LassoSelectionBehavior.cs
- MetadataSerializer.cs
- TextElementCollection.cs
- WebPartZoneBaseDesigner.cs
- PageAsyncTask.cs
- ResourceExpression.cs
- DateTimeValueSerializerContext.cs
- IPHostEntry.cs
- ColorConverter.cs
- DummyDataSource.cs
- EditCommandColumn.cs
- RenderData.cs
- ServiceOperationWrapper.cs
- Binding.cs
- ReachPrintTicketSerializerAsync.cs
- InputLanguageEventArgs.cs
- ButtonChrome.cs
- LinkedList.cs
- BrowserDefinition.cs
- SqlPersistenceProviderFactory.cs
- JsonReader.cs
- JournalEntry.cs
- Process.cs
- XmlSchemaChoice.cs
- _TimerThread.cs
- PingReply.cs
- ConditionalAttribute.cs
- NamespaceCollection.cs
- SystemNetworkInterface.cs
- GifBitmapDecoder.cs
- Inline.cs
- ParameterElementCollection.cs
- AsnEncodedData.cs