Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutPanel.cs / 1 / FlowLayoutPanel.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Windows.Forms.Layout; using System.Runtime.InteropServices; ///[ComVisible(true)] [ClassInterface(ClassInterfaceType.AutoDispatch)] [ProvideProperty("FlowBreak", typeof(Control))] [DefaultProperty("FlowDirection")] [Designer("System.Windows.Forms.Design.FlowLayoutPanelDesigner, " + AssemblyRef.SystemDesign)] [Docking(DockingBehavior.Ask)] [SRDescription(SR.DescriptionFlowLayoutPanel)] public class FlowLayoutPanel : Panel, IExtenderProvider { private FlowLayoutSettings _flowLayoutSettings; /// public FlowLayoutPanel() { _flowLayoutSettings = FlowLayout.CreateSettings(this); } /// public override LayoutEngine LayoutEngine { get { return FlowLayout.Instance; } } /// [SRDescription(SR.FlowPanelFlowDirectionDescr)] [DefaultValue(FlowDirection.LeftToRight)] [SRCategory(SR.CatLayout)] [Localizable(true)] public FlowDirection FlowDirection { get { return _flowLayoutSettings.FlowDirection; } set { _flowLayoutSettings.FlowDirection = value; Debug.Assert(FlowDirection == value, "FlowDirection should be the same as we set it"); } } /// [SRDescription(SR.FlowPanelWrapContentsDescr)] [DefaultValue(true)] [SRCategory(SR.CatLayout)] [Localizable(true)] public bool WrapContents { get { return _flowLayoutSettings.WrapContents; } set { _flowLayoutSettings.WrapContents = value; Debug.Assert(WrapContents == value, "WrapContents should be the same as we set it"); } } #region Provided properties /// /// bool IExtenderProvider.CanExtend(object obj) { Control control = obj as Control; return control != null && control.Parent == this; } [DefaultValue(false)] [DisplayName("FlowBreak")] public bool GetFlowBreak(Control control) { return _flowLayoutSettings.GetFlowBreak(control); } [DisplayName("FlowBreak")] public void SetFlowBreak(Control control, bool value) { _flowLayoutSettings.SetFlowBreak(control, value); } #endregion } } // 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
- EndOfStreamException.cs
- XsdDataContractExporter.cs
- SqlGenericUtil.cs
- EmissiveMaterial.cs
- SchemaImporter.cs
- CounterCreationDataCollection.cs
- sqlstateclientmanager.cs
- SchemaRegistration.cs
- XmlILCommand.cs
- ConstructorExpr.cs
- TextServicesDisplayAttributePropertyRanges.cs
- GridViewRowCollection.cs
- XmlDataSource.cs
- SessionEndedEventArgs.cs
- Parser.cs
- TextRenderer.cs
- Update.cs
- ValueTable.cs
- Empty.cs
- X509Certificate.cs
- CallSiteHelpers.cs
- ResolveCriteriaApril2005.cs
- HtmlAnchor.cs
- DiscoveryDocumentLinksPattern.cs
- UriScheme.cs
- SafeViewOfFileHandle.cs
- IsolatedStorage.cs
- HealthMonitoringSectionHelper.cs
- OSEnvironmentHelper.cs
- XmlSerializerSection.cs
- WarningException.cs
- DataControlImageButton.cs
- PenCursorManager.cs
- BaseDataList.cs
- RayMeshGeometry3DHitTestResult.cs
- ObfuscateAssemblyAttribute.cs
- FormsAuthenticationTicket.cs
- MethodCallExpression.cs
- ResetableIterator.cs
- BindingExpressionBase.cs
- StorageEntityContainerMapping.cs
- JavascriptCallbackMessageInspector.cs
- XmlSignatureProperties.cs
- DataGridPagerStyle.cs
- CallTemplateAction.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SynchronousReceiveBehavior.cs
- VoiceChangeEventArgs.cs
- EntityDataSourceContainerNameConverter.cs
- PathFigureCollectionConverter.cs
- ControlIdConverter.cs
- EditCommandColumn.cs
- TypedTableBase.cs
- StatusBarDrawItemEvent.cs
- ReferenceConverter.cs
- FacetDescriptionElement.cs
- storepermission.cs
- HttpWebRequestElement.cs
- MarginsConverter.cs
- SessionStateContainer.cs
- MembershipPasswordException.cs
- ListControlConvertEventArgs.cs
- InheritanceRules.cs
- ChannelManager.cs
- QueueSurrogate.cs
- LineBreak.cs
- Converter.cs
- SeekStoryboard.cs
- BinaryConverter.cs
- MeasureData.cs
- XPathNavigatorKeyComparer.cs
- WebZone.cs
- Schema.cs
- UnSafeCharBuffer.cs
- CollectionEditVerbManager.cs
- TextInfo.cs
- ValidatedControlConverter.cs
- UnsignedPublishLicense.cs
- CacheRequest.cs
- DynamicQueryableWrapper.cs
- ConfigurationUtility.cs
- Enum.cs
- EncoderExceptionFallback.cs
- SpellerStatusTable.cs
- AppDomainFactory.cs
- BinaryObjectInfo.cs
- ParamArrayAttribute.cs
- ISO2022Encoding.cs
- CoTaskMemHandle.cs
- InlineUIContainer.cs
- AliasedSlot.cs
- InvalidPrinterException.cs
- Decimal.cs
- BaseParser.cs
- MarshalByRefObject.cs
- MultipartContentParser.cs
- EntityViewGenerationConstants.cs
- XsltContext.cs
- EntityDataSourceSelectingEventArgs.cs
- RayMeshGeometry3DHitTestResult.cs