Code:
/ FX-1434 / FX-1434 / 1.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
- DataControlPagerLinkButton.cs
- RenderDataDrawingContext.cs
- XmlHelper.cs
- DocumentGrid.cs
- VisualStateGroup.cs
- StructuredType.cs
- OdbcCommandBuilder.cs
- cryptoapiTransform.cs
- XmlLanguage.cs
- CommentAction.cs
- EncoderNLS.cs
- BasicViewGenerator.cs
- XmlSchemaGroup.cs
- DateTimePicker.cs
- Predicate.cs
- DataGridViewLayoutData.cs
- EntityParameterCollection.cs
- WebPartEditorApplyVerb.cs
- SettingsAttributeDictionary.cs
- SqlProviderManifest.cs
- Empty.cs
- UdpSocketReceiveManager.cs
- PersonalizationDictionary.cs
- HtmlTableRow.cs
- DefaultValueConverter.cs
- XmlSerializationWriter.cs
- dtdvalidator.cs
- DbReferenceCollection.cs
- DataSourceView.cs
- TextEditorSelection.cs
- WorkflowElementDialog.cs
- CompressedStack.cs
- UnknownBitmapDecoder.cs
- SchemeSettingElementCollection.cs
- ThreadPool.cs
- httpserverutility.cs
- Root.cs
- PackageDigitalSignatureManager.cs
- MapPathBasedVirtualPathProvider.cs
- AuthenticatedStream.cs
- Base64WriteStateInfo.cs
- CacheVirtualItemsEvent.cs
- CryptoApi.cs
- ExternalCalls.cs
- ImmComposition.cs
- InteropAutomationProvider.cs
- DesignBindingConverter.cs
- NameSpaceExtractor.cs
- TrustManagerMoreInformation.cs
- SplineKeyFrames.cs
- AsyncPostBackErrorEventArgs.cs
- Compiler.cs
- Compiler.cs
- TagPrefixAttribute.cs
- DeferredElementTreeState.cs
- PublisherMembershipCondition.cs
- LogicalChannel.cs
- ExtendedPropertyInfo.cs
- AccessDataSource.cs
- ToolboxBitmapAttribute.cs
- Vector3D.cs
- HTMLTagNameToTypeMapper.cs
- EntityClientCacheEntry.cs
- NavigationPropertySingletonExpression.cs
- SendingRequestEventArgs.cs
- CodeTypeParameterCollection.cs
- JulianCalendar.cs
- XmlSchemaFacet.cs
- StateMachineTimers.cs
- DataGridColumnHeader.cs
- FrameDimension.cs
- RuleConditionDialog.Designer.cs
- EmptyStringExpandableObjectConverter.cs
- SqlParameterCollection.cs
- SystemEvents.cs
- _ContextAwareResult.cs
- UIntPtr.cs
- ExpandableObjectConverter.cs
- SqlParameterCollection.cs
- Substitution.cs
- FixedSOMContainer.cs
- Ticks.cs
- DrawingGroup.cs
- FormViewModeEventArgs.cs
- XmlAttributeAttribute.cs
- CompiledRegexRunner.cs
- WindowsBrush.cs
- TransactionWaitAsyncResult.cs
- Metafile.cs
- PersonalizableTypeEntry.cs
- SerializationEventsCache.cs
- RecognizeCompletedEventArgs.cs
- HttpCookiesSection.cs
- HttpListener.cs
- QuarticEase.cs
- TrackingValidationObjectDictionary.cs
- PerformanceCounterLib.cs
- WindowsListBox.cs
- SqlInternalConnection.cs
- HandleCollector.cs