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
- PagedDataSource.cs
- List.cs
- CannotUnloadAppDomainException.cs
- SessionPageStatePersister.cs
- TreeViewCancelEvent.cs
- BinaryEditor.cs
- Sequence.cs
- HwndProxyElementProvider.cs
- LocalIdKeyIdentifierClause.cs
- AuthenticatedStream.cs
- AssemblyResourceLoader.cs
- HashHelper.cs
- ClaimSet.cs
- ParallelActivityDesigner.cs
- SslStream.cs
- HostingEnvironmentException.cs
- PermissionSetTriple.cs
- SystemUnicastIPAddressInformation.cs
- ContentDisposition.cs
- DecoratedNameAttribute.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- EditorPartChrome.cs
- ToolStripItemEventArgs.cs
- Int16Animation.cs
- JournalEntryListConverter.cs
- FormsAuthenticationUser.cs
- SqlNotificationRequest.cs
- StrongNameUtility.cs
- StsCommunicationException.cs
- SourceChangedEventArgs.cs
- ValueProviderWrapper.cs
- RegexWorker.cs
- LambdaCompiler.Logical.cs
- AncestorChangedEventArgs.cs
- ReflectionTypeLoadException.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SafeRightsManagementPubHandle.cs
- CriticalFinalizerObject.cs
- ICspAsymmetricAlgorithm.cs
- SchemaImporterExtensionElementCollection.cs
- EventLogQuery.cs
- ToolBarButton.cs
- DesignerValidatorAdapter.cs
- NotSupportedException.cs
- VScrollBar.cs
- HostingPreferredMapPath.cs
- ClientSettingsProvider.cs
- TabItemAutomationPeer.cs
- BamlTreeNode.cs
- EnterpriseServicesHelper.cs
- TextServicesProperty.cs
- DataRelation.cs
- ipaddressinformationcollection.cs
- ViewCellSlot.cs
- PageCache.cs
- MailWriter.cs
- KnownTypesHelper.cs
- GridViewDeleteEventArgs.cs
- DynamicPropertyReader.cs
- PathFigure.cs
- GridViewCancelEditEventArgs.cs
- OAVariantLib.cs
- SqlDataRecord.cs
- PointConverter.cs
- BaseProcessor.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- KeyedHashAlgorithm.cs
- XmlDataSourceNodeDescriptor.cs
- webclient.cs
- TextSelectionHighlightLayer.cs
- Validator.cs
- StringComparer.cs
- PenThreadPool.cs
- ProfilePropertySettingsCollection.cs
- UpdateRecord.cs
- StatusBarPanelClickEvent.cs
- TypefaceMap.cs
- ObjectViewEntityCollectionData.cs
- Screen.cs
- ErrorTableItemStyle.cs
- XmlSignificantWhitespace.cs
- SecurityTokenRequirement.cs
- CompilationSection.cs
- SyndicationSerializer.cs
- ToolStripComboBox.cs
- SHA1CryptoServiceProvider.cs
- Stylesheet.cs
- ToolStripItemImageRenderEventArgs.cs
- HwndSubclass.cs
- ScriptControl.cs
- DataStreams.cs
- TextElementEditingBehaviorAttribute.cs
- DataGridViewComboBoxCell.cs
- DbMetaDataFactory.cs
- ThemeInfoAttribute.cs
- NotImplementedException.cs
- Base64Decoder.cs
- Selection.cs
- TimeEnumHelper.cs
- ToolStripItem.cs