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
- UniqueCodeIdentifierScope.cs
- OlePropertyStructs.cs
- IsolationInterop.cs
- CngKey.cs
- WorkflowApplication.cs
- safesecurityhelperavalon.cs
- CleanUpVirtualizedItemEventArgs.cs
- AesManaged.cs
- ProtocolInformationWriter.cs
- ScrollProviderWrapper.cs
- XmlWriterSettings.cs
- MediaTimeline.cs
- CryptoKeySecurity.cs
- BlockingCollection.cs
- HostSecurityManager.cs
- IPAddressCollection.cs
- ProcessRequestAsyncResult.cs
- TagPrefixCollection.cs
- VBIdentifierNameEditor.cs
- RtfNavigator.cs
- DesignerActionPanel.cs
- Path.cs
- TextSelectionHelper.cs
- EdmItemCollection.cs
- UpdateCommand.cs
- Rect.cs
- WebPartManager.cs
- TextEndOfLine.cs
- XPathPatternParser.cs
- Grant.cs
- CodeGenerationManager.cs
- XmlNodeChangedEventManager.cs
- Ipv6Element.cs
- SplineKeyFrames.cs
- CommonXSendMessage.cs
- CodeGenHelper.cs
- DataGridColumn.cs
- ValidationErrorEventArgs.cs
- XsltCompileContext.cs
- _DigestClient.cs
- ByteAnimationBase.cs
- GenericRootAutomationPeer.cs
- FixedSOMGroup.cs
- ApplicationServiceManager.cs
- EditorPartChrome.cs
- EdmTypeAttribute.cs
- FixedSOMPage.cs
- ProgressChangedEventArgs.cs
- DrawingImage.cs
- WebServicesInteroperability.cs
- SQLBoolean.cs
- SqlConnectionPoolProviderInfo.cs
- DropDownButton.cs
- ScriptReferenceEventArgs.cs
- WebPartHeaderCloseVerb.cs
- WindowPatternIdentifiers.cs
- HyperLinkStyle.cs
- ConnectionInterfaceCollection.cs
- XmlIgnoreAttribute.cs
- EventArgs.cs
- EncodingTable.cs
- DataContract.cs
- EncoderParameter.cs
- SiteMapNodeItemEventArgs.cs
- CompatibleComparer.cs
- Int32Storage.cs
- Semaphore.cs
- MailMessageEventArgs.cs
- DefaultBinder.cs
- XmlName.cs
- DataGridCommandEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- CustomSignedXml.cs
- TTSEvent.cs
- TrackingLocation.cs
- CodeRegionDirective.cs
- IOThreadTimer.cs
- MessageDroppedTraceRecord.cs
- MethodAccessException.cs
- SessionParameter.cs
- MailWebEventProvider.cs
- PenThreadPool.cs
- SafeTokenHandle.cs
- WindowsStreamSecurityElement.cs
- AutoGeneratedFieldProperties.cs
- BypassElement.cs
- HebrewNumber.cs
- ContourSegment.cs
- TriggerBase.cs
- EntityDesignPluralizationHandler.cs
- IPHostEntry.cs
- KeyFrames.cs
- PingOptions.cs
- XmlMessageFormatter.cs
- BitmapSource.cs
- NotifyCollectionChangedEventArgs.cs
- DataColumn.cs
- StaticExtensionConverter.cs
- EpmSourcePathSegment.cs
- DetailsViewPagerRow.cs