Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / templategroup.cs / 1 / templategroup.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.Design {
using System;
using System.Collections;
using System.Web.UI.WebControls;
///
public class TemplateGroup {
private static TemplateDefinition[] emptyTemplateDefinitionArray = new TemplateDefinition[0];
private string _groupName;
private Style _groupStyle;
private ArrayList _templates;
///
public TemplateGroup(string groupName) : this(groupName, null) {
}
///
public TemplateGroup(string groupName, Style groupStyle) {
_groupName = groupName;
_groupStyle = groupStyle;
}
///
public bool IsEmpty {
get {
return (_templates == null) || (_templates.Count == 0);
}
}
///
public string GroupName {
get {
return _groupName;
}
}
///
public Style GroupStyle {
get {
return _groupStyle;
}
}
///
public TemplateDefinition[] Templates {
get {
if (_templates == null) {
return emptyTemplateDefinitionArray;
}
return (TemplateDefinition[])_templates.ToArray(typeof(TemplateDefinition));
}
}
///
public void AddTemplateDefinition(TemplateDefinition templateDefinition) {
if (_templates == null) {
_templates = new ArrayList();
}
_templates.Add(templateDefinition);
}
}
}
// 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
- HttpCacheVaryByContentEncodings.cs
- ValidationUtility.cs
- DataBoundControlHelper.cs
- ProcessHostFactoryHelper.cs
- SignedPkcs7.cs
- MethodRental.cs
- SQLMoney.cs
- FileSystemWatcher.cs
- InstanceDataCollectionCollection.cs
- MailWebEventProvider.cs
- X509RecipientCertificateClientElement.cs
- WebPermission.cs
- SqlConnectionStringBuilder.cs
- XmlSchemaResource.cs
- SafeLibraryHandle.cs
- FontSource.cs
- DataRecordInternal.cs
- ObjectStateManagerMetadata.cs
- PolicyVersionConverter.cs
- ReferenceEqualityComparer.cs
- MetadataCache.cs
- StorageSetMapping.cs
- SkipStoryboardToFill.cs
- SingletonChannelAcceptor.cs
- Application.cs
- ClientConfigPaths.cs
- TargetControlTypeCache.cs
- OdbcFactory.cs
- ParserExtension.cs
- DbProviderFactoriesConfigurationHandler.cs
- TimeSpanStorage.cs
- MatrixAnimationBase.cs
- WbemException.cs
- AnnotationDocumentPaginator.cs
- Token.cs
- SharedRuntimeState.cs
- SqlServer2KCompatibilityCheck.cs
- SafeNativeMethods.cs
- BitmapPalette.cs
- VersionedStreamOwner.cs
- __ConsoleStream.cs
- ToolboxDataAttribute.cs
- SimplePropertyEntry.cs
- FunctionQuery.cs
- ExtentKey.cs
- HorizontalAlignConverter.cs
- WindowsFormsSectionHandler.cs
- InstanceContextMode.cs
- EdmItemError.cs
- COSERVERINFO.cs
- DecoderReplacementFallback.cs
- SecurityContext.cs
- SHA1Managed.cs
- ImageBrush.cs
- RolePrincipal.cs
- SortedList.cs
- MenuScrollingVisibilityConverter.cs
- XmlSchemaSimpleType.cs
- SemaphoreFullException.cs
- XmlIgnoreAttribute.cs
- RemoteWebConfigurationHost.cs
- Privilege.cs
- SplitterEvent.cs
- HandlerBase.cs
- ArglessEventHandlerProxy.cs
- SortFieldComparer.cs
- ProjectedWrapper.cs
- PagesSection.cs
- XmlCustomFormatter.cs
- FixedTextBuilder.cs
- Vector3D.cs
- AutomationPatternInfo.cs
- InkPresenter.cs
- SafeSecurityHelper.cs
- ProfileProvider.cs
- DocumentPageHost.cs
- DecimalKeyFrameCollection.cs
- TextEffectResolver.cs
- AdornerHitTestResult.cs
- GcHandle.cs
- GraphicsContext.cs
- SoapExtensionImporter.cs
- ProfilePropertyNameValidator.cs
- ClientCredentials.cs
- WebBrowserUriTypeConverter.cs
- DispatcherSynchronizationContext.cs
- AuthenticationException.cs
- mediaeventshelper.cs
- DPCustomTypeDescriptor.cs
- Scanner.cs
- UIElement3D.cs
- CommonProperties.cs
- ReferentialConstraint.cs
- AutomationProperties.cs
- RectangleGeometry.cs
- BitConverter.cs
- LineBreak.cs
- MsmqIntegrationMessageProperty.cs
- EntitySet.cs
- RegexInterpreter.cs