Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutSettings.cs / 1305376 / FlowLayoutSettings.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; ///[DefaultProperty("FlowDirection")] public class FlowLayoutSettings : LayoutSettings { internal FlowLayoutSettings(IArrangedElement owner) : base(owner) {} /// public override LayoutEngine LayoutEngine { get { return FlowLayout.Instance; } } /// [SRDescription(SR.FlowPanelFlowDirectionDescr)] [DefaultValue(FlowDirection.LeftToRight)] [SRCategory(SR.CatLayout)] public FlowDirection FlowDirection { get { return FlowLayout.GetFlowDirection(Owner); } set { FlowLayout.SetFlowDirection(Owner, value); Debug.Assert(FlowDirection == value, "FlowDirection should be the same as we set it"); } } /// [SRDescription(SR.FlowPanelWrapContentsDescr)] [DefaultValue(true)] [SRCategory(SR.CatLayout)] public bool WrapContents { get { return FlowLayout.GetWrapContents(Owner); } set { FlowLayout.SetWrapContents(Owner, value); Debug.Assert(WrapContents == value, "WrapContents should be the same as we set it"); } } public void SetFlowBreak(object child, bool value) { IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child); if (GetFlowBreak(child) != value) { CommonProperties.SetFlowBreak(element, value); } } public bool GetFlowBreak(object child) { IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child); return CommonProperties.GetFlowBreak(element); } } } // 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
- PrivilegedConfigurationManager.cs
- PanelDesigner.cs
- ClientProxyGenerator.cs
- FontFamily.cs
- SecurityDocument.cs
- Help.cs
- DataObjectCopyingEventArgs.cs
- webproxy.cs
- SymbolMethod.cs
- Utils.cs
- TemplateManager.cs
- HandlerMappingMemo.cs
- CheckBoxFlatAdapter.cs
- KeyedPriorityQueue.cs
- Model3D.cs
- XpsFontSubsetter.cs
- SqlException.cs
- StringReader.cs
- WebPartsPersonalization.cs
- MenuItemCollectionEditorDialog.cs
- X509CertificateInitiatorServiceCredential.cs
- COAUTHINFO.cs
- StringValidator.cs
- PagerSettings.cs
- PTManager.cs
- ImmComposition.cs
- AssemblyCache.cs
- Transform.cs
- CollectionDataContractAttribute.cs
- TreeIterators.cs
- RefExpr.cs
- MetaTable.cs
- XamlWriter.cs
- HtmlTernaryTree.cs
- CompModHelpers.cs
- TypefaceMetricsCache.cs
- TextParagraph.cs
- GlobalDataBindingHandler.cs
- FixedDocument.cs
- HashMembershipCondition.cs
- designeractionlistschangedeventargs.cs
- GlyphShapingProperties.cs
- XmlnsPrefixAttribute.cs
- NamedElement.cs
- Missing.cs
- AsymmetricKeyExchangeDeformatter.cs
- AuthenticationSection.cs
- ResourcesGenerator.cs
- LinearKeyFrames.cs
- LocatorManager.cs
- ResourcePermissionBase.cs
- StylusCaptureWithinProperty.cs
- SpecularMaterial.cs
- ProfileParameter.cs
- PublisherMembershipCondition.cs
- HttpRequest.cs
- UdpDuplexChannel.cs
- NominalTypeEliminator.cs
- XmlUnspecifiedAttribute.cs
- SafePointer.cs
- XhtmlConformanceSection.cs
- Size.cs
- AnnotationService.cs
- RowBinding.cs
- ConnectionStringSettings.cs
- HwndSourceKeyboardInputSite.cs
- AggregateException.cs
- Baml2006KeyRecord.cs
- InternalEnumValidatorAttribute.cs
- Marshal.cs
- SmiXetterAccessMap.cs
- ListControl.cs
- XmlCountingReader.cs
- ViewStateChangedEventArgs.cs
- ExceptionList.cs
- Stream.cs
- User.cs
- DiagnosticsConfiguration.cs
- TransformGroup.cs
- UseLicense.cs
- SequenceFullException.cs
- Thumb.cs
- DynamicMetaObjectBinder.cs
- ConfigurationStrings.cs
- QueryContinueDragEvent.cs
- coordinator.cs
- MsmqIntegrationProcessProtocolHandler.cs
- RsaSecurityKey.cs
- SessionParameter.cs
- Int64Storage.cs
- XmlSerializerNamespaces.cs
- HitTestDrawingContextWalker.cs
- TextEncodedRawTextWriter.cs
- XPathDescendantIterator.cs
- StylusPlugInCollection.cs
- ScrollProperties.cs
- ResourceBinder.cs
- PersonalizationStateQuery.cs
- _SSPIWrapper.cs
- TickBar.cs