Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- EventLogEntryCollection.cs
- XmlEventCache.cs
- PeerApplicationLaunchInfo.cs
- FixUp.cs
- HandlerMappingMemo.cs
- HostAdapter.cs
- BinaryExpression.cs
- SafeUserTokenHandle.cs
- LinqToSqlWrapper.cs
- PropertyEmitter.cs
- SqlNode.cs
- SerializerWriterEventHandlers.cs
- SystemIcmpV4Statistics.cs
- SafeSecurityHandles.cs
- ListViewItemMouseHoverEvent.cs
- autovalidator.cs
- X509LogoTypeExtension.cs
- DatagramAdapter.cs
- QuerySettings.cs
- ResourcesChangeInfo.cs
- HealthMonitoringSectionHelper.cs
- QuaternionConverter.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TextParaLineResult.cs
- RangeContentEnumerator.cs
- Vector3DCollection.cs
- datacache.cs
- input.cs
- RectangleGeometry.cs
- ChildrenQuery.cs
- TreeSet.cs
- Wildcard.cs
- CodeExpressionStatement.cs
- RecipientIdentity.cs
- OleDbSchemaGuid.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ping.cs
- TableAdapterManagerGenerator.cs
- Viewport3DVisual.cs
- Site.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- PageSetupDialog.cs
- NativeMethods.cs
- ObfuscateAssemblyAttribute.cs
- ComNativeDescriptor.cs
- EntityDataSourceWrapperCollection.cs
- ReverseInheritProperty.cs
- DataSourceCache.cs
- SessionParameter.cs
- FormsIdentity.cs
- RemoteHelper.cs
- ForeignConstraint.cs
- Executor.cs
- EntityDataSourceColumn.cs
- TextComposition.cs
- DesignUtil.cs
- EdmConstants.cs
- ObjectSpanRewriter.cs
- KeyMatchBuilder.cs
- DrawingGroupDrawingContext.cs
- StringSource.cs
- AppDomainProtocolHandler.cs
- XamlToRtfWriter.cs
- AppendHelper.cs
- UpdateManifestForBrowserApplication.cs
- PageCache.cs
- AdRotator.cs
- ConfigurationSectionHelper.cs
- WebServiceParameterData.cs
- ProfileGroupSettingsCollection.cs
- ListControlActionList.cs
- WorkflowServiceHostFactory.cs
- ParallelTimeline.cs
- Invariant.cs
- XpsResourcePolicy.cs
- XmlSchemaAny.cs
- WebRequestModuleElementCollection.cs
- XpsInterleavingPolicy.cs
- UIElement3D.cs
- KnownTypesHelper.cs
- XmlSchemaGroup.cs
- WindowsTab.cs
- _IPv4Address.cs
- SubstitutionResponseElement.cs
- XmlDocumentSerializer.cs
- TimeoutException.cs
- ListViewInsertEventArgs.cs
- Animatable.cs
- RawStylusSystemGestureInputReport.cs
- XmlMessageFormatter.cs
- ResXResourceWriter.cs
- GroupJoinQueryOperator.cs
- mediapermission.cs
- CodeTypeConstructor.cs
- ImageListUtils.cs
- MetadataItemEmitter.cs
- ActivityStatusChangeEventArgs.cs
- RegistrySecurity.cs
- ScriptMethodAttribute.cs
- FormatterServices.cs