Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutSettings.cs / 1 / 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
- DefaultMemberAttribute.cs
- Cloud.cs
- AssemblyNameUtility.cs
- OrderedDictionaryStateHelper.cs
- DataTableReader.cs
- TreeWalkHelper.cs
- DetailsView.cs
- __Filters.cs
- XPathNodeList.cs
- WebPartUserCapability.cs
- TransformedBitmap.cs
- InputReport.cs
- UIElementIsland.cs
- TextProperties.cs
- EventDescriptor.cs
- BamlMapTable.cs
- _UncName.cs
- EventProviderClassic.cs
- DbgCompiler.cs
- xmlsaver.cs
- RelationshipWrapper.cs
- control.ime.cs
- PropertyGridCommands.cs
- WebEventCodes.cs
- ColumnResizeUndoUnit.cs
- Property.cs
- _LoggingObject.cs
- ProxyHwnd.cs
- ConfigurationProperty.cs
- InstanceKeyCollisionException.cs
- JapaneseLunisolarCalendar.cs
- XsdBuilder.cs
- XmlReflectionImporter.cs
- SelectedDatesCollection.cs
- DuplicateWaitObjectException.cs
- Workspace.cs
- WpfGeneratedKnownTypes.cs
- DataListCommandEventArgs.cs
- EnterpriseServicesHelper.cs
- StreamDocument.cs
- UnsafeNativeMethods.cs
- ToolStripPanel.cs
- TouchesOverProperty.cs
- StreamingContext.cs
- TextRange.cs
- WebPartTracker.cs
- MessageQueueException.cs
- CompositeControl.cs
- Effect.cs
- Wizard.cs
- FormViewInsertEventArgs.cs
- ActivityTypeResolver.xaml.cs
- ETagAttribute.cs
- HttpContextServiceHost.cs
- UserControl.cs
- LambdaExpression.cs
- EntityDataSourceState.cs
- DataRowCollection.cs
- OracleCommandSet.cs
- StylusDevice.cs
- ItemContainerPattern.cs
- BezierSegment.cs
- ComboBoxItem.cs
- Header.cs
- HScrollProperties.cs
- WebConfigurationManager.cs
- WSSecureConversationDec2005.cs
- _HTTPDateParse.cs
- Base64Encoder.cs
- ObservableCollection.cs
- ScaleTransform.cs
- columnmapkeybuilder.cs
- PerformanceCounterLib.cs
- AppSecurityManager.cs
- SQLDateTime.cs
- TypeDescriptionProvider.cs
- ConfigurationSectionGroupCollection.cs
- PortCache.cs
- FileDialog_Vista.cs
- HandlerFactoryCache.cs
- MemoryStream.cs
- AdapterUtil.cs
- EntityCommandExecutionException.cs
- WebBrowserDesigner.cs
- RequestCachePolicy.cs
- PackagePart.cs
- CustomAttributeFormatException.cs
- TreeNodeStyleCollection.cs
- AutomationFocusChangedEventArgs.cs
- SharedPerformanceCounter.cs
- Button.cs
- KnownIds.cs
- UIElementPropertyUndoUnit.cs
- QuadTree.cs
- Cloud.cs
- XmlJsonWriter.cs
- BooleanConverter.cs
- RectangleGeometry.cs
- Expression.cs
- SmtpCommands.cs