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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebHttpEndpoint.cs
- GridViewCellAutomationPeer.cs
- Operator.cs
- PreProcessor.cs
- HtmlShimManager.cs
- HeaderedContentControl.cs
- InvokeMemberBinder.cs
- AttributeConverter.cs
- DeclaredTypeElement.cs
- TextRange.cs
- StylusPointPropertyUnit.cs
- PnrpPermission.cs
- Point3DAnimationBase.cs
- SoapSchemaImporter.cs
- BStrWrapper.cs
- ThemeableAttribute.cs
- URLMembershipCondition.cs
- StorageComplexPropertyMapping.cs
- TimeSpanValidatorAttribute.cs
- SchemaTableColumn.cs
- EastAsianLunisolarCalendar.cs
- MergePropertyDescriptor.cs
- SqlBinder.cs
- EventLog.cs
- PeerPresenceInfo.cs
- EventLogPermissionEntryCollection.cs
- BaseConfigurationRecord.cs
- SqlFunctionAttribute.cs
- TransactionTraceIdentifier.cs
- OracleBFile.cs
- Trace.cs
- FileSecurity.cs
- LinkUtilities.cs
- DataGridViewRowCancelEventArgs.cs
- ExtenderControl.cs
- SettingsBase.cs
- TextDecorations.cs
- XmlValidatingReaderImpl.cs
- OdbcCommand.cs
- TransformPattern.cs
- RadialGradientBrush.cs
- SqlConnectionHelper.cs
- MutableAssemblyCacheEntry.cs
- CodeMemberProperty.cs
- __Error.cs
- ScriptServiceAttribute.cs
- ControlUtil.cs
- SettingsPropertyNotFoundException.cs
- SignedInfo.cs
- KeySpline.cs
- SignatureHelper.cs
- ErrorLog.cs
- DataGridViewColumnEventArgs.cs
- Walker.cs
- TextSegment.cs
- PackageRelationshipCollection.cs
- Tile.cs
- MetadataSource.cs
- DetailsViewDeleteEventArgs.cs
- WebServiceBindingAttribute.cs
- AppDomainManager.cs
- TraceShell.cs
- XmlCollation.cs
- PersonalizationProviderCollection.cs
- DataGridViewLinkCell.cs
- LabelLiteral.cs
- ChildTable.cs
- XmlArrayAttribute.cs
- FontFaceLayoutInfo.cs
- SecureEnvironment.cs
- IQueryable.cs
- DbSetClause.cs
- XslAstAnalyzer.cs
- WindowsIdentity.cs
- RenderingEventArgs.cs
- MessageQueueAccessControlEntry.cs
- WorkerProcess.cs
- SqlError.cs
- PropVariant.cs
- Profiler.cs
- DesignerDataConnection.cs
- BuildProviderAppliesToAttribute.cs
- InstalledFontCollection.cs
- DefaultValueAttribute.cs
- StyleXamlParser.cs
- NamespaceCollection.cs
- NTAccount.cs
- CounterSet.cs
- ColorKeyFrameCollection.cs
- FlowDocument.cs
- SmtpSection.cs
- RunWorkerCompletedEventArgs.cs
- XmlAttributeCache.cs
- ByteAnimationBase.cs
- SubtreeProcessor.cs
- cookiecollection.cs
- SqlCommandBuilder.cs
- HyperLinkColumn.cs
- HttpBrowserCapabilitiesBase.cs
- InstanceNormalEvent.cs