Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // 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
- TextDecorationCollection.cs
- TextInfo.cs
- KeyValuePairs.cs
- TemplateContentLoader.cs
- ListBindableAttribute.cs
- PropertyOrder.cs
- ParentUndoUnit.cs
- InternalBufferOverflowException.cs
- ConversionContext.cs
- Atom10FormatterFactory.cs
- HtmlEmptyTagControlBuilder.cs
- DataStreamFromComStream.cs
- DataColumn.cs
- RemoteWebConfigurationHostServer.cs
- ProxyWebPart.cs
- BindingContext.cs
- ReversePositionQuery.cs
- ResXResourceSet.cs
- AstNode.cs
- XmlChoiceIdentifierAttribute.cs
- ByteConverter.cs
- DataView.cs
- Update.cs
- StrokeNodeOperations2.cs
- IndexedEnumerable.cs
- SoapHeaderAttribute.cs
- TemplatedAdorner.cs
- WebPartCollection.cs
- ProxyElement.cs
- WindowsScrollBarBits.cs
- LinkLabel.cs
- RayMeshGeometry3DHitTestResult.cs
- _NetRes.cs
- WindowShowOrOpenTracker.cs
- FaultReasonText.cs
- Int32.cs
- TypeSystem.cs
- ObjectDataSource.cs
- HighContrastHelper.cs
- CallbackBehaviorAttribute.cs
- XmlEncoding.cs
- NavigationProperty.cs
- LayoutManager.cs
- NoResizeHandleGlyph.cs
- DrawingContext.cs
- ParserHooks.cs
- UnsupportedPolicyOptionsException.cs
- ObjectFullSpanRewriter.cs
- HostedHttpContext.cs
- WindowsStartMenu.cs
- WebPartMinimizeVerb.cs
- EmptyStringExpandableObjectConverter.cs
- DispatcherHookEventArgs.cs
- ReflectionUtil.cs
- SafeRightsManagementSessionHandle.cs
- InstalledFontCollection.cs
- PtsPage.cs
- UnsafeNativeMethods.cs
- smtpconnection.cs
- HandledEventArgs.cs
- OletxResourceManager.cs
- PtsHost.cs
- TemplateXamlParser.cs
- OracleException.cs
- OracleColumn.cs
- TableCellAutomationPeer.cs
- CellTreeNodeVisitors.cs
- BinaryObjectWriter.cs
- COM2PropertyDescriptor.cs
- Array.cs
- CreateUserWizardStep.cs
- TraceFilter.cs
- GcSettings.cs
- SqlWebEventProvider.cs
- OdbcConnectionFactory.cs
- WpfSharedXamlSchemaContext.cs
- Shape.cs
- ObjectListCommandEventArgs.cs
- AttachmentCollection.cs
- DbgUtil.cs
- _ScatterGatherBuffers.cs
- AncillaryOps.cs
- updateconfighost.cs
- TextBoxRenderer.cs
- AdapterDictionary.cs
- SortedList.cs
- CodeRemoveEventStatement.cs
- CapabilitiesPattern.cs
- WhitespaceRuleLookup.cs
- EventOpcode.cs
- KeySpline.cs
- DocumentGridPage.cs
- CacheSection.cs
- MetaColumn.cs
- CompositeScriptReference.cs
- AlphaSortedEnumConverter.cs
- BuilderElements.cs
- XmlSchemaExporter.cs
- MaskedTextProvider.cs
- CultureTable.cs