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
- Error.cs
- StandardMenuStripVerb.cs
- peersecurityelement.cs
- ColorContext.cs
- OrderedDictionaryStateHelper.cs
- MonikerUtility.cs
- BooleanFunctions.cs
- LinearKeyFrames.cs
- XsdDateTime.cs
- DateTimeValueSerializerContext.cs
- SimpleFileLog.cs
- MenuItemBindingCollection.cs
- EventLog.cs
- SourceFileInfo.cs
- RoleService.cs
- RolePrincipal.cs
- ParallelRangeManager.cs
- base64Transforms.cs
- BindToObject.cs
- CodeObjectCreateExpression.cs
- GacUtil.cs
- TextSelectionHelper.cs
- AuthenticatedStream.cs
- BitmapMetadataBlob.cs
- LogoValidationException.cs
- DynamicMetaObjectBinder.cs
- LongPath.cs
- UserControl.cs
- ContentValidator.cs
- XmlWrappingWriter.cs
- LoadWorkflowCommand.cs
- PerformanceCounterCategory.cs
- MergeFilterQuery.cs
- PrintDialog.cs
- GridPattern.cs
- GraphicsState.cs
- DeclarativeExpressionConditionDeclaration.cs
- Soap12ProtocolImporter.cs
- EntityDataSourceWizardForm.cs
- TextEffectResolver.cs
- MemberCollection.cs
- DiscoveryVersionConverter.cs
- PointCollection.cs
- FormsAuthenticationCredentials.cs
- TreeBuilderBamlTranslator.cs
- StrongNameKeyPair.cs
- ImageClickEventArgs.cs
- ProfileSection.cs
- Calendar.cs
- ChineseLunisolarCalendar.cs
- Query.cs
- RtfToXamlReader.cs
- BufferModesCollection.cs
- ExpressionBuilderCollection.cs
- DefaultAssemblyResolver.cs
- CustomValidator.cs
- ActiveDocumentEvent.cs
- CfgParser.cs
- TextShapeableCharacters.cs
- RectangleGeometry.cs
- OracleMonthSpan.cs
- CloudCollection.cs
- LayoutEngine.cs
- TextBoxView.cs
- DbConnectionHelper.cs
- TypeExtension.cs
- CustomError.cs
- RectangleHotSpot.cs
- ScriptReferenceEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- CompletedAsyncResult.cs
- CodeTypeOfExpression.cs
- ToolStripDesignerUtils.cs
- XmlConverter.cs
- SdlChannelSink.cs
- AdapterSwitches.cs
- HashFinalRequest.cs
- XmlSchemaInferenceException.cs
- PageSettings.cs
- NumberFunctions.cs
- OdbcParameterCollection.cs
- Rijndael.cs
- DispatcherHookEventArgs.cs
- MenuCommands.cs
- ModuleBuilderData.cs
- MeasureData.cs
- HtmlUtf8RawTextWriter.cs
- MemberMaps.cs
- ProxyWebPart.cs
- DataAdapter.cs
- ManagedWndProcTracker.cs
- ListViewUpdatedEventArgs.cs
- LicenseProviderAttribute.cs
- AtomMaterializerLog.cs
- AuthenticationException.cs
- MenuAdapter.cs
- Thumb.cs
- UnknownBitmapEncoder.cs
- DbSource.cs
- IsolationInterop.cs