Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutPanel.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataBoundControlAdapter.cs
- ScriptMethodAttribute.cs
- UrlPath.cs
- CalloutQueueItem.cs
- TraceUtils.cs
- OleDbPermission.cs
- WebOperationContext.cs
- GroupBox.cs
- KeyInstance.cs
- RestClientProxyHandler.cs
- SiteMap.cs
- WindowsFormsLinkLabel.cs
- AuthenticodeSignatureInformation.cs
- DesignerAttribute.cs
- Automation.cs
- HttpListenerTimeoutManager.cs
- DbDataRecord.cs
- PropertyAccessVisitor.cs
- RawKeyboardInputReport.cs
- ReliabilityContractAttribute.cs
- DataServiceQueryOfT.cs
- HttpInputStream.cs
- ImageBrush.cs
- HttpListener.cs
- LastQueryOperator.cs
- CodeAccessSecurityEngine.cs
- GeneratedContractType.cs
- DataBoundControlHelper.cs
- RenderDataDrawingContext.cs
- MergeFilterQuery.cs
- NavigationFailedEventArgs.cs
- HandlerMappingMemo.cs
- PieceNameHelper.cs
- WebException.cs
- ShaderRenderModeValidation.cs
- TextContainerHelper.cs
- httpapplicationstate.cs
- _SSPIWrapper.cs
- OutOfMemoryException.cs
- OuterGlowBitmapEffect.cs
- PolyBezierSegment.cs
- XmlSignatureManifest.cs
- IteratorFilter.cs
- UnsafeNativeMethods.cs
- LayoutSettings.cs
- FilterException.cs
- BamlTreeNode.cs
- ColumnHeaderConverter.cs
- RectAnimationUsingKeyFrames.cs
- JsonReader.cs
- MD5.cs
- DataObjectEventArgs.cs
- MergeFailedEvent.cs
- XmlWrappingWriter.cs
- Size3D.cs
- TextMessageEncodingElement.cs
- streamingZipPartStream.cs
- HtmlTitle.cs
- ToolStripSeparatorRenderEventArgs.cs
- SqlStatistics.cs
- XPathParser.cs
- DependencyObject.cs
- XmlBinaryReader.cs
- ResourceReferenceKeyNotFoundException.cs
- QueryStringHandler.cs
- HijriCalendar.cs
- EventLogger.cs
- StyleSheetComponentEditor.cs
- HMACSHA384.cs
- XNodeNavigator.cs
- TextServicesProperty.cs
- WindowsPen.cs
- CurrentChangingEventArgs.cs
- MailMessageEventArgs.cs
- MessageDispatch.cs
- BmpBitmapEncoder.cs
- NavigationWindow.cs
- CultureInfoConverter.cs
- InnerItemCollectionView.cs
- SendMailErrorEventArgs.cs
- HttpHandlerAction.cs
- CharacterString.cs
- TargetConverter.cs
- NetDispatcherFaultException.cs
- TableSectionStyle.cs
- UnmanagedHandle.cs
- ObjectDisposedException.cs
- Scheduler.cs
- EdmPropertyAttribute.cs
- CachedBitmap.cs
- AudioException.cs
- TemplateField.cs
- PermissionSet.cs
- TaskDesigner.cs
- EdmTypeAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- CreateUserErrorEventArgs.cs
- COMException.cs
- QilDataSource.cs
- OleDbConnectionPoolGroupProviderInfo.cs