Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SamlAttributeStatement.cs
- AstNode.cs
- CompilerInfo.cs
- SiteMembershipCondition.cs
- BoolExpression.cs
- HtmlInputControl.cs
- EventMap.cs
- CharacterHit.cs
- DateTimeOffset.cs
- Mapping.cs
- Panel.cs
- BroadcastEventHelper.cs
- ManagementPath.cs
- Compiler.cs
- DataGridDesigner.cs
- ParameterReplacerVisitor.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SelectorAutomationPeer.cs
- DataViewManager.cs
- FontSourceCollection.cs
- CompiledXpathExpr.cs
- TraceUtility.cs
- HwndProxyElementProvider.cs
- Tuple.cs
- TextDecoration.cs
- CheckBoxField.cs
- DrawingContextWalker.cs
- BuildManager.cs
- FrameworkContentElement.cs
- StringSource.cs
- XhtmlBasicTextBoxAdapter.cs
- ForeignKeyConstraint.cs
- PointKeyFrameCollection.cs
- OleCmdHelper.cs
- ReliableChannelListener.cs
- UnSafeCharBuffer.cs
- MetadataPropertyCollection.cs
- SystemWebExtensionsSectionGroup.cs
- CapabilitiesUse.cs
- LocationReferenceValue.cs
- Point4DConverter.cs
- XmlSchemaInclude.cs
- VirtualPathData.cs
- DefaultExpressionVisitor.cs
- InputScopeManager.cs
- LinqDataSourceEditData.cs
- CodePropertyReferenceExpression.cs
- OdbcTransaction.cs
- Int32CollectionValueSerializer.cs
- Matrix.cs
- ExpandSegmentCollection.cs
- FixedPage.cs
- ComplexObject.cs
- SignatureHelper.cs
- UnaryOperationBinder.cs
- OrderedDictionary.cs
- UnsafeNativeMethods.cs
- DetailsViewInsertedEventArgs.cs
- Color.cs
- ColorAnimation.cs
- OutOfProcStateClientManager.cs
- SqlMultiplexer.cs
- XamlDesignerSerializationManager.cs
- LayoutUtils.cs
- SettingsBindableAttribute.cs
- ReferencedCollectionType.cs
- DockProviderWrapper.cs
- WebBrowserBase.cs
- _CommandStream.cs
- ExecutionEngineException.cs
- AccessibilityHelperForXpWin2k3.cs
- InputReferenceExpression.cs
- DeploymentExceptionMapper.cs
- EventListener.cs
- DeploymentSection.cs
- DropDownButton.cs
- HostExecutionContextManager.cs
- FamilyTypeface.cs
- StaticResourceExtension.cs
- DocumentEventArgs.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- GraphicsContext.cs
- FileUtil.cs
- CodeVariableReferenceExpression.cs
- DisableDpiAwarenessAttribute.cs
- ComplexPropertyEntry.cs
- HwndPanningFeedback.cs
- SettingsPropertyValue.cs
- Italic.cs
- XmlWriter.cs
- Frame.cs
- Rfc2898DeriveBytes.cs
- XmlUTF8TextWriter.cs
- CharAnimationUsingKeyFrames.cs
- DynamicILGenerator.cs
- JournalEntryListConverter.cs
- LifetimeServices.cs
- _FtpDataStream.cs
- XpsSerializerWriter.cs
- AddInProcess.cs