Code:
/ FX-1434 / FX-1434 / 1.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
- ToolStripDropDownClosingEventArgs.cs
- BaseAsyncResult.cs
- SiteIdentityPermission.cs
- Line.cs
- EntityModelSchemaGenerator.cs
- ListSourceHelper.cs
- TextBoxDesigner.cs
- VectorAnimationBase.cs
- BinaryReader.cs
- PermissionSet.cs
- RenderOptions.cs
- SmtpDigestAuthenticationModule.cs
- CommonDialog.cs
- XmlStreamNodeWriter.cs
- ArglessEventHandlerProxy.cs
- SerializationInfo.cs
- XmlStreamStore.cs
- DefaultPrintController.cs
- IgnoreFileBuildProvider.cs
- ThicknessAnimation.cs
- WebPartAuthorizationEventArgs.cs
- Quad.cs
- EntityDataSourceDataSelectionPanel.cs
- CultureInfo.cs
- GlyphsSerializer.cs
- ImageSourceConverter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- SecurityTokenSerializer.cs
- ConfigurationSectionCollection.cs
- DataGridViewCellConverter.cs
- IOThreadTimer.cs
- IssuanceLicense.cs
- WindowsEditBoxRange.cs
- RoutedEvent.cs
- UnsafeNativeMethodsTablet.cs
- X509CertificateCollection.cs
- HyperLinkColumn.cs
- MenuItem.cs
- NamedPipeHostedTransportConfiguration.cs
- ViewCellRelation.cs
- InfoCardBinaryReader.cs
- ADRoleFactory.cs
- IPAddressCollection.cs
- StructureChangedEventArgs.cs
- BamlStream.cs
- ScriptControlDescriptor.cs
- NonVisualControlAttribute.cs
- ContextStack.cs
- RetrieveVirtualItemEventArgs.cs
- ScrollBarRenderer.cs
- BackgroundWorker.cs
- TemplatedMailWebEventProvider.cs
- AstNode.cs
- CultureNotFoundException.cs
- DBDataPermission.cs
- UpdatePanelTrigger.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RemoteCryptoSignHashRequest.cs
- CacheChildrenQuery.cs
- ExpressionHelper.cs
- SystemWebCachingSectionGroup.cs
- PathData.cs
- TrackingMemoryStream.cs
- EventLogEntry.cs
- GradientSpreadMethodValidation.cs
- Int64AnimationUsingKeyFrames.cs
- UInt16Converter.cs
- StrongNameIdentityPermission.cs
- ScalarType.cs
- Color.cs
- PkcsUtils.cs
- WhereaboutsReader.cs
- Internal.cs
- DictionarySurrogate.cs
- Slider.cs
- RecordsAffectedEventArgs.cs
- MeshGeometry3D.cs
- HttpStreamFormatter.cs
- SchemaMapping.cs
- PropertyConverter.cs
- CellParagraph.cs
- DefaultWorkflowTransactionService.cs
- OleServicesContext.cs
- WebEvents.cs
- FontDifferentiator.cs
- MultipartContentParser.cs
- FileDialog_Vista.cs
- FileLogRecordHeader.cs
- OdbcDataAdapter.cs
- CalendarTable.cs
- XamlPathDataSerializer.cs
- IPipelineRuntime.cs
- HttpListener.cs
- Triangle.cs
- MappingModelBuildProvider.cs
- AssemblyAttributesGoHere.cs
- FullTextBreakpoint.cs
- ListViewDeletedEventArgs.cs
- ToolStripDropTargetManager.cs
- XsdDataContractExporter.cs