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
- GlobalItem.cs
- Operand.cs
- Vector3DConverter.cs
- RectKeyFrameCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- StubHelpers.cs
- MessageProperties.cs
- EntityDataSourceContextDisposingEventArgs.cs
- CodeLinePragma.cs
- PreloadedPackages.cs
- HierarchicalDataTemplate.cs
- NativeRightsManagementAPIsStructures.cs
- SqlBuilder.cs
- SystemFonts.cs
- RecordManager.cs
- SQLInt16Storage.cs
- FactoryRecord.cs
- HScrollProperties.cs
- CodeTypeReferenceExpression.cs
- ValidationRule.cs
- HiddenFieldPageStatePersister.cs
- WebPageTraceListener.cs
- ErrorInfoXmlDocument.cs
- FirstQueryOperator.cs
- FontDialog.cs
- IChannel.cs
- HttpAsyncResult.cs
- HttpRequest.cs
- Parameter.cs
- CommonDialog.cs
- handlecollector.cs
- QuaternionRotation3D.cs
- ProfileParameter.cs
- Section.cs
- SmiEventSink.cs
- XsdCachingReader.cs
- WindowsIdentity.cs
- EventLogHandle.cs
- UIAgentAsyncParams.cs
- Invariant.cs
- FontUnit.cs
- FlowPosition.cs
- DBSqlParser.cs
- ConnectivityStatus.cs
- ClientUtils.cs
- DSASignatureFormatter.cs
- ModelItemDictionaryImpl.cs
- CodeParameterDeclarationExpression.cs
- XmlSchemaExternal.cs
- PointAnimationClockResource.cs
- EventSetterHandlerConverter.cs
- UnsafeNativeMethods.cs
- FormatControl.cs
- BounceEase.cs
- AxisAngleRotation3D.cs
- FileLogRecord.cs
- SymmetricSecurityProtocolFactory.cs
- MetadataItemSerializer.cs
- MSAAEventDispatcher.cs
- MarkedHighlightComponent.cs
- DataGridViewColumnHeaderCell.cs
- VisualTransition.cs
- SchemaNamespaceManager.cs
- CategoryState.cs
- TrackingServices.cs
- diagnosticsswitches.cs
- SerializationHelper.cs
- DeferredReference.cs
- PropertyReferenceSerializer.cs
- Color.cs
- UpdatePanelControlTrigger.cs
- WebPartHelpVerb.cs
- SystemUnicastIPAddressInformation.cs
- Comparer.cs
- MonthChangedEventArgs.cs
- HtmlInputReset.cs
- ApplicationProxyInternal.cs
- ToolStripItemRenderEventArgs.cs
- AlphabeticalEnumConverter.cs
- AppManager.cs
- PathSegment.cs
- WeakReferenceEnumerator.cs
- GridViewPageEventArgs.cs
- NonClientArea.cs
- ByteKeyFrameCollection.cs
- Transactions.cs
- ClientSponsor.cs
- WebPartManagerInternals.cs
- EditingCoordinator.cs
- Normalization.cs
- SqlBulkCopyColumnMapping.cs
- ChangePasswordAutoFormat.cs
- Simplifier.cs
- LinqDataSourceSelectEventArgs.cs
- SessionSwitchEventArgs.cs
- Descriptor.cs
- ScriptMethodAttribute.cs
- BamlBinaryWriter.cs
- ContainerActivationHelper.cs
- StatusBarDrawItemEvent.cs