Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // // 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
- EntityDataSourceQueryBuilder.cs
- BitmapEncoder.cs
- newinstructionaction.cs
- ScriptingAuthenticationServiceSection.cs
- ConstrainedGroup.cs
- Line.cs
- SmtpClient.cs
- CharacterBufferReference.cs
- xsdvalidator.cs
- DbProviderServices.cs
- ObjectNotFoundException.cs
- Pts.cs
- ConfigurationStrings.cs
- AlternateView.cs
- OperandQuery.cs
- webeventbuffer.cs
- SimpleType.cs
- IdnMapping.cs
- CatalogZoneBase.cs
- ComponentCollection.cs
- SymmetricAlgorithm.cs
- SimpleExpression.cs
- DateTimeConstantAttribute.cs
- XmlSchemaCollection.cs
- HttpDictionary.cs
- XmlnsDictionary.cs
- EndPoint.cs
- DesignOnlyAttribute.cs
- ConnectionPoint.cs
- WebEventCodes.cs
- DataPagerCommandEventArgs.cs
- NominalTypeEliminator.cs
- CopyNamespacesAction.cs
- ReverseQueryOperator.cs
- Exceptions.cs
- CapabilitiesSection.cs
- CodeCastExpression.cs
- CacheHelper.cs
- BigInt.cs
- TextServicesLoader.cs
- HttpModuleCollection.cs
- JsonStringDataContract.cs
- XmlNodeComparer.cs
- WebRequestModulesSection.cs
- UrlMappingsModule.cs
- SystemParameters.cs
- Keywords.cs
- CodeSnippetStatement.cs
- AsyncContentLoadedEventArgs.cs
- ProfileProvider.cs
- DES.cs
- UserControlCodeDomTreeGenerator.cs
- TextEditorTyping.cs
- Compiler.cs
- FtpWebResponse.cs
- WindowsSolidBrush.cs
- CatalogZoneDesigner.cs
- MissingMemberException.cs
- HttpCacheVaryByContentEncodings.cs
- NumericExpr.cs
- TagPrefixCollection.cs
- InternalDuplexChannelListener.cs
- SelectManyQueryOperator.cs
- CodeMemberProperty.cs
- ThreadStaticAttribute.cs
- WebPartConnectionsCloseVerb.cs
- InertiaTranslationBehavior.cs
- SQLSingleStorage.cs
- Events.cs
- FileAuthorizationModule.cs
- DataKeyCollection.cs
- SettingsSection.cs
- DifferencingCollection.cs
- DataBindingCollection.cs
- ListItemCollection.cs
- SettingsProviderCollection.cs
- IdentityHolder.cs
- PropertyInfoSet.cs
- SqlColumnizer.cs
- EncoderExceptionFallback.cs
- MetadataItemCollectionFactory.cs
- XmlSchemaAppInfo.cs
- ReliableSessionElement.cs
- XmlC14NWriter.cs
- SqlErrorCollection.cs
- Italic.cs
- DbDataRecord.cs
- JsonByteArrayDataContract.cs
- TypeUtil.cs
- BitVector32.cs
- PixelFormats.cs
- GridViewColumnCollectionChangedEventArgs.cs
- TableLayoutStyleCollection.cs
- PasswordRecovery.cs
- TextFindEngine.cs
- WindowsFormsSynchronizationContext.cs
- LoadedEvent.cs
- OdbcConnectionStringbuilder.cs
- DefaultClaimSet.cs
- WebHttpElement.cs