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
- Privilege.cs
- DoubleKeyFrameCollection.cs
- LayoutEvent.cs
- UrlPropertyAttribute.cs
- AnnotationResourceChangedEventArgs.cs
- StateBag.cs
- SoapServerMethod.cs
- DataGridViewDataErrorEventArgs.cs
- DbgCompiler.cs
- DataGridViewComboBoxCell.cs
- ParameterBinding.cs
- GridViewDeletedEventArgs.cs
- configsystem.cs
- DataGridTextBoxColumn.cs
- TextTreeNode.cs
- CompositeFontInfo.cs
- SpecialFolderEnumConverter.cs
- XamlClipboardData.cs
- DesignerAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- AuthenticationModuleElement.cs
- ComponentResourceKeyConverter.cs
- FormViewInsertEventArgs.cs
- ValueUtilsSmi.cs
- XmlBinaryWriterSession.cs
- ColumnHeaderConverter.cs
- Lasso.cs
- UmAlQuraCalendar.cs
- EditorPartChrome.cs
- RelatedEnd.cs
- QueryCacheKey.cs
- Script.cs
- Compiler.cs
- GreenMethods.cs
- ToolTipService.cs
- SqlDataRecord.cs
- XamlWrappingReader.cs
- Maps.cs
- Activator.cs
- EntityFunctions.cs
- DataKeyArray.cs
- _OverlappedAsyncResult.cs
- BitConverter.cs
- ToolBarDesigner.cs
- KeyBinding.cs
- WindowsFormsEditorServiceHelper.cs
- EnumUnknown.cs
- SerializationSectionGroup.cs
- DataRecordObjectView.cs
- TabItemAutomationPeer.cs
- TableRow.cs
- loginstatus.cs
- PerformanceCounterPermission.cs
- LinqDataSourceContextEventArgs.cs
- UInt16Converter.cs
- StylusOverProperty.cs
- DurableMessageDispatchInspector.cs
- RadialGradientBrush.cs
- TriggerAction.cs
- MetadataSource.cs
- ParentUndoUnit.cs
- Matrix3DConverter.cs
- XmlSchemaExternal.cs
- Expressions.cs
- RemotingService.cs
- HtmlTableCell.cs
- ToRequest.cs
- TextModifierScope.cs
- StateInitialization.cs
- FontStretch.cs
- SplitterPanel.cs
- LeafCellTreeNode.cs
- WebAdminConfigurationHelper.cs
- HelpProvider.cs
- TypeConverterAttribute.cs
- PathFigureCollection.cs
- SoapIgnoreAttribute.cs
- ArgumentsParser.cs
- OutKeywords.cs
- SchemaImporterExtensionsSection.cs
- WebPartDesigner.cs
- XsltConvert.cs
- AspProxy.cs
- ConfigurationSection.cs
- Animatable.cs
- EdmProviderManifest.cs
- RegistryKey.cs
- EntityClientCacheEntry.cs
- XmlDataSourceNodeDescriptor.cs
- WmiEventSink.cs
- ObjectMemberMapping.cs
- SpeechDetectedEventArgs.cs
- DbCommandTree.cs
- IOException.cs
- AssemblyFilter.cs
- PropertyCollection.cs
- HtmlInputImage.cs
- CheckBoxList.cs
- ParallelTimeline.cs
- lengthconverter.cs